Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ntfy option #377

Open
engeir opened this issue Nov 15, 2022 · 0 comments
Open

ntfy option #377

engeir opened this issue Nov 15, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@engeir
Copy link
Owner

engeir commented Nov 15, 2022

If someone do not want to use telegram or think it is too difficult to set up, just getting notifications (i.e., without the possibility of requesting the bot for info) is super easy with ntfy (github repo).

From the command line one can do

curl -d "Sooo easy\! 😀" ntfy.sh/mytopic

where mytopic can be whatever you want. Can be run directly from python, for example with the request or the subprocess library:

import requests
requests.post("https://ntfy.sh/mytopic", data="Sooo easy! 😀".encode(encoding='utf-8'))
## OR ##
import subprocess
subprocess.call(["curl", "-d", "Sooo easy! 😀", "ntfy.sh/mytopic"])  # Do not need to escape the "!" here.

Thus, this do not give any extra dependencies.

@engeir engeir added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant