Search found 2 matches

by Kudryash
19 Mar 2020, 17:48
Forum: ESP Easy: Software
Topic: Calculate average temperature ds18b20
Replies: 2
Views: 3767

Re: Calculate average temperature ds18b20

Thank you, I found an example here on the forum and tweaked it a little.
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
by Kudryash
19 Mar 2020, 16:58
Forum: ESP Easy: Software
Topic: Calculate average temperature ds18b20
Replies: 2
Views: 3767

Calculate average temperature ds18b20

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 !