EmonGLCD time update

Hello,

I have an RFM12Pi setup and its receiving data from my emonTX v2 and the temperature from the EmonGLCD, but the EmonGLCD is not updating the time from the Raspberry Pi. I've used the pre-built card and HomeEnergyMonitor.ino as downloaded from the emonGLCD github. I checked and the emonbase node is 15 in the EmonGLCD code as well as /boot/emonhub.conf.

Any ideas? Cheers.

pb66's picture

Re: EmonGLCD time update

An additional setting is required in the [[RFM2Pi]] [[[runtimesettings]]] of /boot/emonhub.conf. for example add

interval = 300

to update the time every 5 mins (5 x 60 secs)

Paul

gapintheclouds's picture

Re: EmonGLCD time update

Excellent! Thanks Paul.

tgmaxx's picture

Re: EmonGLCD time update

Hi Paul,

How does the interval setting affect the setting in the file emonhub_interfacer.py ? You previously mentioned to modify in this line to set the transmit interval from packetgen.

if now - self._control_timestamp > 5:

 

On another point, my emonhub.conf is located in ~/emonhub/conf and not under /root. Is that OK?

Finally, can you clarify the [nodes] settings in the file emonhub.config? Should the [[99]] be set to the emonbase node number? And what datacodes are available and how to use them?

 

pb66's picture

Re: EmonGLCD time update

Hi

The "packetgen mod" is pretty much self contained the interval setting shouldn't effect it's operation at all.

The location of the conf file isn't critical as long as emonHub can find it, the standard place is /etc/emonhub/emonhub.conf the dev-emonhub installer symlinks the git installed file located in ~/emonhub/conf to that location, In the latest sdcard image the conf file was moved to the /boot partition so that it could be edited on a PC directly using a SD card reader.

I'm hoping we can adopt a single combined method of symlinking /boot/emonhub.conf to /etc/emonhub/emonhub.conf in the near future so all references can be made to the one location, /etc/emonhub/emonhub.conf and still be able to edit the conf on a PC.

The [nodes] section is to list node data for decoding. [[99]] is just an example layout (node 99 was chosen so as not to clash with any pre-existing nodes) take a look at this thread emonHub development - increase in scope of values over rfm network  it will give you an overview of how datacode(s) and the [nodes] section are used. the thread was written quite early in the development of emonHub and a few details have changed but the principle is exactly the same.

tgmaxx's picture

Re: EmonGLCD time update

OK thanks Paul!

griffous's picture

Re: EmonGLCD time update

That's brilliant. Thanks Paul. I hit the same issue today.

I've added your instructions to the main emonGLCD wiki page to help others.

 

Jonathan

bavitalsign's picture

Re: EmonGLCD time update

Hello. I am using

1. Pi v1.5 with emon GLCD with ready to go image 

2. Home energy monitor sketch on GLCD.

I am unable to update both the time and power being consumed now (on the GLCD) although it is being updated on the local emoncms.

I have added the interval 300 command as stated above and the time and date on pi is also up to date. What can be the issue?

Comment viewing options

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