Page 1 of 1

Keep dayli Temperatures maximun and minimun

Posted: Saturday 09 April 2016 12:42
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

Re: Keep dayli Temperatures maximun and minimun

Posted: Saturday 09 April 2016 16:53
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.

Re: Keep dayli Temperatures maximun and minimun

Posted: Saturday 09 April 2016 22:18
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¡¡