LIWANAG
IoT + Full Stack

LIWANAG

Lighting Intelligence with Automated Navigation for Analytics and Governance

LIWANAG, built for a smart-city hackathon, is a full-stack IoT platform that monitors street lighting conditions across a city in real time.

ESP32 sensors push lux readings to a Supabase backend in real time. A React + Leaflet frontend maps each sensor node and color-codes streets by illumination value.

An analytics layer surfaces underlit corridors so city governance teams can allocate maintenance resources efficiently.

LIWANAGLIWANAG demo
ReactTypeScriptFastAPITailwindCSSLeaflet.jsSupabaseOllamaRenderESP32

Demo

Features

Dashboard & Analytics

City-wide snapshot: well-lit percentage, total km surveyed, average lux reading, lighting improvement trend over time, and top priority streets and barangays sorted by lux deficit.

Street Illumination Map

Choropleth map visualizing lux sensor readings across streets. Switch between map styles, zoom in to sensor collection points, and click any to view its exact lux value.

Street Selection

Click any street segment on the map to pull up its full details: name, survey status, average lux reading, and a breakdown of all sensor points along its path.

Barangay Selection

Interactive map with barangay-level boundaries — select any barangay to drill into its illumination stats, street coverage, and sensor health in detail.

Luxor

LLM-powered chatbot for LIWANAG — ask about underlit streets, barangay rankings, sensor status, or maintenance priorities in plain language.

Under the Hood

ESP32 Sensor Unit

ESP32 Sensor Unit

Real-Time

Syncing

GPS

Tagged Readings

Wi-Fi

Connectivity

1

Hardware Components

ESP32 microcontroller paired with a BH1750 light sensor, GPS module, OLED display, SD card module, 3.7V battery with charging module, and an external antenna.

2

Data Collection

The ESP32 logs a lux reading with GPS coordinates every 3–5 meters of travel, capturing street-level illumination at high spatial resolution.

3

Supabase Real-Time Sync

Readings are pushed to Supabase via REST. Supabase Realtime subscriptions instantly broadcast updates to all connected frontend clients — no polling needed.

4

Fully Remote Operation

The entire data pipeline runs autonomously and can be monitored and managed remotely through the Device Manager built into the LIWANAG platform.

Team

Contributors

Nicko James Barata

Nicko James Barata

Lead, Full-Stack & IoT Developer

Jealla Rose Waje

Jealla Rose Waje

UI/UX Designer

Lee Gabriel Isidro

Lee Gabriel Isidro

Frontend Developer

Miguel Grant Bagtas

Miguel Grant Bagtas

Backend Developer