ESPTimeCast is a sleek, WiFi-connected LED matrix clock and weather display built on ESP8266/ESP32 and MAX7219. It combines real-time NTP time sync, live OpenWeatherMap updates, and a modern web-based configuration interface β all in one compact design.
video.mp4
Β
To help support the projectβs development, the official ESPTimeCast case design is available as a paid STL download (see links below).
If you prefer a free option, there are many compatible MAX7219 LED matrix enclosures shared by the community β you can find plenty by searching for βMAX7219 caseβ on Printables, Cults3D, or similar sites.
Β
ESPTimeCast has been featured on:
Β
- LED Matrix Display (8x32) powered by MAX7219, with custom font support
- Simple Web Interface for all configuration (WiFi, weather, time zone, display durations, and more)
- Automatic NTP Sync with robust status feedback and retries
- Weather Fetching from OpenWeatherMap (every 5 minutes, temp/humidity/description)
- Custom Scroll Messages - fully persistent until manually cleared via the Web UI
- Fallback AP Mode for easy first-time setup or configuration
- Timezone Selection from IANA names (DST integrated on backend)
- Get My Location button to get your approximate Lat/Long
- Week Day and Weather Description display in multiple languages
- Persistent Config stored in LittleFS, with backup/restore system
- Status Animations for WiFi connection, AP mode, time syncing
- Advanced Settings panel with:
- Custom Primary/Secondary NTP server input
- Display Day of the Week toggle (default is on)
- Display Blinking Colon toggle (default is on)
- Show Date toggle (default is off)
- 24/12h clock mode toggle (24-hour default)
- Imperial Units (Β°F) toggle (metric Β°C defaults)
- Show Humidity toggle (display Humidity besides Temperature)
- Weather description toggle (displays: heavy rain, scattered clouds, thunderstorm etc.)
- Flip display (180 degrees)
- Adjustable display brightness
- Automatic Dimming based on Sunrise/Sunset from weather API
- Custom Dimming select custom dimming hours
- Countdown function (Scroll / Dramatic)
- Optional: ESPTimeCast supports displaying glucose data from Nightscout servers every 5 minutes, alternating with weather information
- Optional: Export and Upload settings via
device-ip/exportanddevice-ip/uploadendpoints
Β
Pin assignments have been standardized across all Wemos D1 Mini and S2 Mini boards!
Check your board version and make sure your sketch matches the new pin layout, especially note that CLK is now on D5 (was D6).
After testing, we found that powering the MAX7219 matrix from the D1 Miniβs 3.3V pin can cause overheating and unstable display behavior, so weβre now officially powering the display from the 5V USB rail instead.
This change improves brightness, stability, and protects the onboard voltage regulator from long-term damage.
Note: Pin positions on the header remain the same, but ensure your sketch uses the correct pin definitions.
- Before: Display VCC was connected to the 3.3V pin on the ESP board
- Now: Display VCC connects to the 5V pin (direct from USB power)
- CLK: moved from D6 β D5
- Standardized pin assignment across all Wemos D1 Mini and S2 Mini boards
- The MAX7219 LED matrix is designed for 5V operation
- The AMS1117 3.3V regulator on most D1 Minis has limited current (~800 mA max, often less)
- High-brightness displays (especially green/yellow) can overload it, causing:
- Overheating
- Voltage drop
- Regulator failure (some users saw only 2.4 V output after damage)
- Brighter and more stable display output
- Reduced heat load on the ESP board
- Prevents long-term regulator damage
- No level shifters required β MAX7219 works fine with 3.3V logic signals
- Double-check your board wiring before powering on
- Update your sketch pin definitions if youβre upgrading from an older build
- Reference the diagram below for correct wiring (coming next)
| D1 Mini (Micro USB) | D1 Mini (USB C) | D1 Mini (ESP 32) | S2 Mini | MAX7219 |
|---|---|---|---|---|
| GND | GND | GND | GND | GND |
| 5V | 5V/VBUS | 5V/VBUS | 5V/VBUS | VCC |
| D5 | 14 | 18 | 7 | CLK |
| D7 | 13 | 23 | 11 | CS |
| D8 | 15 | 5 | 12 | DIN |
Tip: Always double-check that VCC (5V), GND, and DIN/CS/CLK match your MAX7219 moduleβs pin order β different modules sometimes label them differently.
Β
The built-in web interface provides full configuration for:
- WiFi settings (SSID & Password)
- Weather settings (OpenWeatherMap API key, City, Country, Coordinates)
- Time zone (will auto-populate if TZ is found)
- Day of the Week and Weather Description languages
- Display durations for clock and weather (milliseconds)
- Custom Scroll Text - set a persistent scrolling message on the display directly from the Web UI
- Advanced Settings (see below)
Β
- Power on the device. If WiFi fails, it auto-starts in AP mode:
- SSID:
ESPTimeCast - Password:
12345678 - Captive portal should open automatically, if it doesn't open
http://192.168.4.1orhttp://setup.espin your browser.
- SSID:
- Set your WiFi and all other options.
- Click Save Setting β the device saves config, reboots, and connects.
- The device shows its local IP address after boot so you can login again for setting changes
External links and the "Get My Location" button require internet access.
They won't work while the device is in AP Mode - connect to WiFi first.
Β
Β
Click the cog icon next to βAdvanced Settingsβ in the Web UI to reveal extra configuration options.
Available advanced settings:
- Primary NTP Server: Override the default NTP server (e.g.
pool.ntp.org) - Secondary NTP Server: Fallback NTP server (e.g.
time.nist.gov) - Day of the Week: Display Day of the Week in the desired language
- Blinking Colon toggle (default is on)
- Show Date (default is off, duration is the same as weather duration)
- 24/12h Clock: Switch between 24-hour and 12-hour time formats (24-hour default)
- Imperial Units (Β°F) toggle (metric Β°C defaults)
- Humidity: Display Humidity besides Temperature
- Weather description toggle (display weather description in the selected language for 3 seconds or scrolls once if description is too long)
- Flip Display: Invert the display vertically/horizontally
- Brightness: Off - 0 (dim) to 15 (bright)
- Automatic Dimming Feature base on Sunrise/Sunset from weather API
- Custom Dimming Feature: Start time, end time and desired brightness selection
- Countdown function, set a countdown to your favorite/next event, 2 modes: Scroll/Dramatic!
Non-English characters converted to their closest English alphabet.
For Esperanto, Irish, and Swahili, weather description translations are not available. Japanese translations exist, but since the device cannot display all Japanese characters, English will be used in all these cases.
Tip: Don't forget to press the save button to keep your settings
Β
- OpenWeatherMap API Key:
- City Name: e.g.
Tokyo,London, etc. - Country Code: 2-letter code (e.g.,
JP,GB) - ZIP Code: Enter your ZIP code in the city field and US in the country field (US only)
- Latitude and Longitude You can enter coordinates in the city field (lat.) and country field (long.)
- Time Zone: Select from IANA zones (e.g.,
America/New_York, handles DST automatically)
Β
This guide will walk you through setting up your environment and uploading the ESPTimeCast project to your ESP8266 or ESP32 board. Please follow the instructions carefully for your specific board type.
Follow these steps to prepare your Arduino IDE for ESP8266 development:
- Install ESP8266 Board Package:
- Open
File > Preferencesin Arduino IDE. - Add
http://arduino.esp8266.com/stable/package_esp8266com_index.jsonto "Additional Boards Manager URLs." - Go to
Tools > Board > Boards Manager.... Search foresp8266byESP8266 Communityand click "Install".
- Open
- Select Your Board:
- Go to
Tools > Boardand select your specific board, e.g., Wemos D1 Mini (or your ESP8266 variant).
- Go to
- Configure Flash Size:
- Under
Tools, selectFlash Size "4MB FS:2MB OTA:~1019KB". This ensures enough space for the sketch and LittleFS data.
- Under
- Install Libraries:
- Go to
Sketch > Include Library > Manage Libraries...and install the following:ArduinoJsonby Benoit BlanchonMD_Parolaby majicDesigns (this will typically also install its dependency:MD_MAX72xx)ESPAsyncTCPby ESP32AsyncESPAsyncWebServerby ESP32Async (3.8.1)
- Go to
Due to internal changes in ESPAsyncWebServer 3.9.0, large files served from SPIFFS/LittleFS may fail to load on ESP8266 (blank page). Version 3.8.1 is currently the most stable release for ESP8266, and is recommended for this project.
Install version 3.8.1 manually:
- Arduino IDE β Tools β Manage Libraries
- Search: ESPAsyncWebServer
- Install version 3.8.1
Future versions may fix this, but for now 3.8.1 ensures full compatibility.
Β
Follow these steps to prepare your Arduino IDE for ESP32 development:
- Install ESP32 Board Package:
- Go to
Tools > Board > Boards Manager.... Search foresp32byEspressif Systemsand click "Install".
- Go to
- Select Your Board:
- Go to
Tools > Boardand select your specific board, e.g., LOLIN S2 Mini (or your ESP32 variant).
- Go to
- Configure Partition Scheme:
- Under
Tools, selectPartition Scheme "No OTA (2MB APP/2MB SPIFFS)". This ensures enough space for the sketch and LittleFS data.
- Under
- Install Libraries:
- Go to
Sketch > Include Library > Manage Libraries...and install the following:ArduinoJsonby Benoit BlanchonMD_Parolaby majicDesigns (this will typically also install its dependency:MD_MAX72xx)AsyncTCPby ESP32AsyncESPAsyncWebServerby ESP32Async
- Go to
Once your IDE is ready:
-
Open the Project Folder
- ESP8266: Open the
ESPTimeCast_ESP8266folder and openESPTimeCast_ESP8266.ino. - ESP32: Open the
ESPTimeCast_ESP32folder and openESPTimeCast_ESP32.ino.
- ESP8266: Open the
-
Upload the Sketch
- Click the Upload button (right arrow icon) in the Arduino IDE toolbar. This will compile and upload the sketch to your board.
- No separate LittleFS upload is needed. All web UI files are embedded in the sketch.
Β
This guide explains how to integrate ESPTimeCast with Home Assistant to send custom messages to your LED display.
ESPTimeCast exposes a REST API endpoint that lets you send scrolling messages to the display from either Home Assistant or the built-in Web UI.
- Act as persistent messages
- Remain active (even through reboots) until replaced or cleared in the Web UI
- Short messages (up to 8 characters) display static & centered, using the Web UIβs
Weather Durationbefore the display rotates to the next mode
- Are temporary overrides
- Do not overwrite the persistent Web UI message
- Can automatically expire using:
secondsβ time-basedscrolltimesβ number of scroll cycles
- If neither parameter is sent:
- Short messages (up to 8 characters) use
Weather Duration - Long messages scroll once per display cycle (then the display advances to the next mode, e.g., clock β weather β β¦)
- Short messages (up to 8 characters) use
New: Home Assistant messages can now expire automatically after a set number of seconds or scroll cycles and the last Web UI message (if any) will be restored.
POST http://<device_ip>/set_custom_message
| Parameter | Type | Required | Description |
|---|---|---|---|
message |
string | Yes | Message text to display. Send an empty string ("") to clear messages. |
speed |
integer | Optional | Scrolling speed (range 10β200). Lower values = faster scroll. |
seconds |
integer | Optional | Maximum display duration in seconds (range 0β3600). Set to 0 for infinite time. |
scrolltimes |
integer | Optional | Maximum number of full scroll cycles (range 0β100). Set to 0 for infinite scrolls. |
| Source | Behavior | Notes |
|---|---|---|
| Home Assistant | Displays message temporarily (until next mode rotation or clear). | Restores any saved Web UI message afterward. |
| Web UI | Displays message persistently until manually cleared. | Acts as a permanent banner or ticker. |
| Clear command from Web UI | Clears all messages (HA + UI). | Use this to reset the display completely. |
| Clear command from Home Assistant | Clears only the temporary HA message. | UI message will reappear if one was saved. |
| Seconds/Scrolltimes expires (HA only) | Automatic clear. The temporary message is removed when the first limit is reached. | Automatically restores the saved UI message. |
Short messages (up to 8 characters):
- Display static & centered (no scrolling).
- Home Assistant: uses
secondsif provided, otherwise the Web UI Weather Duration. - Web UI: always uses Weather Duration.
Long messages (8 characters or more):
- Always scroll.
- If sent from HA, scrolling stops when seconds or scrolltimes limits are reached (whichever comes first).
alias: Notify Door Open on ESPTimeCast
trigger:
- platform: state
entity_id: binary_sensor.front_door
to: "on"
action:
- service: rest_command.esptimecast_message
data:
message: "DOOR OPEN"
speed: 60
seconds: 15 # Message will automatically clear after 15 secondsalias: Notify Mail Delivered Three Times
action:
- service: rest_command.esptimecast_message
data:
message: "MAIL DELIVERED"
scrolltimes: 3 # Message will clear after 3 complete scroll cyclesalias: Clear ESPTimeCast Message
trigger:
- platform: state
entity_id: binary_sensor.front_door
to: "off"
action:
- service: rest_command.esptimecast_message
data:
message: "" # Sends an empty message to trigger the clear logicAdd this to your configuration.yaml This configuration uses default values for the new parameters (seconds and scrolltimes) set to 0 (infinite) if they are not passed in the service call.
rest_command:
esptimecast_message:
url: "http://<device_ip>/set_custom_message"
method: POST
content_type: "application/x-www-form-urlencoded"
payload: "message={{ message }}&speed={{ speed | default(85) }}&seconds={{ seconds | default(0) }}&scrolltimes={{ scrolltimes | default(0) }}"Then restart Home Assistant.
You can quickly test sending a message to your ESPTimeCast display using curl from any computer on the same network:
curl -X POST -d "message=HA TEST&speed=40&seconds=10&scrolltimes=2" "http://<device_ip>/set_custom_message"
Replace <device_ip> with the IP of your ESPTimeCast device.
The message parameter is your text to display.
The optional speed parameter controls the scroll speed (10β200, lower = faster). The message will clear after 10 seconds OR 2 scrolls, whichever comes first.
- Only AβZ, 0β9, spaces, and simple punctuation (
: ! ' - . , _ + % / ?) are allowed. - All text is automatically converted to uppercase.
- Lower scroll speed values make the message scroll faster.
- Custom Message scroll speed can be changed via this endpoint.
- If both seconds and scrolltimes are set to non-zero values, the message is removed when the first condition is met.
- Temporary alerts like DOOR OPEN, RAIN STARTING, or MAIL DELIVERED.
- Persistent ticker messages from the Web UI like WELCOME HOME or ESPTIMECAST LIVE.
- Combine both: Web UI for a base banner, and HA for transient automation messages.
Β
ESPTimeCast provides an endpoint that allows Home Assistant to remotely control the LED matrix brightness β including turning the display completely off.
POST http://<device_ip>/set_brightness
| Parameter | Type | Required | Description |
|---|---|---|---|
value |
integer | Yes | Brightness level 0β15, or -1 to turn the display off. |
- Values 0β15 set the LED matrix brightness normally.
- Value -1 turns the display off entirely (LEDs disabled) until brightness is set again.
- When brightness is set back to 0β15, the display immediately resumes showing the current message or mode.
rest_command:
esptimecast_brightness:
url: "http://<device_ip>/set_brightness"
method: POST
content_type: "application/x-www-form-urlencoded"
payload: "value={{ brightness }}"
alias: Dim ESPTimeCast at Night
trigger:
- platform: time
at: "23:00"
action:
- service: rest_command.esptimecast_brightness
data:
brightness: -1 # Turns the display off
You can quickly test changing the brightness of your ESPTimeCast display using curl from any computer on the same network:
curl -X POST -d "value=10" "http://<device_ip>/set_brightness"
Replace <device_ip> with the IP address of your ESPTimeCast device.
Use a brightness value between 0β15, or -1 to turn the display off.
Β
π§© Hidden & Advanced Features
ESPTimeCast includes a few optional βpower-userβ features that arenβt visible in the main interface but can be accessed directly from your browser. These are intended for advanced users who want more control or integration.
Erases all saved configuration data, Wi-Fi credentials, and uptime history. Used to restore the device to its original state. Only available in AP mode.
Example:
http://192.168.4.1/factory_reset
Downloads your current configuration (config.json) directly from the device.
This is useful for creating backups or migrating settings between devices.
Example:
http://your-device-ip/export
The file will download automatically with your saved WiFi credentials (safely masked for security) and all other settings.
Lets you manually upload a configuration file (config.json) to the device.
Perfect for restoring a backup or quickly switching between setups.
Usage:
- Go to
http://your-device-ip/upload - Select your edited or backup
config.jsonfile. - The device will confirm the upload and automatically reboot with the new configuration.
Tip: You can export β edit the file on your computer β re-upload to test new settings without using the web interface.
ESPTimeCast supports displaying glucose data from Nightscout servers alongside weather information.
When the secondary NTP/URL field (ntpServer2) contains a valid Nightscout API endpoint for example:
https://your-cgm-server/api/v1/entries/current.json?token=xxxxxxxxxxxxx
the device automatically enables Glucose Display Mode.
In this mode:
- The device fetches glucose data every 5 minutes.
- Glucose value and trend direction are displayed alternately with time and weather.
- The display duration for Nightscout data is the same as the weather display duration.
- Weather data continues to display normally.
- Debug logs confirm updates and Nightscout responses in the Serial Monitor.
- These features are optional and hidden from the main interface to avoid clutter.
/uploadand/exportare intentionally unlinked from the UI to prevent accidental access.- Always verify your WiFi credentials and tokens before uploading edited configurations.
Β
ESPTimeCast automatically switches between two display modes: Clock and Weather. If "Show Weather Description" is enabled, a third mode (Description) will display with a duration of 3 seconds, if the description is too long to fit on the display the description will scroll from right to left once.
What you see on the LED matrix depends on whether the device has successfully fetched the current time (via NTP) and weather (via OpenWeatherMap).
The following table summarizes what will appear on the display in each scenario:
| Display Mode | π NTP Time | π¦οΈ Weather Data | πΊ Display Output |
|---|---|---|---|
| Clock | β Yes | β | ποΈ Day Icon + β° Time (e.g. @ 14:53) |
| Clock | β No | β | ! NTP (NTP sync failed) |
| Weather | β | β Yes | π‘οΈ Temperature (e.g. 23ΒΊC) |
| Weather | β Yes | β No | ποΈ Day Icon + β° Time (e.g. @ 14:53) |
| Weather | β No | β No | ! TEMP (no weather or time data) |
- The display automatically alternates between Clock and Weather modes (the duration for each is configurable).
- If "Show Weather Description" is enabled a third mode Description will display after the Weather display with a duration of 3 seconds.
- In Clock mode, if NTP time is available, youβll see the current time plus a unique day-of-week icon. If NTP is not available, you'll see
! NTP. - In Weather mode, if weather is available, youβll see the temperature (like
23ΒΊC). If weather is not available but time is, it falls back to showing the clock. If neither is available, youβll see! TEMP. - All status/error messages (
! NTP,! TEMP) are big icons shown on the display.
Legend:
- ποΈ Day Icon: Custom symbol for day of week (
@,=, etc.) - β° Time: Current time (HH:MM)
- π‘οΈ Temperature: Weather from OpenWeatherMap
- β Yes: Data available
- β No: Data not available
- β : Value does not affect this mode
Β
ESPTimeCast is an open-source passion project that blends art, engineering, and information display. If you enjoy this project, please consider supporting my work:



