Hi, I'm from Russia, I apologize for my poor English.
Need your help.
I need to add the temperature of two ds18b20 sensors and divide by 2 to get the average temperature.
temp1+temp2/2=?
Thanks !
Calculate average temperature ds18b20
Moderators: grovkillen, Stuntteam, TD-er
Re: Calculate average temperature ds18b20
You can do this in the rules and assign them to a dummy task.
See: https://espeasy.readthedocs.io/en/lates ... skvalueset
See: https://espeasy.readthedocs.io/en/lates ... skvalueset
Re: Calculate average temperature ds18b20
Thank you, I found an example here on the forum and tweaked it a little.
Works.
Works.
Code: Select all
On System#Boot do
timerSet,1,3
endon
On Rules#Timer=1 do
TaskValueSet,12,1,[ds18b201#temp1]/2+[ds18b202#temp2]/2
timerSet,1,3
endon
Who is online
Users browsing this forum: Bing [Bot] and 46 guests