• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Colored temperature values in Web Gui depending on timestamp
#1
I want to have a visible feedback in the Web Gui to see, if the shown temperature values (received via 433MHz) are up to date or not, e.g. broken RX connection / empty battery.
I think about temperature values in red, if the timestamp of last received data package is older than e.g. 15 minutes.
If the timestamp up to date (not older than 15 minutes) the temperature value should be shown in black text.
Unfortunately I don't know, if it is possible to get ths function by config or must the web gui be changed.
It would be very nice, if someone has an idea.
 
Reply
#2
The webgui needs to be changed. If someone is willing to do so, i would be happy.
 
Reply
#3
Have been looking for this functionality too, or some workaround.
Can't the battery indicator be used for both battery and up-to-date temp values? So when battery symbol is green, it means the battery is ok and the temperature value was received within the last 15 mins.
When battery symbol is red, it means that either the sending device reports battery empty, or the last message received from the device is longer than 15 mins ago. In either case you would have to check the sending device.

Not sure if there is a quick and dirty workaround possible. Was thinking of a cron job that sets the battery argument of all weather stations to 0 every hour, so it will be reset to 1 when the data from the remote weather station is received, but didn't get this working yet...
Tried pilight-control to set the battery to 0 for a weather station, but I guess I got the syntax wrong. Used the pilight docs page for pilight-control. You would say that this command should work: pilight-control -d Tempsens2 -v battery=0
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight values api TopdRob 2 1,050 10-08-2017, 01:08 PM
Last Post: HarrisRo
  Min Max values for Weather Sensors danieljo 1 1,474 06-21-2015, 04:24 PM
Last Post: Alex
  GET or POST values to pilight through webgui creamers 3 2,566 05-03-2015, 09:48 PM
Last Post: creamers

Forum Jump:


Browsing: 1 Guest(s)