emonGLCD time update

Hello,

I'm experiencing a time update problem whereby the time on my emonGLCD only displays uptime instead of normal time. I am running emoncms installed on a Raspberry Pi and the GLCD is picking up the power readings from emonTX v2.

I've added "sendtimeinterval = 60" to emonhub.conf and restarted the emonhub service (also with debug):

2015-07-27 16:52:29,465 INFO EmonHub Pre-Release Development Version (rc1.2)
2015-07-27 16:52:29,468 INFO Opening hub...
2015-07-27 16:52:29,471 INFO Logging level set to DEBUG
2015-07-27 16:52:29,484 INFO Creating EmonHubEmoncmsReporter 'emonCMS' 
2015-07-27 16:52:29,489 INFO Set up reporter 'emonCMS' (buffer: memory | size: 1000)
2015-07-27 16:52:29,504 INFO Setting emonCMS url: http://localhost/emoncms
2015-07-27 16:52:29,506 INFO Setting emonCMS apikey: set
2015-07-27 16:52:29,509 INFO Creating EmonHubJeeInterfacer 'RFM2Pi' 
2015-07-27 16:52:29,524 DEBUG Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2015-07-27 16:52:31,533 DEBUG Opening serial port: /dev/ttyAMA0 @ 9600 bits/s
2015-07-27 16:52:35,543 INFO RFM2Pi device firmware version & configuration: not available
2015-07-27 16:52:35,546 INFO Setting RFM2Pi frequency: 433 (4b)
2015-07-27 16:52:36,550 INFO Setting RFM2Pi group: 210 (210g)
2015-07-27 16:52:37,564 INFO Setting RFM2Pi quiet: 1 (1q)
2015-07-27 16:52:38,568 INFO Setting RFM2Pi baseid: 15 (15i)
2015-07-27 16:52:39,587 DEBUG RFM2Pi acknowledged command: > 4b
2015-07-27 16:52:40,024 DEBUG RFM2Pi acknowledged command: > 210g
2015-07-27 16:52:40,458 DEBUG 1 NEW FRAME : 1438012360.46  20 202 10
2015-07-27 16:52:40,461 DEBUG 1 Timestamp : 1438012360.46
2015-07-27 16:52:40,464 DEBUG 1      Node : 20
2015-07-27 16:52:40,466 DEBUG 1    Values : [2762]
2015-07-27 16:52:40,486 DEBUG 1 Append to 'emonCMS' buffer => time: 1438012360.46, data: [20, 2762], ref: 1
2015-07-27 16:52:40,590 INFO emonCMS sending: http://localhost/emoncms/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1438012360.46,20,2762]]&sentat=1438012360
2015-07-27 16:52:40,691 DEBUG RFM2Pi acknowledged command: > 1q
2015-07-27 16:52:40,778 DEBUG emonCMS acknowledged receipt with 'ok' from http://localhost/emoncms
2015-07-27 16:52:40,919 DEBUG RFM2Pi acknowledged command: > 15i

Previous posts have suggested that there should be a "DEBUG Broadcasting time: " line but I haven't seen one.

Any ideas anyone? Many thanks.

pb66's picture

Re: emonGLCD time update

You need " interval" in emonhub.conf not "sendtimeinterval", the norm is to use "interval = 300" (300s being 5mins).

BTW you don't need to restart emonhub when updating the settings, the changes are picked up and implemented in runtime.

Paul 

gapintheclouds's picture

Re: emonGLCD time update

Hi Paul.

Thanks for that. Excellent! And thanks for the not-having-to-restart-emonhub tip :-).

Cheers.

Comment viewing options

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