Jump to content

storing climate data in variables


johnnyt

Recommended Posts

Posted

Am new to the climate module and running firmware 4.2.3, which is pointing to the new HamWeather service. I'd like to store some climate data in a variable so I can track changes/max/min and send some of the data by email. I don't see an action that allows me to choose it. I also looked in the "variable" action but didn't see anything there. My search of the wiki didn't provide the answer. I know the data is available through a REST call but don't think I can have ISY make that call to itself and store it in a variable, can I?

 

Is there a way to do this using ISY (without another computer)?

Posted

Not until 5.x when Variables and Programs are expanded. Not sure if what you want will be in that image since the details in the image have not been released but not before then.

  • 1 year later...
Posted

Dredging up an old topic.  I am writing a program to monitor wind speed and I has hoping to store the climate module's wind and wind gust speeds in a variable.  

 

I want to send an SMS warning when wind or gusts are >= 15 MPH.  I then want to avoid sending the sms message again until the climate module's wind or wind gust speed is greater than the last reported high value (stored in a variable).

 

Is this feature coming soon? 

 

Here is the start of my program without waits and variable checking:

 

Weather - High Winds - [iD 0014][Parent 000D]
If
        Module 'Climate' Wind Speed >= 15 mph Or Module 'Climate' Gust Wind Speed >= 15 mph
 
Then
        Send Notification to 'Rick's Phone SMS' content 'Weather Alert - High Wind
Else
   - No Actions - (To add one, press 'Action')
Posted (edited)

Wouldn't this work for you?

 

Have this running constantly.  Having it check the wind speed however often as you'd like.

WindSpeedCheck - [ID 03C3][Parent 0052][Not Enabled]

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Repeat Every  5 minutes 
           $WindSpeedLast  = $WindSpeed
           Run Program 'WindSpeed1' (If)
           Run Program 'WindSpeed2' (If)
           Continue from WindSpeed3 through WindSpeed15.......
           Run Program 'CheckWindSpeedDifference' (If)
 
Else
   - No Actions - (To add one, press 'Action')

You'd need 15 programs like this

WindSpeed1 - [ID 03C2][Parent 0052][Not Enabled]

If
        Module 'Climate' Wind Speed is 1 mph
 
Then
        $WindSpeed  = 1
 
Else
   - No Actions - (To add one, press 'Action')

Second Program

WindSpeed2 - [ID 03C4][Parent 0052][Not Enabled]

If
        Module 'Climate' Wind Speed is 2 mph
 
Then
        $WindSpeed  = 2
 
Else
   - No Actions - (To add one, press 'Action')
 

And finally the notification program

CheckWindSpeedDifference - [ID 03C5][Parent 0052][Not Enabled]

If
        $WindSpeed >= $WindSpeedLast
 
Then
        Send Notification to 'ISY Alert E-Mail'
 
Else
   - No Actions - (To add one, press 'Action')

Edited by zerop
Posted

Thank you for taking the time to post your solution zerop. I give that a try.

 

Michel, looking forward to 5.x.

 

Rick

Guest
This topic is now closed to further replies.

×
×
  • Create New...