Traccar GPS tracking platform integration.
Connects to a self-hosted Traccar server to poll device positions. Supports phones, tablets, and laptops. Stores position history with speed, altitude, battery, and address in data_traccar_position.
docker run -d --name traccar \
--restart always \
-p 8082:8082 \
-p 5000-5150:5000-5150 \
-v /opt/traccar/logs:/opt/traccar/logs \
-v /opt/traccar/traccar.xml:/opt/traccar/conf/traccar.xml \
traccar/traccar:latest
Default login: admin / admin!
| Platform | App |
|---|---|
| Android | Traccar Client |
| iOS | Traccar Client |
| Laptop | Web interface at http://host:8082 or OsmAnd protocol |
Set server URL in each client to your Traccar instance.
In config.yaml:
traccar:
host: traccar.local # or IP
port: 8082
username: admin
password: admin!
ssl: false
pytraccar — async Traccar API clientaiohttp — async HTTPInstall: pip install pytraccar
| Column | Type | Description |
|---|---|---|
| Guid | VARCHAR(64) | Primary key |
| DeviceId | INT | Traccar device ID |
| DeviceName | VARCHAR(255) | Device name |
| DeviceModel | VARCHAR(128) | Device model |
| DeviceCategory | VARCHAR(64) | car, person, phone, etc. |
| DeviceStatus | VARCHAR(32) | online, offline, unknown |
| Lat | DECIMAL(10,7) | Latitude |
| Lng | DECIMAL(10,7) | Longitude |
| Altitude | DECIMAL(8,1) | Altitude (metres) |
| Speed | DECIMAL(8,2) | Speed (knots) |
| Course | DECIMAL(6,2) | Heading (degrees) |
| Accuracy | DECIMAL(8,1) | GPS accuracy (metres) |
| BatteryLevel | DECIMAL(5,2) | Battery % (if reported) |
| Address | TEXT | Reverse-geocoded address |
| PositionTime | DATETIME | GPS fix time |
| Method | Description |
|---|---|
sync() |
Fetch all positions, write to DB |
list_devices() |
Return devices with latest position |
get_server_info() |
Return Traccar server details |
python ObjServiceTraccar.py devices # list all devices
python ObjServiceTraccar.py sync # fetch + store
python ObjServiceTraccar.py server # server info
TaskName: TRACCAR_SYNC
Crontab: */5 * * * *
TriggerType: workflow
Workflow: TRACCAR_SYNC
ObjServiceTile.py — Tile Bluetooth trackersObjServiceLife360.py — Life360 family trackingObjServiceOwnTracks.py — Self-hosted MQTT tracking