Busuff Tracker provides real-time bus localization by tracking GPS-equipped vehicles and displaying their live movements on a web interface.
demo_screen_recording-2.mp4
.
├── backend/ # API, MQTT client, database logic
├── frontend/ # Web app (React + Vite)
├── gps/ # Embedded firmware (ESP + GPS)
├── scripts/ # Build and helper scripts
├── docker-compose.yml
├── Caddyfile
└── README.md-
Write corresponding credentials in
.env.example -
Rename
.env.exampleto.env -
Having Docker installed, run:
docker compose up --build -d{
"device": {
"id": string,
},
"gps": {
"timestamp_utc": string (ISO 8601 UTC time),
"location" {
"lat": float (*OPTIONAL*, 6 decimal places),
"lng": float (*OPTIONAL*, 6 decimal places)
},
"speed_kmh": float (*OPTIONAL*, 1 decimal),
"course_deg": float (*OPTIONAL*, 1 decimal, 0–360°, degrees from North),
"num_satellites": int (*OPTIONAL*),
"hdop": float (*OPTIONAL*, 2 decimal)
}
}{
"device": {
"id": "14757629"
},
"gps": {
"timestamp_utc": "2025-11-02T22:21:04Z",
"location": {
"lat": 60.424116,
"lng": -22.814005
},
"speed_kmh": 0,
"course_deg": 163.1,
"num_satellites": 8,
"hdop": 1.12
}
}- Note: Fields marked as optional may be omitted if the GPS signal quality is insufficient.
{
"device": {
"id": "14757629"
},
"gps": {
"timestamp_utc": "2025-11-02T22:21:04Z",
"course_deg": 163.1,
"num_satellites": 8,
"hdop": 1.12
}
}

