How steve102420/kertilampa_gyozoeke_esp32c3mini works
This repository contains firmware for a Wi-Fi-connected, scheduleable garden light. A user accesses its embedded web interface to configure networking, lighting, brightness, and time settings; the device persists settings, drives the light, and synchronizes time for scheduling. The same firmware also checks GitHub for OTA updates. The runtime is concentrated in src/main.cpp; the excerpts show these capabilities but omit much of the route registration and loop wiring, so uncertain runtime links are left out.
Main entry points: main.cpp HTTP API
Components 15
Web control
- Embedded web UI
src/main.cpp - HTTP API
src/main.cpp - Saved settings
src/main.cpp
Lighting
- Light scheduler
src/main.cpp - Light control
src/main.cpp - PWM output
src/main.cpp
Connectivity and time
- Wi-Fi setup
src/main.cpp - Time sync
src/main.cpp
Firmware updates
- OTA checker
src/main.cpp - Firmware installer
src/main.cpp
Other components
- User
- Wi-Fi network
- NTP service
- Garden light
- GitHub releases
Connections 13
- User → Embedded web UI: uses
src/main.cpp - Embedded web UI → HTTP API: sends requests
src/main.cpp - HTTP API → Saved settings: saves settings
src/main.cpp - HTTP API → Wi-Fi setup: scans networks
src/main.cpp - Wi-Fi setup → Wi-Fi network: connects to
- HTTP API → Light control: sets light
src/main.cpp - Light control → PWM output: drives output
src/main.cpp - PWM output → Garden light: controls
src/main.cpp - Time sync → NTP service: synchronizes
- HTTP API → Time sync: sets timezone
src/main.cpp - Light scheduler → Light control: sets scheduled state
src/main.cpp - OTA checker → GitHub releases: checks releases
src/main.cpp - OTA checker → Firmware installer: starts update
src/main.cpp