We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa49b8 commit 5dbbcceCopy full SHA for 5dbbcce
root/defaults/example/hook/hook_pushover.sh
@@ -0,0 +1,29 @@
1
+#!/bin/bash
2
+
3
+#
4
+# Pushover notification script
5
+# @author Martin Dagarin
6
+# @version 1
7
+# @since 19/03/2019
8
9
+# @see https://pushover.net/api
10
11
12
+URL="https://api.pushover.net/1/messages.json"
13
14
+# Here put your app token
15
+APP_TOKEN=""
16
17
+# Here put your user or group key
18
+USER_KEY=""
19
20
+TITLE="TestTile"
21
+MESSAGE="This is test message"
22
23
+# Send to server
24
+curl -s \
25
+ --form-string "token=${APP_TOKEN}" \
26
+ --form-string "user=${USER_KEY}" \
27
+ --form-string "title=${TITLE}" \
28
+ --form-string "message=${MESSAGE}" \
29
+ ${URL}
0 commit comments