save point
This commit is contained in:
parent
795f72db03
commit
d60d417579
9 changed files with 48 additions and 1 deletions
12
modules/ntfy.bash
Normal file → Executable file
12
modules/ntfy.bash
Normal file → Executable file
|
@ -10,5 +10,15 @@ then
|
|||
exit
|
||||
fi
|
||||
|
||||
ntfyserver="http://192.168.168:83"
|
||||
|
||||
|
||||
# Function to send a message to a NTFY server
|
||||
send_ntfy_message() {
|
||||
local message="$1"
|
||||
local topic="$2"
|
||||
ntfyserver="192.168.1.112:83"
|
||||
local url="http://${ntfyserver}/${topic:-default}"
|
||||
|
||||
curl -X POST -d "$message" "$url"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue