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

Day progress

On an AWTRIX display
Day progress shown on an AWTRIX display
Day progress · by Jon

On your display

A 24-hour bar showing daylight and darkness for today, with a red marker for now. Sunrise and sunset are calculated on the panel from your latitude and longitude, so it needs no internet, MQTT or Home Assistant.

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Miscellaneous
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

Day progressAWTRIX 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

Day Progress turns the whole display into a timeline of today, from midnight on the left to midnight on the right.

Daylight (yellow) fills the span from sunrise to sunset; the rest of the day is night (midnight blue).
A red line marks the current time and moves across as the day goes on.
White tick marks at the top and bottom edges show midnight, 06:00, 12:00 and 18:00.

Sunrise and sunset are worked out on the panel itself with the NOAA solar equations, from the latitude and longitude you enter. Nothing is fetched from the internet and nothing has to be pushed to the clock. The calculation uses the panel’s own clock, including its UTC offset, so summer time is handled automatically. It runs every 30 minutes by default, so the marker and the seasonal change in day length stay current without using the processor between updates. The app stays out of the rotation until the panel’s clock has been set.

It works at any display width (32×8 and wider), because everything is scaled to the width of the matrix.

Settings
Day Progress turns the whole display into a timeline of today, from midnight on the left to midnight on the right.

Daylight (yellow) fills the span from sunrise to sunset; the rest of the day is night (midnight blue).
A red line marks the current time and moves across as the day goes on.
White tick marks at the top and bottom edges show midnight, 06:00, 12:00 and 18:00.

Sunrise and sunset are worked out on the panel itself with the NOAA solar equations, from the latitude and longitude you enter. Nothing is fetched from the internet and nothing has to be pushed to the clock. The calculation uses the panel’s own clock, including its UTC offset, so summer time is handled automatically. It runs every 30 minutes by default, so the marker and the seasonal change in day length stay current without using the processor between updates. The app stays out of the rotation until the panel’s clock has been set.

It works at any display width (32×8 and wider), because everything is scaled to the width of the matrix.

Settings
Latitude / Longitude: your location (east positive, west negative).
Update every: 15–120 minutes (default 30).
Night, Daylight, Now marker, Hour ticks: colours for each part.

More scripts in Miscellaneous

Something wrong with this script? Report it.