Skip to content

Instantly share code, notes, and snippets.

@bburgy
Last active December 16, 2024 06:48
Show Gist options
  • Select an option

  • Save bburgy/a536349cc66b65c9c9c3b88dc8a98245 to your computer and use it in GitHub Desktop.

Select an option

Save bburgy/a536349cc66b65c9c9c3b88dc8a98245 to your computer and use it in GitHub Desktop.
Forward your car positions from Teslamate to Owntracks
{
"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"
}
}
]
}
@bburgy
Copy link
Author

bburgy commented Jul 27, 2024

Configuration file for the mqtt-transformerhttps://github.com/tg44/mqtt-transformer

@bburgy
Copy link
Author

bburgy commented Dec 16, 2024

⚠️ DON'T USE IT because I created this gists before we knew ELON was CRAZY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment