mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #599] [CLOSED] Support MQTT for sending notification #1343
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1343
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/599
Author: @zoic21
Created: 2/3/2023
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
db518b5add mqtt listenner📊 Changes
4 files changed (+133 additions, -0 deletions)
View changed files
📝
cmd/serve.go(+15 -0)➕
server/mqtt.go(+93 -0)📝
server/server.go(+13 -0)📝
server/server.yml(+12 -0)📄 Description
Hello,
It's my first time I coding in go, sorry if there are horrors...
I test and it's working on my labs, I can send a mqtt message to ntfy/message in json format like
mosquitto_pub -h 127.0.0.1 -m '{"message":"coucou","topic":"toto","priority":"5","tags":"heavy_check_mark,tomato"}' -t ntfy/messageand I received message on ntfy ui.Only missing think can be documentation (I will do it if you think you can accept this pr) and maybe more error handler (for now if we can't connect to mqtt or if there is message decode error I just log in info level).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.