Solar Clock
On your display
Dynamic 52×16 solar clock featuring an astronomical day/night horizon, real-time sun tracking, and adaptive ambient sky lighting.
- 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.
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: Vienna48.2082/16.3738). - Time format (
timeformat):24or12(includes stacked AM/PM indicators). - Leading zero (
leading_zero): Toggle display of leading zero for single-digit hours. - Colon mode (
colon): Choose betweenPulse,Solid, orOff. - Ambient sky (
ambient_bg): Enables the background sky glow (only renders when panel brightness is ≥ 100).
Sign in to view and copy the code of this script.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
More scripts in Miscellaneous
Something wrong with this script? Report it.
Have an idea?
Sign in to ask questions and join the conversation.