• 0 Posts
  • 21 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle






  • That question is a little bit out of the scope of a forum like this. A question like that would better be answered by the nginx documentation. Sometimes the project documentation might have a blurb about nginx configuration specific for that project. For example, Immich.

    For the most part, you only have to reference the nginx documentation. I’ve never looked at the Immich config above until now, and my Immich server works great.

    I’ve had a reverse proxy for years, but the config files are very foreign to me because I use Nginx-Proxy-Manager. NPM makes nginx usable for dummies like me, at the expense of gaining a deeper understanding of how it works. I’m ok with that, but you might feel differently.











  • 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.