Difference between revisions of "Blocks Dataloger"
(2 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
On the internal webpage of IPLOG is new link for datalogger. | On the internal webpage of IPLOG is new link for datalogger. | ||
− | [[File: | + | [[File:Link2.jpg]] |
Maximum writing rate is 100 key-value pairs per second. Minimal writing period of key-value pair is 100 ms. | Maximum writing rate is 100 key-value pairs per second. Minimal writing period of key-value pair is 100 ms. | ||
Line 80: | Line 80: | ||
|value | |value | ||
|} | |} | ||
+ | '''Example:''' Write value from resin_1 only when resin1 value is changed. <br> | ||
+ | [[File:Datalogger string.jpg]] | ||
+ | |||
==== DATALOGGER_W_STRING ==== | ==== DATALOGGER_W_STRING ==== | ||
Line 98: | Line 101: | ||
|value | |value | ||
|} | |} | ||
+ | '''Example:''' Saving information about IPwatchdog into datalogger.<br> | ||
+ | [[File:Datalogger string3.jpg]] |
Latest revision as of 13:44, 9 November 2018
Contents
Back to Libraries
Datalogger library
To support for datalogger functionality package metel-datalogger must be installed first.
root@iplog:~# opkg update root@iplog:~# opkg install metel-datalogger
On the internal webpage of IPLOG is new link for datalogger.
Maximum writing rate is 100 key-value pairs per second. Minimal writing period of key-value pair is 100 ms.
Capacity for raw integer values (including bools) is 1 080 000 entries.
Capacity for raw string values is 1 080 000 entries.
Integer values are compressed to aggregation tables by seconds, minutes, hours and days. Stored are count, sum, min, max and first value for each key in given period.
Capacity of aggregation tables are 1 080 000 for seconds and minutes, 876 000 for hours and 730 000 for days.
After fill tables capacity, oldest values will be automaticaly removed.
Logging
DATALOGGER_W_BOOL
Writes binary value to datalogger
Asynchronous interface | ||||
in | KEY | string | key for logged value | |
in | VALUE | bool | value |
DATALOGGER_W_DINT
Writes signed integer value to datalogger
Asynchronous interface | ||||
in | KEY | string | key for logged value | |
in | VALUE | dint | value |
DATALOGGER_W_UDINT
Writes unsigned integer value to datalogger
Asynchronous interface | ||||
in | KEY | string | key for logged value | |
in | VALUE | udint | value |
Example: Write value from resin_1 only when resin1 value is changed.
DATALOGGER_W_STRING
Writes string value to datalogger
Asynchronous interface | ||||
in | KEY | string | key for logged value | |
in | VALUE | string[255] | value |
Example: Saving information about IPwatchdog into datalogger.