Replies: 2 comments 2 replies
-
|
hey, just found this post of yours. what GPS tracker do you use? Been looking at the Freematics devices, but with the shipping they are becoming quite expensive |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Looking at this script - as I was just writing the same thing (since my existing solution uses a mix of home assistant and mqtt - and it clunky). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This Python script fetches the latest odometer reading from a Traccar GPS tracker and updates LubeLogger automatically. It prevents lower odometer values from being recorded and logs synchronization activities.
My Setup & Experience:
I'm not a programmer, but this script works great for me! I use a cheap GPS tracker from AliExpress that logs all trips to Traccar. I run this script as a cron job once a week to update the odometer in LubeLogger.
I manually log fuel and kilometers, so this script helps correct small deviations from GPS tracking. Now, my reminders for oil changes and other service tasks based on mileage work perfectly! 🚗🔧
Features:
✅ Fetches odometer data from Traccar API
✅ Compares with the last recorded odometer in LubeLogger
✅ Prevents updating if the new value is lower than the previous one
✅ Uses environment variables (.env) for easy configuration
✅ Supports optional logging
Setup:
Edit .env with your API credentials and URLs.
Run the script manually or set up a cron job to sync odometer data automatically.
Hope this helps others as well! 😊
traccar lubelogger script.zip
Beta Was this translation helpful? Give feedback.
All reactions