Last active
July 27, 2024 20:16
-
-
Save minidfx/a536349cc66b65c9c9c3b88dc8a98245 to your computer and use it in GitHub Desktop.
Forward your car positions from Teslamate to Owntracks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"transforms": [ | |
{ | |
"fromTopic": "teslamate/cars/<card-id>/location", | |
"toTopic": "owntracks/tesla/<owntracks-user-id>", | |
"emitInterval": 5, | |
"emitType": "once", | |
"template": { | |
"_type": "location", | |
"lat": { | |
"$eval": "latitude" | |
}, | |
"lon": { | |
"$eval": "longitude" | |
}, | |
"tst": { | |
"$eval": "number(str(lT)[:10])" | |
} | |
}, | |
"useMetrics": { | |
"lT": "lastMessageTime" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configuration file for the mqtt-transformer: https://github.com/tg44/mqtt-transformer