06-24-2011, 11:15 PM
Hi,
I am trying to get comfort to store in a counter, the highset recorded temp from an scs!! Here is what I have done
1) The SCS temp is converted to celsius and imported into counter kitchentemp.
2) I have a second counter, maxkitchemtemp, which is the counter that I aim to use to store the highest recorded kitchen temp.
3) I have a response activated by sensor8 response written as follows
Get Counter MaxTempKitch
Subtract Kitchentemp
If LastActionValue < 0 Then
Copy Counter Kitchentemp To MaxTempKitch
End If
So in theory, if maxkitchentemp is currently 15, and kitchentemp is 21, then
get maxkitchen temp = 15
subtract kithchen temp of 24 (15-24=-9)
lastaction value is now less than 0, so
copy kitchentemp counter (24) to maxkitchentemp counter.
In theory, after this, maxkitchentemp should be 24, buit it is not.
Any help would be appreciated.
Regards,
Eamon
I am trying to get comfort to store in a counter, the highset recorded temp from an scs!! Here is what I have done
1) The SCS temp is converted to celsius and imported into counter kitchentemp.
2) I have a second counter, maxkitchemtemp, which is the counter that I aim to use to store the highest recorded kitchen temp.
3) I have a response activated by sensor8 response written as follows
Get Counter MaxTempKitch
Subtract Kitchentemp
If LastActionValue < 0 Then
Copy Counter Kitchentemp To MaxTempKitch
End If
So in theory, if maxkitchentemp is currently 15, and kitchentemp is 21, then
get maxkitchen temp = 15
subtract kithchen temp of 24 (15-24=-9)
lastaction value is now less than 0, so
copy kitchentemp counter (24) to maxkitchentemp counter.
In theory, after this, maxkitchentemp should be 24, buit it is not.
Any help would be appreciated.
Regards,
Eamon
