commit ebd97f90873f71b4849f65cc427e6d3cbaaf26eb Author: Chris Roberts Date: Mon Jun 1 07:48:49 2026 -0500 added readme and notify.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..e8c4ca7 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Scripts +This is just a handy place to put shell scripts that I write. + + + +## notify.sh +A script that wraps the pushover API for sending notifications. +[Here](https://learningunix.net/posts/dead-simple-notifications-with-pushover/) +is an article on example usage. It relies on the user's pushover user and api key +to be saved as environment variables. diff --git a/notify.sh b/notify.sh new file mode 100755 index 0000000..172fa17 --- /dev/null +++ b/notify.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +/usr/bin/curl -s \ + --form-string "token=$PUSHOVER_TOKEN" \ + --form-string "user=$PUSHOVER_USER" \ + --form-string "title=$1" \ + --form-string "message=$2" \ + https://api.pushover.net/1/messages.json