noti icon indicating copy to clipboard operation
noti copied to clipboard

Request: Run custom script to push notifications

Open LordMike opened this issue 1 year ago • 0 comments

I was making a script to do something very similar to noti, but then I found this and thought well why not use this :)

I was hoping though to be able to push a notification over an MQTT topic - but instead of asking for an MQTT output, wouldn't it be cool to have the option to run a script or program when a notification needs to go out?

I could make a script in bash f.ex., that accepts some arguments like title and message. My script could then push to mqtt topics, or call an http api I have or any other thing. This would also allow any other provider to be added out of band by simply making or exposing commands and scripts to noti.

You could even make it so that the command to be run has placeholders, like I could define: /usr/scripts/notify.sh "$TITLE" "$MESSAGE" which would allow you to add other variables in the future without breaking existing scripts.

Other than that, this looks like an awesome project :)

LordMike avatar Sep 10 '24 19:09 LordMike