A script which uses curl to send a message through a Gotify server using settings from the config file gotify.conf.
Usage: gotify-send.sh "Message title" "Message text" "Message priority"
-
Clone the Repo:
cd ~ mkdir -p Installs cd Installs git clone https://github.com/tsqrdster/gotify-send.git cd gotify-send
-
Configure: Edit your .conf file (ensure it is in the same directory) to set your Gotify server URL and port, the app token and message sent text.
cp gotify-send.conf.example gotify-send.conf nano gotify-send.conf # (make changes in regard to your Gotify server URL:port and app token then save with <ctrl>+o <enter> then exit with <ctrl>+x ) # Make executable chmod +x gotify-send.sh # Create link to file in /usr/local/bin/ # (replace "/home/pi/" with correct user home location) sudo ln -s /home/pi/Installs/gotify-send/gotify-send.sh /usr/local/bin/gotify-send.sh
This project is licensed under the MIT License - see the LICENSE file for details.
If you find a bug please create an issue for it. Feel free to submit Pull Requests or open Issues if you find a bug or have ideas for improvement!