Last active
December 16, 2024 06:48
-
-
Save bburgy/a536349cc66b65c9c9c3b88dc8a98245 to your computer and use it in GitHub Desktop.
Forward your car positions from Teslamate to Owntracks
This file contains hidden or 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" | |
| } | |
| } | |
| ] | |
| } |
Author
Author
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