Client application for ntfy.sh
Project description
ntfy-send
ntfy-send is a client application for notification service ntfy.sh.
Configuration
ntfy-send can be configured via a configuration file. It is recommended method of storing your credential informations, which simplifies obtaining and sending them to ntfy server.
All configuration options can be enclosed in backticks (`). When this is the case, the option is treated as a command whose output substitutes the configurration option.
Configuration files are stored in $XDG_CONFIG_HOME/ntfy-send/config.toml. If you don't have $XDG_CONFIG_HOME environment variale set, then it is stored in ~/.config/ntfy-send/config.toml. Below are documented all options:
# config.toml
# URL to the server
server = "https://ntfy.sh"
# Username and password can be automatically obtained each time they're
# required. This is done by passing commands which should echo credentials.
# For complex commands it's recommended to pot them in a separate script, due
# to problems with several levels of quote escaping
# Username and password can be passed in plain text. This isn't recommended.
username = "user"
password = "pass"
# Alternatively, ntfy-send can automatically run a command for username and
# password when they're enclosed in backticks (`):
username = """`gpg2 --decrypt pass.gpg | awk -F ":" '/user:/ { printf $2 }'`"""
password = """`gpg2 --decrypt pass.gpg | awk -F ":" '/password:/ { printf $2 }'`"""
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ntfy_send-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca1c0e7c7862b25340939facbfa7c83ff4b0889920ca41a04dbb82b49efd8895 |
|
MD5 | 9f0f54009883d6720f38f00b52d95540 |
|
BLAKE2b-256 | 46cb2957eecbccd1aa35bd6a2b61e13f41c9e555a0e1d75cff070b3ff78434d3 |