The WeatherUnderground (WU) APIs SmartThings has been using to access local weather data are being shut down at the end of this year. This means any Automations or Devices that use the getWeatherFeature() method will stop running or begin returning errors on January 1, 2019.
We are taking steps to ensure that the SmartThings SmartApps and the SmartWeather Station Tile device handler will continue to work by porting them to new APIs from The Weather Company (TWC). These will be released into Production this week and there will be no gap in performance. To maintain your SmartApps and device handlers, we have exposed the following methods for SmartApps and Device Handlers to replace getWeatherFeature().
def getTwcConditions(String locationString=null)
Current weather conditions
The optional locationString argument must be a 5 digit US zip code or a latitude, longitude string (e.g., "38.25,-76.45"). If it is not specified, the method will use the latitude and longitude of the location as set in the mobile app.
Example getTwcConditions response
def getTwcForecast(String locationString=null)
Daily weather forecast at the specified location
The optional locationString argument must be a 5 digit US zip code or a latitude, longitude string (e.g., "38.25,-76.45"). If it is not specified, the method will use the latitude and longitude of the location as set in the mobile app.
Example getTwcForecast response
def getTwcLocation(String locationString=null)
Location data, such as time zone and zip code at the specified location
The optional locationString argument must be a 5 digit US zip code or a latitude, longitude string (e.g., "38.25,-76.45"). If it is not specified, the method will use the latitude and longitude of the location as set in the mobile app.
Example getTwcLocation response
def getTwcAlerts(String geoLocation=null)
Current severe weather alerts at the specified location
The optional geoLocation argument requires a latitude & longitude string (e.g., "38.25,-76.45"). Zip codes are not supported in getTwcAlerts().
def getTwcAlertDetail(String alertId)
Detailed description and text of the specified weather alert
The alertId argument comes from the result of the getTwcAlerts() method.
Example getTwcAlertDetail response
Final note: If you are considering the development of an application that makes extensive use of detailed weather data, you should look into gaining direct access to APIs from a weather data provider such as TWC or others.