Weather forecast from YR.no

How to retrieve weather forecast from YR.no with Evolo

Written By Aleksander Bless

Last updated 14 days ago

The weather forecast app is used to retrieve weather forecasts from YR.no. It sends weather data to data points created in Evolo. 

The service updates every hour.

Getting Started

1. Go to Configuration Applications

2. Click Add Application

3. Fill in the fields for the application

The following fields must be filled in:

  • Enter a name, a description if desired, and select the Gateway
  • Latitude: Latitude coordinate, taken from the facility’s address if available. For example: 69.9689 – Alta.

  • Longitude Coordinate for longitude, taken from the facility’s address if available. For example: 23.2716 – Alta.

  • Elevation Enter the elevation above sea level. For example: 60 meters.

  • Identification This is required by YR.no’s API to make requests. Incorrect information here may result in your Gateway/IP address being blocked from YR. Must include a company name or other identification and a contact email address. For example: "Ola Installatør – ola@installator.no".

  • Hours Ahead Defines which weather forecast to send. If you select 6 here, you will receive the weather forecast for 6 hours from now.

  • Data points Specify which data points to write to. You can choose to write temperature, precipitation, wind speed, and wind direction. Temperature Select a data point that supports receiving, e.g., 20.5 (°C) Precipitation Select a data point that supports receiving, e.g., 0.5 (mm) Wind Speed Select a data point that supports receiving, e.g., 3.5 (m/s) Wind Direction Select a data point that supports receiving, e.g., 280 degrees (°)

  • Valid hours Select which hours to include; all apply if none are selected.

  • Timestamp data point Writes a timestamp (Epoch timestamp) to the selected data point for the last successful request to the YR-API.

Example

If you select 1 hour ahead, the current hour will be written to the data points. For example, at 12:00, you will receive the weather forecast for 12:00–13:00.

Complete with Create

Gateway will now automatically retrieve weather data every hour and store it in the selected data points.