OpenWeatherMap plugin
This plugin allows you to add a data source that provides weather forecast data from OpenWeatherMap. Depends on data sources that create location entities with a latitude and longitude.
You need the Geodata data source to be able to use the OpenWeatherMap data source. The Geodata data source will provide the country and city objects while the OpenWeatherMap data source will provide the Data Streams to use with these objects, for example to show the current temperature for a list of cities.
The Geodata plugin allows you to add a data source that creates objects for countries, cities, and currencies which can be used in data streams that come from other data sources.
It's a utility plugin that can add data sources without entering any credentials, which means you don't have to create an API key, user account, or anything like that.
To add a data source click on the + next to Data Sources on the left-hand menu in SquaredUp. Search for the data source and click on it to open the Configure data source page.
Configuring the data source
Display Name:
Enter a name for your data source. This helps you to identify this data source in the list of your data sources.- API Key:
Create an API key in your OpenWeatherMap account.OpenWeather offers free and paid accounts. Depending on the account, there can be a rate limit for how many API calls you can make per minute. If you exceed your limit, tiles that use the OpenWeatherMap data source will show an error. Here you'll find an overview about their account options, and you can sign up for the one that fits your needs: https://openweathermap.org/price
Restrict access to this data source:
You can enable this option if you only want certain users or groups to have access to the data source, or the permission to link it to new workspaces. See data source access control for more information.The term data source here really means data source instance. For example, a user may configure two instances of the AWS data source, one for their development environment and one for production. In that case, each data source instance has its own access control settings.
By default, Restrict access to this data source is set to off. The data source can be viewed, edited and administered by anyone. If you would like to control who has access to this data source, switch Restrict access to this data source to on.
Use the Restrict access to this data source dropdown to control who has access to the workspace:
- By default, the user setting the permissions for the data source will be given Full Control and the Everyone group will be given Link to workspace permissions.
- Tailor access to the data source, as required, by selecting individual users or user groups from the dropdown and giving them Link to workspace or Full Control permissions.
- If the user is not available from the dropdown, you are able to invite them to the data source by typing in their email address and then clicking Add. The new user will then receive an email inviting them to create an account on SquaredUp. Once the account has been created, they will gain access to the organization.
- At least one user or group must be given Full Control.
- Admin users can edit the configuration, modify the Access Control List (ACL) and delete the data source, regardless of the ACL chosen.
See Access control for more information.
Click Add.
You can also add a data source from Settings > Data Sources > Add data source, but sample dashboards are not added when using this method.
- Add the Geodata data source, if you haven't already done so. To be able to use the data streams that come with the OpenWeatherMap data source, you need city or country objects from the Geodata data source. See Geodata plugin
The Geodata plugin allows you to add a data source that creates objects for countries, cities, and currencies which can be used in data streams that come from other data sources.
It's a utility plugin that can add data sources without entering any credentials, which means you don't have to create an API key, user account, or anything like that.
Testing and Troubleshooting
Error because of exceeded API call rate limit
OpenWeather offers free and paid accounts. Depending on the account, there can be a rate limit for how many API calls you can make per minute. If you exceed your limit, tiles that use the OpenWeatherMap data source will show an error. Here you'll find an overview about their account options, and you can sign up for the one that fits your needs: https://openweathermap.org/price
Next steps
- In the tile editor, filter by the OpenWeatherMap data source.
- Click on the data stream for the weather you want to display, for example Daily / Pressure (7 Days). Click Next.
- Select the objects you want to display. You may want to filter by Type, such as City or Country.
- Click on the visualization you want, for example Scalar.