Push messages to your phone

11-15-2021
The simplest way to program push messages.

The easiest way to send push messages to your own phone is via pushover.net. It costs 5 dollars once (once in a lifetime). You have a 30-day free trial.

For example, use it together with htmlq or another scraper to warn you as soon as something changes on a site (such as rain radar, the NS, news sites, etc.). I myself use it to push my IP address from my home to me as soon as it changes.
#!/bin/bash
... ...

if [ $IPOld == $IPNew ]
then
:
else
curl -s \
--form-string "token=a21y76edydweepc856jo9w1kg8biba" \
--form-string "user=u28pinxfy4i822pxjns6pvcopkkep8" \
--form-string "message=IP address has been changed! $IPNew" \
https://api.pushover.net/1/messages.json
fi

★ㄥinuメ★ TᎥƤ乙

View all 42 tips
or follow the
RSS-feed.
 
×
×