btmon patch for emoncms 8.4
Posted: Fri Feb 06, 2015 10:41 am
Don't know if anyone here is using emoncms, I just threw together a lighting self-hosted install, to "kick the tires" relative to SEG, and I found that btmon.py doesn't work correctly with the latest version out of git - the inputs get massively duplicated. It seems that a node ID has to be sent now - the problem is described here:
http://openenergymonitor.org/emon/node/6315
This probably doesn't affect the main emoncms site, just self-hosted ones running the latest version. Here's my trivial patch to btmon 3.0.7:
# diff btmon.py.orig btmon.py
3600c3600
< url = '%s?apikey=%s&time=%s&json={%s}' % (
---
> url = '%s?node=1&apikey=%s&time=%s&json={%s}' % (
Had a bit of trouble finding an email address for mwall but hope I managed to send it to him.
Graham
http://openenergymonitor.org/emon/node/6315
This probably doesn't affect the main emoncms site, just self-hosted ones running the latest version. Here's my trivial patch to btmon 3.0.7:
# diff btmon.py.orig btmon.py
3600c3600
< url = '%s?apikey=%s&time=%s&json={%s}' % (
---
> url = '%s?node=1&apikey=%s&time=%s&json={%s}' % (
Had a bit of trouble finding an email address for mwall but hope I managed to send it to him.
Graham