Appearance
SiteTrackingFleet reference stack
Bench test
Pending bench test — Validation status.
Fleet dashboard for site vehicles / mobile assets. Device type: site_tracker. Detail mode: tracking.
Telemetry contract
| Key | Unit | Notes |
|---|---|---|
latitude | ° | WGS84 |
longitude | ° | WGS84 |
speed_kmh | km/h | Ground speed |
battery_pct | % | Tracker battery |
Sample trackers follow a real road loop near Dewas. Position, speed, and battery change on every sample. Route history is on the tracker page (not Fleet home). Open one tracker from the Active list or the fleet map. The route is for that tracker. The time range is the Dashboard time control at the top of the preview (default Last 1h). Change it to Last 15m or Last 6h if you want a shorter or longer path. Play runs forward through the window (oldest → newest). A faint outline shows the full path; the coloured route draws under the vehicle as it moves (speed 1×–25×). Live position stays on Live position above. Latitude, longitude, and speed each have their own line chart with minimum, maximum, and average for that time range.
| Limit | Default | What Sample does |
|---|---|---|
speed_high_kmh | 80 | Speed moves a little around 42, 50, or 58 km/h, then 96 km/h for a short stretch, then back under 60. The overspeed alarm clears when speed is back under the limit. Set the limit to 60 or 80; both are crossed by the fast stretch and cleared by the slow stretch. |
battery_low_pct | 20 | One tracker drops to 14%, then returns above 20%. The low-battery alarm clears when the percent is back above the limit. |
Open a tracker (the device page, not Fleet home). Limits sets high speed and low battery on that tracker. You set the shared attribute. Sample writes the same number back as the client attribute about a second later, and the card shows Confirmed. Another tracker can keep a different number. The alarm uses the shared value on that tracker. Profile alarm rules still run.
A circle named Demo yard sits on the road (enter and exit alarms on, trackers only). Crossing it raises an alarm. That alarm stays until you clear it. Coming back inside the yard does not clear it by itself.
Industry map baseline (seeded)
Home and detail dashboards seed:
| Surface | Widget | Config highlights |
|---|---|---|
| Fleet home | map (fleet-map) | enableClustering, staleAfterMinutes: 15, showGeofences, lat/lon + speed/battery popups |
| Detail | map | Live position for selected tracker |
| Detail | routeMap | enablePlayback, detectStops, colorBySpeed, history path |
Map capabilities
- Clustering — MapLibre cluster layers when many trackers are on screen
- Stale / offline — amber markers when last fix older than
staleAfterMinutes; chip shows stale count - Geofences — overlay from
GET /api/geofences(migration0041); monitor raises enter/exit alarms (GEOFENCE_MONITOR_ENABLED) - Route playback — full path drawn; Play / scrub / speed move one vehicle marker along it
- Stops / trips — client-side segmentation from speed / dwell
- Speed colors — path segments colored by
speed_kmh - Reverse geocode (opt-in) — Nominatim, rate-limited; enable in widget config
Reference hardware (pending bench test)
| Role | Class / example | Protocol |
|---|---|---|
| Primary | LTE GPS tracker (Queclink / Teltonika class) | MQTT / HTTP over 4G |
| Fleet OBD | OBD-II + BLE gateway phone/edge | MQTT |
| Asset tag | Battery GPS + LoRaWAN | P6 webhook |
| Yard Modbus GPS | Rare industrial GPS Modbus module | RTU → DTU |
Status: Pending bench test — primary path is P4 LTE MQTT, not Modbus.
Connectivity options
| Profile | Edge | Link | Status |
|---|---|---|---|
| P4 | Native LTE tracker | 4G MQTT/HTTP | Pending (recommended) |
| P6 | LoRaWAN GPS tag | LoRa → ChirpStack → webhook | Pending |
| P5 | Yard gateway relays tags | WiFi / Ethernet | BYO |
| P2 | ESP32 + GPS UART (lab only) | WiFi | Pending |
| P1 | Modbus GPS + 4G DTU | 4G | BYO |
Wiring — P4 (LTE tracker)
mermaid
flowchart LR
AC[Autoconnecto]
TRK[LTE GPS tracker]
SIM[Cellular SIM]
SAT[GNSS]
TRK --- SIM
TRK --- SAT
TRK <-->|MQTT TLS| AC| Step | Action |
|---|---|
| 1 | Create device type site_tracker; copy MQTT token |
| 2 | Point tracker broker to Autoconnecto; map JSON → keys |
| 3 | Confirm lat/lon update interval (e.g. 10–60 s moving) |
| 4 | Optional: create yard geofences on the Geofences screen, or with POST /api/geofences |
Wiring — P6 (LoRaWAN)
Configure ChirpStack HTTP integration (device connectivity); decode payload to latitude / longitude / speed_kmh / battery_pct.
How to demo
- Open Solutions → SiteTrackingFleet. Turn Sample On (5s is fine).
- Fleet home: Active shows 3. The fleet map shows three markers on the Dewas road and the Demo yard circle. Markers move while Sample is On. Open a marker or open Active → a tracker row. The map counts only the Demo yard for this fleet (not other yards in the tenant).
- Tracker page: Live position moves on the live map. Route history covers that tracker for the Dashboard time window. Press Play — the vehicle moves forward and the coloured route draws behind it (faint outline shows the rest). Use speed 5× or 10× for a short review.
- Limits (lower on the tracker page): change high speed to 60 and save. About a second later the card shows Confirmed. When Sample runs the fast stretch at 96 km/h, overspeed fires. Set it back to 80 if you want.
- Battery: Tracker 2 drops to about 14% for a short stretch, then recovers. Low battery clears when the percent is back above the limit.
- Demo yard: enter and exit alarms stay until a person clears them. Do not clear them in a customer demo unless you mean to.
Use copies a clean dashboard — bind your own site_tracker devices; Sample devices are not copied.
Checklist
- [ ] Device type
site_tracker - [ ] Coordinates in decimal degrees (not scaled integers)
- [ ] Map / routeMap widgets bind
latitude/longitude/speed_kmh - [ ] Migration
0041_geofences.sqlapplied for geofence overlay + alarms - [ ] Reseed SiteTrackingFleet after pulling tracking seed changes
Related
- Connectivity profiles · Route map widget
- Backend:
GEOFENCE_MONITOR_ENABLED(see backendENVIRONMENT.mdgeofence monitor section)
