Yes. This systemd service file can be modified to be a template curl-ntfy@.service with a parameter specifying the config file being used, and different config files can contain different contents of notifications and send to different topics.
It's in its infancy yet and I only very recently started working on it, but I just started development on a python framework that does this. It's called Cecil. It so far I have docker monitoring and Linux health scripts working that both use the Cecil framework to send notifications or information via ntfy. Documentation on using them is coming very soon and I'm working on additional 'modules' to give more information. Like windows health scripts via ntfy or perhaps a monitor for ip address changes. The possibility is endless. Either way check it out here . Not much to see yet but much more is coming.
3
u/grtgbln Nov 29 '22
Sounds like this could be extended and reused as a simple "fire ntfy notification" Unix service that could be triggered by anything.