I sent the following to SmartThings support this morning:
Something changed recently in the getWeatherFeature() API call. This used to work:
Map weatherData = getWeatherFeature( "forecast/conditions" )
But it now throws an error:
error java.lang.UnsupportedOperationException: The forecast/conditions feature is not enabled @ line ###
However, it is apparently not that the feature is not supported, just that some code is improperly preventing the VALID FORMAT for requesting multiple parts of weather from Weather Underground (“xxx/yyy” is proper syntax). This verified because the following DOES work:
Map weatherData = getWeatherFeature( "conditions" ) Map forecastData = getWeatherFeature( "forecast" )
This change will break most, if not ALL, apps that are using advanced features of the Weather Underground API – specifically requesting multiple weather features in a single call (done for efficiency and to ensure that all the data is for the same instant in time).
This should be fixed with the UTMOST URGENCY!!!
N.B. I suspect this is a result of an attempt to block API requests for history data, because SmartThings’ license with Weather Underground apparently doesn’t cover this. However, the implementation apparently does not consider that it is valid to request multiple weather features from the API using the syntax “feature1/feature2/feature3”.