- Monitors state changes (driving → parked/charging) - Uses geofences when available - Falls back to reverse geocoding via Nominatim - Triggers Clawdbot agent to check location-based reminders - Includes systemd service template - 30s debounce to prevent duplicate notifications
27 lines
631 B
Desktop File
27 lines
631 B
Desktop File
[Unit]
|
|
Description=Tesla Arrival Notifier for Clawdbot
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/opt/mqtt-clawdbot-bridge
|
|
ExecStart=/usr/bin/node arrival-notifier.js
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
Environment=MQTT_URL=mqtts://mqtt.teslamate.olex.me:8883
|
|
Environment=MQTT_USERNAME=olex
|
|
Environment=MQTT_PASSWORD=wnGrhm6t
|
|
Environment=CLAWDBOT_URL=http://127.0.0.1:18789
|
|
Environment=CLAWDBOT_TOKEN=c92e6b350068e07ff71ab77ae4bd0610da898a2f38d394dd
|
|
Environment=CAR_ID=14
|
|
Environment=LOG_LEVEL=info
|
|
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=read-only
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|