emonGLCD Time and emoncms Temperature

emoncms emoncms

.emonGLCD

Hallo

 

I have successfully mounted the kit openenergymonitor.

 

I have two problems!

1)the clock on emonGLCD goes back 2 hours. I tried to set UTC by emoncms  (raspberry) but nothing has changed

2) In emoncsl can not correctly display the temperature that I take from the display. Temperature on emonGLCD 20,10 on emoncms 201, practically multiply by 100.

 

Thank

and sorry for my english

Ian Eagland's picture

Re: emonGLCD Time and emoncms Temperature

Hi

Can't help with time.

But for temperature insert a X 0.01 on a line above your log to feed line.

Regards

Ian

zeno's picture

Re: emonGLCD Time and emoncms Temperature

Thank Ian

the temperature is right now.

 

missing only fix the time on the display!!!

Andrew's picture

Re: emonGLCD Time and emoncms Temperature

hi - I found I can get the emonGLCD time correct by updating the timezone line in /etc/php5/cli/php.ini.  The allowed values are on the php web site.  There are a few other forum entries here that seem to say this is ok.  Mine is set to Australia/Sydney. 

BUT - for me, at least, when I do this, the "updated" column on the feeds view then shows incorrect values. Instead of values like "5 seconds ago" I get values like "60 minutes ago".  

I have tried to figure this out, by adding some extra output fields in the "echo" line in raspberrypi_run.php, and restarting with the "log" argument, but so far this only shows that the timezone is correctly going through to raspberrypi_run.php.  I think somehow the javascript running on the browser thinks its reference time is 1 hour different.  As a very bad fix I put in some lines to put change the timezone to "Antarctica/Macquarie" just before the send to the LCD, and then revert to correct localtime after that.  The Antarctica/Macquarie timezone is one hour different from current localtime, and this timezone is mentioned in lots of google hits as meaning you need to set a correct timezone in php.ini as describe above. But I've done that....

Anyway maybe it will work for you!

zeno's picture

Re: emonGLCD Time and emoncms Temperature

I changed php.ini, but without success.

for raspberrypi_run.php, when I run it, I always get "Already running"

Thank

Andrew's picture

Re: emonGLCD Time and emoncms Temperature

You just need to stop it first. You can do something like:

sudo /etc/init.d/rfm12piphp stop
sudo /etc/init.d/rfm12piphp start

Its also worth knowing that you can get some logging information with:

sudo /etc/init.d/rfm12piphp start log

but if you do that, afterwards be sure to stop it again, and restart it without the "log" keyword.  The log file will be at /var/log/rfm12piphp.log. 

zeno's picture

Re: emonGLCD Time and emoncms Temperature

I attach a log!!!!!!!

 

 

zeno's picture

Re: emonGLCD Time and emoncms Temperature

Sending remote data remotedata:[[1,10,339,0,0,21971],[1,20,2625],[2,10,336,0,0,22009],[2,20,2625],[2,10,339,0,0,21993],[2,10,335,0,0,21988],[2,20,2625],[2,10,338,0,0,22002],[2,10,333,0,0,22005],[2,20,2631],[3,10,338,0,0,22002],[3,10,338,0,0,21998],[3,20,2625],[3,10,335,0,0,22008],[3,20,2631],[3,10,333,0,0,22027],[4,10,335,0,0,22013],[4,20,2625],[4,10,337,0,0,22019],[4,10,338,0,0,21996],[4,20,2625],[4,10,339,0,0,22006],[4,10,334,0,0,22019],[4,20,2631],[5,10,330,0,0,22007],[5,20,2625],[5,10,328,0,0,21980],[5,10,336,0,0,21995],[7,20,2631],[19,10,336,0,0,21978],[21,10,335,0,0,22026],[21,20,2625],[21,10,337,0,0,22001],[27,10,343,0,0,21989],[27,20,2625]]
 

zeno's picture

Re: emonGLCD Time and emoncms Temperature

MESSAGE RX1:12 Jun 13 - 22:05
MESSAGE RX1:> 0s

LENGTH: -> 4 b
DATA RX: 10 82 1 0 0 0 0 4 86
00,22,05,00s
DATA RX: 20 71 10
DATA RX: 10 84 1 0 0 0 0 232 85
 

deskyeti's picture

Re: emonGLCD Time and emoncms Temperature

Out of the box the time on my emonGLCD is 1 hour out (showing UTC instead of BST). Log in remotely to the Pi via Putty or if you have Keyboard/screen attached use that and run sudo raspi-config then go to option 4 Internationalisation Options then I2 Change Timezone - select your local timezone then save and you should soon see your time update on the emonGLCD. Not sure if a reboot of the Pi is necessary.

 

Regards, Keith

zeno's picture

Re: emonGLCD Time and emoncms Temperature

Thank deskyeti

Timezone is the solution!!!!!!!!!!!!

Comment viewing options

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