I was copying it out of my emonPi, which has the emonSD-200724.emonSD-24Jul20.img
(I’ve renamed the file so that it sorts into date order
)
I’ve got a second emonPi, that started off with exactly the same image, but that self-updated recently (without asking me
- that’s half the reason I don’t use Windoze any more) so I can power that up shortly and try it. But surely, if done sensibly, it would accept both names if there was a change for a reason other than it conflicted?
[Edit]=======================
Looking at the updated emonPi:
The log:
Starting update via service-runner-update.sh (v3.0) >
- emonSD version: emonSD-24Jul20
and from Admin:
EMONCMS
Version
low-write 10.2.7
Modules
Administration | App v2.2.5 | Backup v2.2.6 | EmonHub Config v2.0.5 | Dashboard v2.0.9 | DemandShaper v2.1.3 | Device v2.0.8 | EventProcesses | Feed | Graph v2.0.10 | Input | Postprocess v2.1.4 | CoreProcess | Schedule | Network Setup v1.0.0 | sync | Time | User | Visualisation | WiFi v2.0.3
And in emonhub.conf, I have
In the RFM2PI interfacer:
interval = 300
In the emoncmsorg interfacer:
sendinterval= 40 # Bulk send interval to Emoncms.org in seconds
It appears that emonHub is using interval, but emonhub.conf is still being distributed with “sendinterval”
Just to make sure, I’ve unzipped the downloaded 16GB image, mounted it in this laptop and sure enough, there’s confusion.
rootfs/etc/emonhub/emonhub.conf has “sendinterval”
rootfs/opt/openenergymonitor/emonhub/conf/emonhub.conf has “interval”
rootfs/opt/openenergymonitor/emonhub/conf/emonpi.default.emonhub.conf has “sendinterval”
rootfs/opt/openenergymonitor/emonhub/conf/old.default.emonhub.conf has “sendinterval”
rootfs/opt/openenergymonitor/emonhub/conf/interfacer_examples/graphite/graphite.emonhub.conf has “sendinterval”
rootfs/opt/openenergymonitor/emonhub/conf/interfacer_examples/modbus/modbusTCP.emonhub.conf has “interval”
Testing with sendinterval = 40
2021-03-04 13:09:46,453 INFO emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1614863359.61132,5,0,0,0,0,0,0,0,0,0,0,0],[1614863364.5580225,5,0,0,0,0,0,0,0,0,0,0,0],[1614863369.5931797,5,0,0,0,0,0,0,0,0,0,0,0],[1614863374.5301616,5,0,0,0,0,0,0,0,0,0,0,0],[1614863379.5804522,5,0,0,0,0,0,0,0,0,0,0,0],[1614863384.618505,5,0,0,0,0,0,0,0,0,0,0,0]]&sentat=1614863386
2021-03-04 13:09:46,694 DEBUG emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2021-03-04 13:10:16,716 INFO emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1614863389.5705168,5,0,0,0,0,0,0,0,0,0,0,0],[1614863394.6062639,5,0,0,0,0,0,0,0,0,0,0,0],[1614863399.546249,5,0,0,0,0,0,0,0,0,0,0,0],[1614863404.589052,5,0,0,0,0,0,0,0,0,0,0,0],[1614863409.5370674,5,0,0,0,0,0,0,0,0,0,0,0],[1614863414.586817,5,0,0,0,0,0,0,0,0,0,0,0]]&sentat=1614863416 2021-03-04 13:10:16,965 DEBUG emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
So NOT obeying the set interval
Testing with interval = 40
2021-03-04 13:13:38,545 INFO emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1614863579.6197546,5,0,0,0,0,0,0,0,0,0,0,0],[1614863584.668141,5,0,0,0,0,0,0,0,0,0,0,0],[1614863589.6053035,5,0,0,0,0,0,0,0,0,0,0,0],[1614863594.6444068,5,0,0,0,0,0,0,0,0,0,0,0],[1614863599.5912955,5,0,0,0,0,0,0,0,0,0,0,0],[1614863604.6300666,5,0,0,0,0,0,0,0,0,0,0,0],[1614863609.5783212,5,0,0,0,0,0,0,0,0,0,0,0],[1614863614.6213903,5,0,0,0,0,0,0,0,0,0,0,0]]&sentat=1614863618
2021-03-04 13:13:38,825 DEBUG emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2021-03-04 13:14:18,858 DEBUG emoncmsorg Buffer size: 8
2021-03-04 13:14:18,860 INFO emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1614863619.6708913,5,0,0,0,0,0,0,0,0,0,0,0],[1614863624.6116045,5,0,0,0,0,0,0,0,0,0,0,0],[1614863629.6616616,5,0,0,0,0,0,0,0,0,0,0,0],[1614863634.6181579,5,0,0,0,0,0,0,0,0,0,0,0],[1614863639.6563766,5,0,0,0,0,0,0,0,0,0,0,0],[1614863644.592955,5,0,0,0,0,0,0,0,0,0,0,0],[1614863649.6281838,5,0,0,0,0,0,0,0,0,0,0,0],[1614863654.6758657,5,0,0,0,0,0,0,0,0,0,0,0]]&sentat=1614863658
2021-03-04 13:14:19,118 DEBUG emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
behaves as expected.
So, my conclusion is confusion in the downloaded image has resulted in an obsolete/incompatible version of emonhub.conf being installed on the SD card.