#EmonPi Details:
Emoncms Version low-write 9.8.0 | 2017.02.01
Modules admin app backup config dashboard eventp feed graph input postprocess process schedule time user vis wifi
Buffer 0 feed points pending write
Writer Daemon is running with sleep 60s
Server OS Linux 4.4.26-v7+
Host emonpi emonpi (127.0.1.1)
Date 2017-02-09 20:40:02 UTC
Uptime 20:40:02 up 1 day, 5:37, 0 users, load average: 0.04, 0.06, 0.08
HTTP Server Apache/2.4.10 (Raspbian) HTTP/1.1 CGI/1.1 80
Database Version MySQL 5.5.52-0+deb8u1
Host localhost (127.0.0.1)
Date 2017-02-09 20:40:02 (UTC 00:00)
Stats Uptime: 106644 Threads: 1 Questions: 36497 Slow queries: 0 Opens: 57 Flush tables: 1 Open tables: 50 Queries per second avg: 0.342
Redis Version 2.8.17
Host localhost:6379 (127.0.0.1)
Size 39 keys (517.66K)Flush
Uptime 1 days
MQTT Version 1.4.10
Host localhost:1883 (127.0.0.1)
Pi CPU Temp 31.10°CShutdownReboot
Release emonSD-07Nov16
#EmonHub Config:
[[my-emoncms-server]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToRFM12
subchannels = ToEmonCMS,
url = http://emoncms.averysradnage.co.uk #local url for the server
apikey = fb41f5634c28bbafca6ec81e75109f4d
senddata = 1 # my-awesome-emoncms-server
sendstatus = 0 # Enable sending WAN IP to Emoncms MyIP (requires My IP installed)
sendinterval= 3 # Bulk send interval to post in seconds'
Looks to be being generated by the EmonPi, found this in the EmonHub Log:
2017-02-09 20:17:03,180 INFO my-emoncms-server sending: http://emoncms.averysradnage.co.uk/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[]&sentat=1486671423
2017-02-09 20:17:03,212 WARNING my-emoncms-server send failure: wanted 'ok' but got 'Error: Format error, json string supplied is not valid
A little while later:
2017-02-09 20:17:06,230 INFO my-emoncms-server sending: http://emoncms.averysradnage.co.uk/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1486671424.3045,5,303,-27,276,243.06,0,0,0,0,0,0,0]]&sentat=1486671426
2017-02-09 20:17:06,292 DEBUG my-emoncms-server acknowledged receipt with 'ok' from http://emoncms.averysradnage.co.uk
By default the “emonpi” variant of emonhub sends every 30secs whether there is data or not, the empty data-[] should not be sent and emoncms could be a little more informative and say it has received no data rather than it was not valid. But as annoying as it is, it will not cause you a problem as it is not a “fault” per se.
I see you have altered the send interval to 3secs so you will see more occurances than most users.
My log file is now 57Mb and there must be thousands of lines like this:
2017-05-12 04:03:47.906|ERROR|input_controller.php|Format error, json string supplied is not valid
2017-05-12 04:04:18.132|ERROR|input_controller.php|Format error, bulk item needs at least 3 values