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

RainAhead

On an AWTRIX display
RainAhead shown on an AWTRIX display
RainAhead · by hnns

On your display

Should I take rain gear today? Imber shows a rain map of your area for the next hours, when the rain starts at your place to the quarter hour, and a chart until the end of your day with thunderstorm warnings.

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

Runs on

  • Does not run on 32×8 (TC001 & DIY) Made for 52×16 (TC002).
  • 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

RainAheadAWTRIX 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

Should I take rain gear today? RainAhead / Imber (Latin for "downpour") answers this in one static view: where the rain is around you, when it starts at your place, and how the rest of your day looks. It is not a weather report but a decision aid for the commute and the day.

How to read it

  • Left: the rain map. A round map of the area around you, 20 km in every direction by default. You are in the middle, between the four grey dots. Each cell shows the rain total of the next 3 hours from the start time: black is dry, the brighter the blue, the more rain. A yellow dot marks thunderstorm potential, the brighter, the stronger.
  • Top right: the time window. On the left the time the rain starts at your place (to the quarter hour; if it is already raining, now), on the right the time the chart ends.
  • Bottom right: the chart. One pixel column per slice of time between these two times. The height is the rain at your place, a yellow column means thunderstorm potential nearby. The bright part at the start covers the same hours as the map, the rest of the day is dimmed.

The app only joins the rotation when rain is expected before the end of your day (20:00 by default). On dry days you never see it.

Setup

  1. Install the script and open its settings.
  2. Enter your latitude and longitude (decimal degrees, e.g. from a map app). The default is the centre of Germany.
  3. Optional: adjust the map radius, the map hours, the rain threshold and the end of your day.

Optional integrations

  • Show only when (MQTT topic): the app only appears while this topic says on. Example: let Home Assistant publish on during your morning routine, so the forecast is on the clock when you get ready, and gone afterwards.
  • Indicator topic (MQTT): lights one of the clock's indicators while rain is expected today, e.g. awtrix/cmd/indicators/3 (use your own MQTT prefix).

Good to know

  • Data: Open-Meteo (CC BY 4.0), model ICON-D2 of the German Weather Service (DWD), about 2 km resolution, updated every hour. It covers Germany and its neighbouring countries only; elsewhere the app shows no data.
  • Two requests per update: hourly values for the map (one request for all 37 points) and 15-minute values for your place. With the default interval of 15 minutes this is about 3,700 location calls a day, within Open-Meteo's free limit of 10,000 for non-commercial use. Shorter intervals can exceed it.
  • Thunderstorms are shown by the lightning potential index (LPI) of the model. It tells how likely and how strong lightning is, but it is not a probability.
  • The clock needs internet access (HTTPS to api.open-meteo.com).
  • Made for the 52×16 display (Ulanzi TC002).

More scripts in Miscellaneous

Something wrong with this script? Report it.