GLCD - Time update

I'm setting up my GLCD and I'm having a little trouble getting the time to update (starts from 0 and never update). Data from the EmonTx's are received without any issues.

For now I'm just running the standard "HomeEnergyMonitor" sketch on the GLCD (node 20) and the preloaded "low write" Emonhub on the Pi (node 15). 

I can see that the GLCD sketch try to get the time from the base station, node 15. The Pi is posting fine to emoncms.org and I tried to request time from emoncms.org and get a good response (e.g. t20,52,07), and as fare as I can tell the "low write version" EmonHub is also broadcasting the time. (low-low Python level :-/) 

https://github.com/emonhub/emonhub/blob/development/src/emonhub_interfac...

​Any ideas where I should look? / Thx

Lykke's picture

Re: GLCD - Time update

Ok, guess the emonhub is not broadcasting as default 'interval' seems to be 0.

I have tried to change the default 'interval' setting in /usr/shar/emonhub/emonhub_interfacer.py to 10 (should trigger a time broadcast every 10 seconds?) and restarted the Pi, but no cigar...  

Robert Wall's picture

Re: GLCD - Time update

Lykke's picture

Re: GLCD - Time update

Got the time working by hacking the /usr/shar/emonhub/emonhub_interfacer.py. If anyone know how (where) I should properly initialize the broadcast interval, it would be very nice to know. Thx

Lykke's picture

Re: GLCD - Time update

Thx Robert, that's a much better solution :-)  / Mads

pb66's picture

Re: GLCD - Time update

Follow the link Robert has given you, 4th post down, " interval = 300 " in emonhub.conf 

Paul

 

Lykke's picture

Re: GLCD - Time update

Thanks to all for the help.

If practical, I would like to suggest that configurable variables like 'interval' are put into the next version of the default emonhub.conf file, but commented out. That will make the system a lot more transparent and the setup a lot easier for rookies like me :-)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.