How vishalbabu-09/spidey-mesh-hackverse works
Spidey-Mesh combines ESP8266 worker telemetry sent over ESP-NOW to a master, which forwards it over local Wi-Fi/TCP to a Raspberry Pi gateway, with a separate web simulator for mesh quality and gateway failover experiments. The simulator flow is web UI/API → simulation orchestrator → topology, channel scoring, and gateway election. Hardware links are documented in the README; simulator module relationships are limited to those shown in excerpts or documented there, so unsampled details are not expanded.
Main entry points: simulation.py Simulation orchestrator · app.py Flask API · Master_esp.cpp ESP8266 master · gateway.py Gateway election
Components 12
Embedded telemetry
- Worker 1
Slave1.cpp - Worker 2
Slave2.cpp - ESP8266 master
Master_esp.cpp
Mesh simulation
- Simulation orchestrator
esp32_mesh_simulator/simulation.py - Topology model
esp32_mesh_simulator/mesh.py - Channel scoring
esp32_mesh_simulator/channel_quality.py - Gateway election
esp32_mesh_simulator/gateway.py
Simulator interface
- Dashboard UI
esp32_mesh_simulator/static/script.js - Flask API
esp32_mesh_simulator/app.py - Dashboard page
esp32_mesh_simulator/templates/index.html
Other components
- Raspberry Pi gateway
- User browser
Connections 11
- Worker 1 → ESP8266 master: sends telemetry
README.md - Worker 2 → ESP8266 master: sends telemetry
README.md - ESP8266 master → Raspberry Pi gateway: forwards telemetry
README.md - User browser → Dashboard UI: uses dashboard
README.md - Dashboard UI → Flask API: calls API
esp32_mesh_simulator/static/script.js - Flask API → Dashboard page: renders page
esp32_mesh_simulator/app.py - Flask API → Simulation orchestrator: delegates operations
esp32_mesh_simulator/app.py - Simulation orchestrator → Topology model: uses topology model
README.md - Simulation orchestrator → Channel scoring: evaluates channels
README.md - Simulation orchestrator → Gateway election: runs failover
README.md - Gateway election → Channel scoring: ranks candidates
esp32_mesh_simulator/gateway.py