No description
- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bin | ||
| README.md | ||
notify-push
Sends a push notification through a Gotify server, typically to know that a long command is done.
Installation
tpm install notify-push
Configuration
Required, in ~/.tpm/config/notify-push/env:
GOTIFY_URL='https://gotify.example.com'
GOTIFY_TOKEN='...'
The token is an application token created from the Gotify web UI.
Usage
notify-push # title and message are "done"
notify-push "build finished" # title, used as message too
notify-push "build" "took 12min" # title and message
make -j8 && notify-push "make ok" || notify-push "make failed"
Notes
- Notifications are sent with priority 10, so they pop up on the device instead of sitting silently in the list.
- The request times out after 10 seconds.