Skip to content

tsqrdster/ntfy-send

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntfy-send

A script which uses curl to send a message through a Ntfy server using settings from the config file ntfy-send.conf.

Usage

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"

Installation

  1. Clone the Repo:

    cd ~
    mkdir -p Installs
    cd Installs
    git clone https://github.com/tsqrdster/ntfy-send.git
    cd ntfy-send
  2. 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

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

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!

About

Bash script to send a message or file through a ntfy server using curl.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages