Weather - VIPnytt/Frekvens GitHub Wiki

⛅ Weather

At least one weather provider is required to use the Weather mode.

Provider Open access Coordinates Named location No place config
Google :x: :white_check_mark: :x: :x:
Home Assistant :x: :x: :x: :white_check_mark:
Open-Meteo :ballot_box_with_check: :white_check_mark: :x: :x:
Open Weather :x: :white_check_mark: :white_check_mark: :x:
Tomorrow.io :x: :white_check_mark: :white_check_mark: :x:
World Weather Online :x: :white_check_mark: :x: :x:
Wttr.in :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
Yr :white_check_mark: :white_check_mark: :x: :x:

☁️ Google

Refreshed every ~17 minutes.

Requires a API-key. Consumes up to 2 555 requests/month, depending on usage.

Configure in secrets.h:

#define GOOGLEWEATHER_KEY "secret"

Configure in .env:

MODE_WEATHER='true'
WEATHER_GOOGLE='true'

[!NOTE] Location coordinates, LATITUDE and LONGITUDE are required.

See also Weather mode.

🏡 Home Assistant

Smart-home integration.

Refreshed every ~4 minutes.

Requires an Long-lived access token.

Configure in secrets.h:

#define HOMEASSISTANT_KEY "secret"
#define HOMEASSISTANT_PROTOCOL "http:"               // optional
#define HOMEASSISTANT_HOST "homeassistant.local"
#define HOMEASSISTANT_PORT 8123                      // optional
#define HOMEASSISTANT_ENTITY "weather.forecast_home" // optional

Configure in .env:

MODE_WEATHER='true'
WEATHER_HOMEASSISTANT='true'

See also Home Assistant extension and Weather mode.

⛅ Open-Meteo

Refreshed every ~17 minutes.

Commercial usage requires an API-key. Consumes up to 2 555 requests/month, depending on usage.

Configure in secrets.h:

#define OPENMETEO_KEY "secret" // optional

Configure in .env:

MODE_WEATHER='true'
WEATHER_OPENMETEO='true'

[!NOTE] Location coordinates, LATITUDE and LONGITUDE are required.

See also Weather mode.

☀️ Open Weather

Refreshed every ~17 minutes.

Requires a API-key. Consumes up to 83 requests/day and 2 555 requests/month, depending on usage.

Order of precedence:

  • LATITUDE and LONGITUDE
  • LOCATION

Configure in secrets.h:

#define OPENWEATHER_KEY "secret"

Configure in .env:

MODE_WEATHER='true'
WEATHER_OPENWEATHER='true'

[!NOTE] Location coordinates, LATITUDE and LONGITUDE are required.

See also Weather mode.

🌀 Tomorrow.io

Refreshed every ~17 minutes.

Requires a API-key. Consumes up to 83 requests/day, depending on usage.

Order of precedence:

  • LATITUDE and LONGITUDE
  • LOCATION

Configure in secrets.h:

#define TOMORROWIO_KEY "secret"

Configure in .env:

MODE_WEATHER='true'
WEATHER_TOMORROWIO='true'

[!NOTE] Location coordinates LATITUDE and LONGITUDE, or a location name LOCATION is required.

See also Weather mode.

🌍 World Weather Online

Refreshed every ~17 minutes.

Order of precedence:

  • LATITUDE and LONGITUDE
  • LOCATION

Requires a API-key. Consumes up to 83 requests/day, depending on usage.

Configure in secrets.h:

#define WORLDWEATHERONLINE_KEY "secret"

Configure in .env:

MODE_WEATHER='true'
WEATHER_WORLDWEATHERONLINE='true'

[!NOTE] Location coordinates LATITUDE and LONGITUDE, or a location name LOCATION is required.

See also Weather mode.

☀️ Wttr.in

Refreshed every ~17 minutes.

Order of precedence:

  • LATITUDE and LONGITUDE
  • LOCATION
  • IP address

Configure in .env:

MODE_WEATHER='true'
WEATHER_WTTRIN='true'

See also Weather mode.

🌧️ Yr

Refreshed every ~9 minutes.

Configure in .env:

MODE_WEATHER='true'
WEATHER_YR='true'

[!NOTE] Location coordinates, LATITUDE and LONGITUDE are required.

See also Weather mode.