You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"enabled" : true,
"protocol" : "file",
"path" : "/sys/class/thermal/thermal_zone0/temp",
"format" : "$v", /* a format string for parsing complex logfiles */
/* arbitrary text and whitespaces are allowed, see 'scanf()' */
/* at least $v has to be used */
/* $i => identifier, $v => value, $t => timestamp */
"rewind" : true, /* reset file pointer each interval to the beginning of the file */
"interval" : 2, /* of ommitted, we will try to listen on changes with inotify */
"identifier" : "dummy",
"channel" : {
"uuid" : "f6ff48d0-aeac-11e3-b2ed-3bbb8f66a68d",
"middleware" : "http://localhost/middleware.php"
}
} // meter
result:
[Mar 18 16:20:06][] MeterFile::read: 32, 32
[Mar 18 16:20:06][] MeterFile::read: '32552'
[Mar 18 16:20:06][] MeterFile::read: -0.000000, ▒, 0
[Mar 18 16:20:06][mtr1] Got 1 new readings from meter:
[Mar 18 16:20:06][mtr1] Reading: id=▒/StringItentifier: value=-0.00 ts=0.000
[Mar 18 16:20:06][chn1] ==> number of tuples: 0
The file contains "32552".
I expected that $v would contain "32552".
The text was updated successfully, but these errors were encountered: