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.
Note: 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.
How to add an OpenWeatherMap data source
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.
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.
Note:
OpenWeather offers free and payed 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
Optionally, select whether you would like to restrict access to this data source instance. By default, restricted access is set to off.
Restrict access to this data sourceThe 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.
Data source access levelsAccess Level:
Link to workspace
- User can link the data source to any workspace they have at least Editor permissions for.
- Data from the data source can then be viewed by anyone with any access to the workspace.
User can share the data source data with anyone they want.
User cannot configure the data source in any way, or delete it.
Full Control - User can change the data source configuration, ACL, and delete the data source.
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.
If you haven't added the Geodata data source yet, add the Geodata data source. 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.
Using the OpenWeatherMap data streams
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.
Click Save.
Troubleshooting tiles that use OpenWeatherMap data sources
Error because of exceeded API call rate limit
OpenWeather offers free and payed 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