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

Solar Clock

On an AWTRIX display
Solar Clock shown on an AWTRIX display
Solar Clock · by martinh87

On your display

Dynamic 52×16 solar clock featuring an astronomical day/night horizon, real-time sun tracking, and adaptive ambient sky lighting.

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

Solar ClockAWTRIX 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

SolarClock (52×16)

A clock app tailored for 52×16 pixel matrix displays. It pairs digital typography with a real-time astronomical ephemeris model that visualizes the diurnal sun position and ambient sky lighting based on your local coordinates.

What’s New in v3
  • Adaptive Low-Brightness Blackout: Due to hardware 8-bit PWM color quantization on LED matrices, subtle gradients under 40% panel brightness suffer from color banding, tint shifting, and washed-out contrast. Below panel brightness 100, the ambient sky background automatically turns pitch black. This ensures sharp contrast and readability in dark rooms, while the 3-pixel horizon strip remains vibrant. Above 100 brightness, the full vertical atmosphere shines without compromise.
  • Calibrated Twilight Palette: Reworked color lookup tables and smoothing algorithms minimize artificial magenta and cyan color casts during dawn and dusk.
  • Modern Settings UI: Configuration options now use native dropdown menus (select) and switches (bool).
Features
  • Astronomical 24h Horizon Bar: Continuous 3-pixel gradient strip at the bottom reflecting solar elevation across the day.
  • Compact Star Sun Cursor: Pulsating 3×3 star marker gliding across the horizon to track current sun progress.
  • Ambient Atmosphere (Brightness ≥ 100): Vertical sky glow shifting dynamically with the sun's position.
  • Harmonized 11px Typography: Custom digits with softened segments for clear legibility.
  • Adaptive Clock Color: Time text transitions smoothly from crisp night tones to warm midday gold.
Setup & Parameters
  • Latitude (lat) / Longitude (lon): Geographic location in decimal degrees (Default: Vienna 48.2082 / 16.3738).
  • Time format (timeformat): 24 or 12 (includes stacked AM/PM indicators).
  • Leading zero (leading_zero): Toggle display of leading zero for single-digit hours.
  • Colon mode (colon): Choose between Pulse, Solid, or Off.
  • Ambient sky (ambient_bg): Enables the background sky glow (only renders when panel brightness is ≥ 100).

More scripts in Miscellaneous

Something wrong with this script? Report it.