Daily-mantra: Send yourself daily guiding reminders generated from your own notes

Hey all :waving_hand:. I’ve been wanting to build this for a little while now, and I finally did! Below is from the readme on GitHub (chrisdothtml/daily-mantra); you can see the full details there.

Would love to get any feedback or to hear people’s thoughts!


daily-mantra

Send yourself daily guiding reminders generated from your own notes

Why?

I tend to take notes during my therapy sessions, usually in a loose, unstructured format, taking note of things I want to remember moving forward or change about my behavior.

The problem is that I don’t often go back and look through all my past notes to remind myself of the insights I gained.

So one day I had a random idea to:

  1. Use an LLM to generate self-contained “mantras” from my raw, unstructured notes

  2. Send my phone a daily notification with one of the randomly-chosen mantras

That’s it, that’s the whole thing.

How?

Instead of building my own mobile app or PWA to serve these notifications, I wanted to utilize Home Assistant, which I already use, and already has the ability to automate sending custom notifications.

This makes the architecture pretty simple:

Mantra Service

  • Runs inside my network (always accessible by HASS, and stays private)

  • Fetches and aggregates my notes, passes them through an LLM to generate and add any new mantras to the list (if the notes content has changed)

Home Assistant Automation

  • Every day at 9am, hit the /random-mantra endpoint of the service to get the mantra of the day

  • Send it as a push notification to my phone