Weather Widget
Overview
The weather widget displays weather data for a configured location.
The data source is currently limited to weather data from OpenWeatherMap.
The usage of the OpenWeatherMap API requires an API key.
Note: The DarkSky API is shutting down as of early 2023 and is therefore no longer supported. If your Weather widget is still configured to use the DarkSky API, demo content will be displayed within your widget and we recommend switching to OpenWeatherMap.
Usage
For demo usage, we provide an API key.
For production environments, we require the customer to sign up for an own API key.
Configuration
The weather widget is configured with the WeatherWebPartConfig.
A weather widget can be displayed either as an independent WebPart or as a Tab within a Tabs Widget.
Example
The following example shows the minimal configuration with all required properties.
{
"configTypeKey": "webPart_weather",
"api": "OpenWeatherMap",
"apiKey": "<YourAPIKey>",
"latitude": "47.5546492",
"longitude": "7.5594407",
"detailMode": "full"
}
The following optional properties can be added to the configuration to customize the appearance. Unspecified optional properties will use their individual default values automatically.
...
"units": "us",
"locationName": "Your Location",
"backgroundColor": "#FFFFFF",
"color": "#000000"
}