webCoRE Update v0.3.10a.20190223 - adds $twcweather to replace discontinued $weather, bug fixes


#82

We do not have access to any documentation for the weather data that is coming out of SmartThings.


#83

Please refer to $twcweather.forecast.daypart[0].daypartName. We don’t know for sure but have assumed that all values under the daypart data follow the same pattern.


#87

I don’t see a way to get chance of precipitation within the forecast. Am I missing something? This is the most important part of a forecast (to me) but the narrative gives only vague hints like “rain” or “thunderstorms” or doesn’t mention it at all.


#88

For the next 15 days broken down into 12 hour blocks, you can use this:
$twcweather.forecast.daypart[0].precipChance
which currently yields this for me:
[null, 0, 0, 20, 0, 10, 10, 0, 0, 10, 10, 10, 40, 50, 40, 0, 0, 10, 10, 10, 50, 50, 50, 40, 40, 40, 40, 40, 40, 40]

To only pull a single data point, you can add [x] to the end. For example,
$twcweather.forecast.daypart[0].precipChance[3]
pulls tomorrow night only. (using the numbers above, yields 20)


removed this banner . It will no longer appear at the top of every page. #89

#90

Thank you!


#91

I want to trigger action when there is a tornado warning. Is it sufficient to just check alerts[0].eventDescription for “Tornado Warning”? I’m not sure exactly what alerts[1] and so on are - are those previously issued alerts and if so does every alert start at [0] to where checking [0] is indeed sufficient? Or are they multiple alerts that are currently active, such that even alerts above 0 need to be checked?


#92

Hi guys - I had been using weather underground to get the outdoor temp, outdoor humidity and dew point prior to the API being shutdown. I had a piston that ran 4 times an hour and called that API, and set global variables to hold these values. Then from any piston I could just access the values from the global variables, which were kept up to date by the piston, refreshed every 15 minutes.

I see that twcweather has $twcweather.conditions.temperatureDewPoint, $twcweather.conditions.temperature and $twcweather.conditions.relativeHumidity. It looks like I can just reference these in my pistons. It is that easy?

A couple questions though:

  1. How do I tell twcweather what my zip code is that I want these readings to come from?

  2. How often do these twcweather values get refreshed, and how can I control them to make sure they are updated at least 4 times and hour, maybe more if allowed?

Thanks!


#93
  1. It gets your location from your hub, make sure you have dropped the pin on your house in the ST app settings.

  2. We don’t know how often they update existing data, but the day / night cycle (where the array for 15 day forecasts moves a notch) updates over a 30 minute window between 1am-1:30am and 1pm-1:30pm ish