Not my project - found this courtesy of Hack-a-Day.

This free and open source software tool is designed to make it easy for individuals to keep track of both the routine maintenance needs of their vehicles, as well as keep track of any previous or upcoming repairs and upgrades.

Demo here: https://demo.lubelogger.com/Login/Index

User/pass: test/1234

  • walden@sub.wetshaving.social
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    4 days ago

    Since there’s no native ntfy notification built in to LubeLogger I figured out a way to do it using Node-RED. If you don’t have Node-RED set up, It’s pretty great for automating things. I mostly use it for Home Assistant. There’s certainly a way to accomplish this without Node-RED, but I would have no clue where to start.

    The basic idea of the flow attached below is:

    1. Schedule when you want notifications (I like being reminded on monday, wednesday, and friday at 8am)
    2. Have Node-RED pull the maintenance reminders, which are available in JSON format
    3. Do some filtering and splitting of the data, narrowing the reminders down to Past Due, Very Urgent, and Urgent (ignoring everything that doesn’t need attention).
    4. Feed the filtered data into templates – different templates for each level of urgency. This adds some complexity, but I like it.
    5. Bring everything back together, format it into something that ntfy.sh likes, and then fire the notification.

    You’ll of course have to go through and change settings in each node to match your LubeLogger URL and vehicle ID’s, and preferred ntfy server and topic. You can also add your username/password for LubeLogger and ntfy (or a bearer token, if that’s what you have set up with ntfy).

    Node-RED flow

    If you’re not familiar with Node-RED, you’d import the above JSON and edit it from there. Stuff “flows” through nodes, stopping and doing what you tell it along the way.