Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

ScriptAWTRIX NG

Weather (airport-observed sky)

On an AWTRIX display
Weather (airport-observed sky) shown on an AWTRIX display
Weather (airport-observed sky) · by Saudigeek

On your display

Galadril's Weather with a sky that follows the nearest airport's live report. No API key.

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Smarthome
Includes
Script

Runs on

  • Runs on 32×8 (TC001 & DIY)
  • Runs on 52×16 (TC002)
  • Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.

Choose your display in the next step.

Send to AWTRIX

Choose your AWTRIX

Weather (airport-observed sky)AWTRIX NG script

Install this script on your AWTRIX NG. Its icons and sounds are installed with it.

Your AWTRIX’s local address, for example 192.168.178.39 or awtrix.local.

The name shown in your AWTRIX script list. Use letters, digits, hyphens or underscores.

Connection & device login

Connect your phone or computer to the same network as your AWTRIX. Allow local network access if your browser asks.

Use the device’s IP address, without a page path such as /#/apps.

If your AWTRIX requires a login, the username and password fields will appear when you connect.

Sign in to the Hub to install scripts. Attached files are installed separately.

Script description

Weather (airport-observed sky)

Based on Weather by Galadril: https://awtrix.de/script/myN7wJkBqNNX
The animated sky, the readout and all the SELECT detail pages are his work. This version changes one thing: where the sky comes from.

What is different

Open-Meteo's "current" weather is a forecast model's estimate of now, not a measurement, so it can show a clear sky while it is actually cloudy or raining. This version also reads the latest weather report (METAR) from your nearest airport and lets that decide the sky:

  • Rain, snow, fog or a thunderstorm reported at the airport is always drawn.
  • If the airport is dry and the forecast shows nothing falling, the airport's cloud cover picks clear, fair or cloudy.
  • If the forecast shows rain and the airport is dry, the forecast's rain is kept.

Temperature, the daily range, the rain outlook, wind, feels-like, sunrise/sunset and UV still come from Open-Meteo, exactly as in the original.

Setup

  • Latitude / Longitude: decimal degrees. The defaults are Riyadh.
  • Airport: the four-letter ICAO code of the nearest airport that reports weather, for example OERK (Riyadh), EHAM (Amsterdam), EGLL (London Heathrow). Leave it empty to use the forecast alone, which behaves like the original script.
  • Fahrenheit and Night sky after dark: unchanged from the original.

No account or API key is needed. The airport report comes from aviationweather.gov over HTTPS.

Good to know

  • An airport report is used for at most 90 minutes. If the airport does not answer or has no recent report, the sky falls back to the forecast without showing an error.
  • The airport can be some distance from you, so a shower over your street but not over the airport can still be missed.
  • 32x8 panels only (TC001 and DIY). The 52x16 version is not included.

Panels: 32x8 · Data: Open-Meteo and aviationweather.gov

More scripts in Smarthome

Something wrong with this script? Report it.