Keep dayli Temperatures maximun and minimun

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
ampi77
Posts: 2
Joined: Saturday 09 April 2016 12:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Keep dayli Temperatures maximun and minimun

Post by ampi77 »

Hi, I need Keep the maximun and minimun dayli of Temperatures.
I use DS18b20, Is possible??? Can you help me???

Thanks for all
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

Re: Keep dayli Temperatures maximun and minimun

Post by jmleglise »

Hi,

Where do you want to keep it and what for ? I hope you know the graph history of your temperature sensor ?
If you want to export the min and max, you can write it to a file for example. It's easy with some scripting skill.

Here the "idea" :
create a 2 variables : min and max
Create a time script in lua.

each minute you compare the temperature with your min and max variable.
If temp >max then update max with temp
If temp <min then update min with temp

At 0:00 you write it to a file with a os.execute command. like : echo min and max >>yourfile.log
and reinitiate for the next day : set min to 100 and max to -100.
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
ampi77
Posts: 2
Joined: Saturday 09 April 2016 12:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Keep dayli Temperatures maximun and minimun

Post by ampi77 »

Thanks for the answer. Yes I know the graphics but i´m looking for a way of keep this valors.... i try to build a scrip, if you can help me:) thanks for all, and sorry for m english¡¡
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest