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.

How to add the 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.

Configuring the data source

  1. Display Name:
    Enter a name for your data source. This helps you to identify this data source in the list of your data sources.

  2. 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

  3. Optionally, select whether you would like to restrict access to this data source instance. By default, restricted access is set to off.

  4. 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.

  5. 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

  1. In the tile editor, filter by the OpenWeatherMap data source.
  2. Click on the data stream for the weather you want to display, for example Daily / Pressure (7 Days). Click Next.
  3. Select the objects you want to display. You may want to filter by Type, such as City or Country.
  4. Click on the visualization you want, for example Scalar.

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

Was this article helpful?


Have more questions or facing an issue?