ftp -o - https://jcs.org/move_in | sh -
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

bin/pushover: s/APP_TOKEN/API_TOKEN/

only send to my iphone

+5 -4
+5 -4
bin/pushover
··· 1 1 #!/bin/sh 2 2 # cmd && pushover "done running cmd" 3 - # requires $PUSHOVER_USER_KEY and $PUSHOVER_APP_TOKEN set in ~/.zshrc.local 3 + # requires $PUSHOVER_USER_KEY and $PUSHOVER_API_TOKEN set in ~/.zshrc.local 4 4 5 5 if [ X"${PUSHOVER_USER_KEY}" = X"" ]; then 6 6 echo "\$PUSHOVER_USER_KEY not set" 7 7 exit 1 8 8 fi 9 9 10 - if [ X"${PUSHOVER_APP_TOKEN}" = X"" ]; then 11 - echo "\$PUSHOVER_APP_TOKEN not set" 10 + if [ X"${PUSHOVER_API_TOKEN}" = X"" ]; then 11 + echo "\$PUSHOVER_API_TOKEN not set" 12 12 exit 1 13 13 fi 14 14 15 15 curl -s \ 16 16 --form-string "user=${PUSHOVER_USER_KEY}" \ 17 - --form-string "token=${PUSHOVER_APP_TOKEN}" \ 17 + --form-string "token=${PUSHOVER_API_TOKEN}" \ 18 18 --form-string "message=${1}" \ 19 + --form-string "device=iphone" \ 19 20 https://api.pushover.net/1/messages.json | grep -v 'status":1' 20 21 21 22 # reverse exit code so that no output exits 0, any output exits 1