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

Add documentation and test case about notifications via ntfy #610

Merged
merged 1 commit into from
Nov 20, 2022

Conversation

amotl
Copy link
Member

@amotl amotl commented Nov 20, 2022

A basic shot at #607, implementing notifications to ntfy via Apprise without putting in much efforts. Kudos to @binwiederhier, @particledecay, and @caronc.

@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2022

Codecov Report

Merging #610 (7bdf314) into main (8166e02) will not change coverage.
The diff coverage is n/a.

❗ Current head 7bdf314 differs from pull request most recent head 5e37b63. Consider uploading reports for the commit 5e37b63 to get more accurate results

@@           Coverage Diff           @@
##             main     #610   +/-   ##
=======================================
  Coverage   37.50%   37.50%           
=======================================
  Files          80       80           
  Lines        3594     3594           
=======================================
  Hits         1348     1348           
  Misses       2246     2246           
Flag Coverage Δ
unittests 37.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@amotl amotl force-pushed the amo/add-apprise-ntfy branch 3 times, most recently from 5e37b63 to fd5575b Compare November 20, 2022 16:29
Comment on lines +192 to +195
# Submit notification to "ntfy", using Apprise service plugin.
mqttwarn --plugin=apprise \
--config='{"baseuri": "ntfy://user:[email protected]/topic1/topic2"}' \
--options='{"addrs": [], "title": "Example notification", "message": "Hello world"}'
Copy link
Member Author

@amotl amotl Nov 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submitting a notification message to ntfy should work like this from the command line. Can someone who is following here, verify this command, and report back afterwards?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants