How hissyam90/kalimantan-wildfire-hotspot-detection works
Wildfire WebGIS supports two user workflows: viewing regional hotspot, weather and wind context on an interactive map, and uploading an image for CNN-based verification. The map view also summarizes hotspot confidence and hourly distribution, and visualizes smoke movement using wind data. The backend fetches NASA FIRMS and OpenWeatherMap data and serves both endpoints; image prediction is dispatched to a Python inference script. The evidence shows these main calls and data flows, but not every deployment or runtime detail.
Main entry points: HotspotMap.jsx Map and statistics · server.js API server · infer.py CNN inference · App.jsx Application shell
Components 14
Web interface
- Application shell
frontend/src/App.jsx - Map and statistics
frontend/src/HotspotMap.jsx - Smoke overlay
frontend/src/SmokeOverlay.jsx - Image verification
frontend/src/ImageVerification.jsx
API services
- API server
backend/server.js - Hotspot endpoint
backend/routes/hotspots.js - Wind endpoint
backend/routes/wind.js
Image inference
- CNN inference
backend/python/infer.py - Wildfire model
backend/model/wildfire_model.h5 - Class labels
backend/model/labels.json
External data
- NASA FIRMS
- OpenWeatherMap
- OpenStreetMap tiles
Other components
- Web user
Connections 16
- Web user → Application shell: uses
frontend/src/App.jsx - Application shell → Map and statistics: renders
frontend/src/App.jsx - Application shell → Image verification: renders
frontend/src/App.jsx - Map and statistics → Hotspot endpoint: requests hotspots
frontend/src/HotspotMap.jsx - Map and statistics → Wind endpoint: requests wind
frontend/src/HotspotMap.jsx - Map and statistics → Smoke overlay: renders overlay
frontend/src/HotspotMap.jsx - Map and statistics → OpenStreetMap tiles: loads tiles
frontend/src/HotspotMap.jsx - Image verification → API server: uploads image
frontend/src/ImageVerification.jsx - API server → Hotspot endpoint: routes request
backend/server.js - API server → Wind endpoint: routes request
backend/server.js - Hotspot endpoint → NASA FIRMS: fetches detections
backend/routes/hotspots.js - Wind endpoint → OpenWeatherMap: fetches weather
backend/routes/wind.js - API server → CNN inference: spawns process
backend/server.js - CNN inference → Wildfire model: loads model
backend/python/infer.py - CNN inference → Class labels: reads labels
backend/python/infer.py - CNN inference → API server: returns prediction
backend/server.js