All you need to do is add the relevant ntfy.sh command to your Bash or Python scripts. You could integrate it with a sensor ...