I’ve used WeeWX to capture data from my weather station for many years, a couple of years ago I found the Weewx-emoncms plugin for WeeWX that sends the weather data over to EmonCMS using a http call. This has worked great for years, until sometime last week. When it broke without me noticing. Not sure what’s causing it, but it seems that EmonCMS is rejecting (or erroring on) the http call,
Feb 15 22:30:36 server7 python3[633267]: weewx[633267] DEBUG weewx.restx: EmonCMS: Failed upload attempt 2: Server returned ’
notice: undefined variable: jsondatalc in /var/www/emoncms/modules/input/input_methods.php on line 60
ok’
Feb 15 22:30:42 server7 python3[633267]: weewx[633267] DEBUG weewx.restx: EmonCMS: Failed upload attempt 3: Server returned ’
notice: undefined variable: jsondatalc in /var/www/emoncms/modules/input/input_methods.php on line 60
ok’
Feb 15 22:30:42 server7 python3[633267]: weewx[633267] ERROR weewx.restx: EmonCMS: Failed to publish record 2021-02-15 22:30:00 GMT (1613428200): Failed upload after 3 tries
Line 60 in the input_methods.php looks like this - unset($jsondataLC[‘time’]);
I can’t see jsondataLC mentioned anywhere else, but then I’m no Python expert!
The http call being made from the WeeWX server looks like this -
Which seems OK to me, but then again I’m no expert. I didn’t see anything in the logs on EmonCMS.
Any ideas?