A script which uses curl to send a message through a Ntfy server using settings from the config file ntfy-send.conf.
Usage: ntfy-send.sh "Your message here" "Ntfy topic here"
Usage: ntfy-send-file.sh "Your message here" "Ntfy topic here" "Full path to file here"
-
Clone the Repo:
cd ~ mkdir -p Installs cd Installs git clone https://github.com/tsqrdster/ntfy-send.git cd ntfy-send
-
Configure: Edit your .conf file (ensure it is in the same directory) to set your Ntfy server URL and port. You can set a topic or it can be passed in.
cp ntfy-send.conf.example ntfy-send.conf nano ntfy-send.conf # (make changes in regard to your Ntfy server URL:port and topic then save with <ctrl>+o <enter> then exit with <ctrl>+x ) # Make executable chmod +x ntfy-send.sh chmod +x ntfy-send-file.sh # Create link to file in /usr/local/bin/ # (replace "/home/pi/" with correct user home location) sudo ln -s /home/pi/Installs/ntfy-send/ntfy-send.sh /usr/local/bin/ntfy-send.sh sudo ln -s /home/pi/Installs/ntfy-send/ntfy-send-file.sh /usr/local/bin/ntfy-send-file.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!