Skip to content

Open Weather Map ​

Weather data is received from Open Weather Map.

WARNING

There are only additional fields described here. The service supports all fields from the base service.

Latitude and longitude ​

For weather data, you need to specify the latitude and longitude. This data can be obtained using the LatLong service.

yaml
options:
  lat: 51.5085
  lon: -0.1257

Units ​

Read more about units of measurement in the documentation.

yaml
options:
  units: metric

Values: metric, imperial, standard

Default: metric

API key ​

API key can be obtained in the personal account of Open Weather Map.

yaml
secrets:
  apiKey: 7ss07b6f7vb3b8329b4ff810c34dfb51

Safety

You data is safe. Data from secrets is not transmitted to the site, but is used directly on the server. Thus, no one will know them!

Examples ​

Base service ​

yaml
services:
  - type: openweathermap
    options:
      lat: 51.5085
      lon: -0.1257
    secrets:
      apiKey: 7ss07b6f7vb3b8329b4ff810c34dfb51

Imperial units ​

yaml
services:
  - type: openweathermap
    options:
      lat: 51.5085
      lon: -0.1257
      units: imperial
    secrets:
      apiKey: 7ss07b6f7vb3b8329b4ff810c34dfb51