mirror of
https://github.com/tborychowski/self-hosted-cookbook.git
synced 2026-01-14 05:11:43 +00:00
more apps
This commit is contained in:
35
apps/notifications/pushover.md
Normal file
35
apps/notifications/pushover.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# Pushover
|
||||
|
||||
- As of today, the best notifier out there
|
||||
- Has mobile app and web desktop client
|
||||
- Provides email-to-notification service
|
||||
- Free tier sufficient for a homelab
|
||||
|
||||
<br>
|
||||
|
||||
- [Homepage](https://pushover.net)
|
||||
- [Web Client](https://client.pushover.net)
|
||||
- [Docs](https://pushover.net/api#messages)
|
||||
|
||||
|
||||
## Example script
|
||||
```sh
|
||||
#!/bin/bash
|
||||
|
||||
# info #666d7b
|
||||
# success #408062
|
||||
# warning #af8a1a
|
||||
# danger #8b4848
|
||||
|
||||
MSG=$(printf "<font color=\"#408062\">%s</font>" "$@")
|
||||
|
||||
curl -s -X POST \
|
||||
--data-urlencode "token=<app key>" \
|
||||
--data-urlencode "user=<user key>" \
|
||||
--data-urlencode "sound=pushover" \
|
||||
--data-urlencode "priority=0" \
|
||||
--data-urlencode "html=1" \
|
||||
--data-urlencode "title=Home Server" \
|
||||
--data-urlencode "message=$MSG" \
|
||||
https://api.pushover.net/1/messages.json
|
||||
```
|
||||
Reference in New Issue
Block a user