To display the weather at the user's location or the default location (if the user does not grant the browser's location services to be turned on).
Weather Widget Setup
API Signup and Information
The Yahoo Weather API was officially deprecated on Jan 3, 2019. As a result, all applications connecting to the API returned a 404. However, Yahoo offered an alternative API that requires a bit more setup than usual.
Digital Workplace Configuration
Please be aware that the weather widget will only use your current location if Azure Active Directory is enabled. Otherwise, it will use the location defined in the widget properties.
Widget Properties Example Instance
N/A
Property | Details |
---|---|
City | City for the default Postal Code. This is required as the weather API service does not return the city associated with the Postal Code. If using targeting, the City will be read from the current user’s profile data along with the postal code. |
State | State for the default Postal Code. This is required as the weather API service does not return the state associated with the Postal Code. If using targeting, the State will be read from the current user’s profile data along with the postal code. |
postalcode | Postal Code is used to communicate with the weather API service to retrieve the weather data. If not using targeting (user location attribute) then the location displayed is this postal code location. If using targeting, the current user’s postal code (if it exists) will override this value. |
callbackmethod | N/A for this instance |
cacheinterval | Sets the time (in secs) that the data should be saved in the local browser cache of the current user.
0 = do not cache the data for this widget -1 = use the default caching strategy set in the Digital Workplace configuration = cache for specified time (secs) |
uicallbackmethod | |
VIEW | View Name = Weather
View Template URL = /Style%20Library/DigitalWorkPlace/Content/Templates/WeatherWidget/Weather.html |