How jahangir-alisoy/firewatch works
FireWatch combines camera-based fire/smoke detection with Arduino sensor readings, fuses them into an alert level, and serves a live dashboard. The main workflow is camera frames → vision scores and sensor readings → fusion/state updates → dashboard streams; mute commands travel back to the sensor link. The firmware and dashboard capabilities are represented from the repository tree, but their source was not sampled, so their internal details and links are limited to documented behavior in the server excerpt.
Main entry points: server.py Web API · detector.py Vision scoring · link.py Serial link · firewatch.ino Arduino sensors
Components 17
Fire sensing
- Vision scoring
app/detector.py - ONNX detector
app/detector.py - YOLO detector
app/detector.py - CV fallback
app/detector.py - Arduino sensors
arduino/firewatch/firewatch.ino - Serial link
app/link.py - Sensor simulator
app/link.py
Alert coordination
- Camera input
app/server.py - Level fusion
app/server.py - Alert state
app/server.py - History and logs
app/server.py - Snapshots
app/server.py
Live dashboard
- Web API
app/server.py - Dashboard UI
app/static/index.html
Other components
- Operator
- Camera or video
- Model files
models/fire_smoke.onnx
Connections 19
- Camera input → Vision scoring: processes frames
app/server.py - Vision scoring → ONNX detector: selects backend
app/detector.py - Vision scoring → YOLO detector: selects backend
app/detector.py - Vision scoring → CV fallback: falls back
app/detector.py - Model files → ONNX detector: loads weights
- Arduino sensors → Serial link: sends readings
- Serial link → Level fusion: provides readings
app/server.py - Sensor simulator → Level fusion: provides readings
app/server.py - Vision scoring → Level fusion: provides scores
app/server.py - Level fusion → Alert state: updates state
app/server.py - Level fusion → Serial link: sets level
app/server.py - Alert state → History and logs: records updates
app/server.py - Web API → History and logs: serves state
app/server.py - Web API → Snapshots: writes snapshots
app/server.py - Dashboard UI → Web API: uses dashboard
- Web API → Operator: streams updates
- Operator → Web API: mutes alarm
app/server.py - Web API → Serial link: forwards mute
app/server.py - Camera or video → Camera input: supplies frames