How blulightningxd/roadnet works
RoadNet is a browser dashboard and local telemetry server for monitoring ESP32 road-safety data. The main workflow connects by Web Bluetooth or configures the server’s demo, serial, or Wi-Fi stream; telemetry is normalized and buffered, then displayed as GPS tracking, inertial graphs, mesh status, and collision alerts. The README also documents ESP32 GPS/IMU/LoRa hardware and Bluetooth Classic SPP setup. Firmware and HTML are present but unsampled, so their internal behavior and links to the sampled runtime are not inferred.
Main entry points: app.js Dashboard Controller · app.py Telemetry Store · bluetooth.js BLE Manager · roadnet_esp32.ino Telemetry Firmware
Components 19
Telemetry Ingestion
- BLE Manager
static/bluetooth.js
Local Server
- Telemetry Store
app.py - Frame Normalizer
app.py - Demo Stream
app.py - Serial Stream
app.py - Wi-Fi Stream
app.py - HTTP API and Files
app.py
Safety Dashboard
- Dashboard Controller
static/app.js - GPS Map and Route
static/app.js - Inertial Graphs
static/app.js - Mesh Status
static/app.js - Collision Alerts
static/app.js - Dashboard Interface
static/index.html
ESP32 Device
- ESP32 Hardware
- Telemetry Firmware
esp32/roadnet_esp32.ino
Other components
- Dashboard User
- Web Browser
- OpenStreetMap Tiles
- Bluetooth Device
Connections 23
- Dashboard User → Web Browser: uses
README.md - Web Browser → HTTP API and Files: requests dashboard
README.md - HTTP API and Files → Dashboard Interface: serves files
app.py - Web Browser → BLE Manager: connects
static/bluetooth.js - BLE Manager → Bluetooth Device: reads notifications
static/bluetooth.js - BLE Manager → Bluetooth Device: writes commands
static/bluetooth.js - Dashboard Controller → BLE Manager: receives telemetry
static/app.js - Dashboard Controller → BLE Manager: sends reset
static/app.js - Web Browser → HTTP API and Files: polls telemetry
- Dashboard Controller → HTTP API and Files: sets connection
static/app.js - HTTP API and Files → Telemetry Store: reads and configures
app.py - Telemetry Store → Frame Normalizer: normalizes frames
app.py - Demo Stream → Telemetry Store: adds frames
app.py - Serial Stream → Telemetry Store: adds frames
app.py - Wi-Fi Stream → Telemetry Store: adds frames
app.py - Telemetry Store → Dashboard Controller: serves snapshots
static/app.js - Dashboard Controller → GPS Map and Route: updates position
static/app.js - GPS Map and Route → OpenStreetMap Tiles: loads map tiles
static/app.js - Dashboard Controller → Inertial Graphs: draws waveforms
static/app.js - Dashboard Controller → Mesh Status: shows node stats
static/app.js - Dashboard Controller → Collision Alerts: records collisions
static/app.js - ESP32 Hardware → Telemetry Firmware: runs
README.md - Telemetry Firmware → Bluetooth Device: provides telemetry
README.md