user-img

FUSION AUTOMATE

  • 7 Projects
  • 3 Followers
  • Oct 30,2025
+ Follow

Weather Clock using Nextion Discovery Series Display and ESP

ESP32 connects to WiFi, fetches live weather via WeatherAPI, syncs time using NTP, and displays temperature, humidity, visibility, date, and weather icons on a Nextion screen.

Weather Clock using Nextion Discovery Series Display and ESP
 
  • thumbnail-img
 

Hardware Components

  • Espressif ESP32 Development Board

    X 1
  • Nextion 3.5" Discovery Series Resistive Touch Display

    Nextion
    X 1 fenxiang

Tools, APP Software Used etc.

  • Arduino IDE

    Arduino IDE

    Arduino
  • Nextion Display

    Nextion

Story

🌦️ ESP32 × Nextion Display — Live Weather & Clock Dashboard

This project turns your Nextion HMI display into a real-time weather and clock dashboard, powered by an ESP32 connected to WiFi and WeatherAPI.com.


🧠 Overview

The ESP32 connects to the internet, fetches live weather data (temperature, humidity, visibility, and condition), synchronizes time from NTP servers, and updates the Nextion display every second for time and every 15 minutes for weather.


⚙️ Features

✅ Live weather data (via WeatherAPI) ✅ Auto time sync using NTP ✅ Smart weather icons based on condition codes ✅ Real-time clock & weekday display ✅ Efficient, non-blocking updates


🧩 Hardware Setup

Component Description
ESP32 Main controller
Nextion Display (Discovery) UI for weather and clock
WiFi Network For API and NTP access

Connections:

ESP32 Pin Nextion Pin Description
16 TX Nextion → ESP32
17 RX ESP32 → Nextion
5V 5V Power
GND GND Common ground

🌐 API & Services


🧾 Display Elements

Nextion Component Purpose
tTemp Temperature (°C)
tHum Humidity (%)
tVis Visibility (m)
tDate Date (DD-MM)
tTime Time (HH:MM)
tDay Weekday
p1 Weather icon

📊 Logic Flow

  1. ESP32 connects to WiFi
  2. Syncs system time using NTP
  3. Fetches live weather JSON from WeatherAPI
  4. Parses data using ArduinoJson
  5. Updates display text and weather icon
  6. Repeats every 15 minutes for weather, 1 second for time

🌈 Weather Icon Mapping

Condition Icon Description
Default 2 Clouds with wind
Light Rain 3 Cloud + rain
Thunderstorm 4 Cloud + thunder
Loading / Idle 5 Loading screen

🛠️ Libraries Used

  • WiFi.h
  • HTTPClient.h
  • ArduinoJson.h
  • time.h
  • HardwareSerial.h

🚀 Demo Output

  • Time, date, and weekday auto-refresh every second
  • Weather auto-updates every 15 minutes
  • Dynamic icons represent real conditions in your area

🧩 Possible Extensions

  • Add forecast page (next 3 days)
  • Include weather alerts
  • Add temperature graph or animation
  • Control brightness or theme based on time
Code
  • Arduino and Nextion (HMI) files with images included

    Weather_Clock_694188709690319e70bdef.zip
    Download(2)

Weather Clock using Nextion Discovery Series Display and ESP

ESP32 connects to WiFi, fetches live weather via WeatherAPI, syncs time using NTP, and displays temperature, humidity, visibility, date, and weather icons on a Nextion screen.

40
 
4
0
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 4 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Country: Shipping Way:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Guaranteed Purchase: Full techsupport