haroldunger Posted March 28, 2012 Share Posted March 28, 2012 Created a program to advise me when the temp is <=32 degrees. Well, when the temp reached that level and I received about 50 texts. Any way to limit the text to just one? Link to comment
LeeG Posted March 28, 2012 Share Posted March 28, 2012 I think the temp value is actually an xx.yy value. Any change in temp will trigger the Program again. You can AND an If Variable is 0 (arbitrary value) that allows the Then clause (True) to run. In the Then clause set the Variable to 1 which will stop the Then clause from running during additional temp changes. Another Program resets the Variable to 0 when the temp goes above 32. Link to comment
haroldunger Posted March 29, 2012 Author Share Posted March 29, 2012 I'm new at this, so here's what I did. Is this correct? Program 1: If temp <=32 and $Temperature (new variable I created without values)=0, then send notification text (Low Temp) and set $Temperature=1. Program 2: If temp >=90 and $Temperature=0, then send notification text (High Temp) and set $Temperature=1 Program 3: If temp >32 and <90, then set $Temperature=0. Thanks. Link to comment
LeeG Posted March 29, 2012 Share Posted March 29, 2012 You are right on, that is the concept. The variable should be an Integer variable, as opposed to a State variable. Link to comment
haroldunger Posted March 29, 2012 Author Share Posted March 29, 2012 Out of curiosity, how would I program a non-repeating text to advise me that the temperature is now between 33 and 89 without the same repeating problem? Define a different variable and essentially do the reverse? Link to comment
LeeG Posted March 29, 2012 Share Posted March 29, 2012 Same concept, different variable. The 32 and below program and 90 and above program reset this additional variable. Link to comment
haroldunger Posted March 29, 2012 Author Share Posted March 29, 2012 Yup, that's what I did. Interesting. This is fun! Thanks. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.