[GH-ISSUE #51] Target certain devices #47

Closed
opened 2026-05-07 00:19:06 +02:00 by BreizhHardware · 6 comments

Originally created by @binwiederhier on GitHub (Dec 11, 2021).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/51

See https://discord.com/channels/874398661709295626/874398661709295629/919114373992165437

I picture this very simple:

curl ntfy.sh/mytopic/json?id=device1

And then:

curl -d "Hi" "Targets: device1,device2" ntfy.sh/mytopic
Originally created by @binwiederhier on GitHub (Dec 11, 2021). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/51 See https://discord.com/channels/874398661709295626/874398661709295629/919114373992165437 I picture this very simple: ``` curl ntfy.sh/mytopic/json?id=device1 ``` And then: ``` curl -d "Hi" "Targets: device1,device2" ntfy.sh/mytopic ```
BreizhHardware 2026-05-07 00:19:06 +02:00
Author
Owner

@12nick12 commented on GitHub (Jan 17, 2022):

I second this. Or I was thinking of being able to create a group of multiple topics.

<!-- gh-comment-id:1014090498 --> @12nick12 commented on GitHub (Jan 17, 2022): I second this. Or I was thinking of being able to create a group of multiple topics.
Author
Owner

@binwiederhier commented on GitHub (Jan 17, 2022):

So, I was actually thinking of deleting this. Because if you need to target another device, just make another topic. They are cheap, right?

<!-- gh-comment-id:1014113514 --> @binwiederhier commented on GitHub (Jan 17, 2022): So, I was actually thinking of deleting this. Because if you need to target another device, just make another topic. They are cheap, right?
Author
Owner

@12nick12 commented on GitHub (Jan 17, 2022):

I guess you have good point, For me I have 15 servers and would love each one to have their own topic and I feel it's cumbersome to have to subscribe to 15 topics in the app. If there's a way to import/export topics I guess that wouldn't be to bad.

Does having more topics in the Android app user any more/less battery?

<!-- gh-comment-id:1014114568 --> @12nick12 commented on GitHub (Jan 17, 2022): I guess you have good point, For me I have 15 servers and would love each one to have their own topic and I feel it's cumbersome to have to subscribe to 15 topics in the app. If there's a way to import/export topics I guess that wouldn't be to bad. Does having more topics in the Android app user any more/less battery?
Author
Owner

@binwiederhier commented on GitHub (Jan 17, 2022):

I think it's super easy to add device targeting, so I may as well add it. All topics share one connection, so there is no battery difference.

<!-- gh-comment-id:1014115755 --> @binwiederhier commented on GitHub (Jan 17, 2022): I think it's super easy to add device targeting, so I may as well add it. All topics share one connection, so there is no battery difference.
Author
Owner

@binwiederhier commented on GitHub (Jan 17, 2022):

If there's a way to import/export topics I guess that wouldn't be to bad.

There is not (yet). :-D

<!-- gh-comment-id:1014115891 --> @binwiederhier commented on GitHub (Jan 17, 2022): > If there's a way to import/export topics I guess that wouldn't be to bad. There is not (yet). :-D
Author
Owner

@binwiederhier commented on GitHub (Feb 13, 2022):

I thought more about this, and I think the "target devices" feature is something that pushbullet and others may have drilled into people, but in ntfy a topic is the target. Adding target device filters would make things complicated and weird, though not hard to do. I think I'll close this for now; but I'm happy to re-open if people desperately want this.

As for an import/export feature, there's a ticket here: #115

<!-- gh-comment-id:1038350283 --> @binwiederhier commented on GitHub (Feb 13, 2022): I thought more about this, and I think the "target devices" feature is something that pushbullet and others may have drilled into people, but in ntfy a topic is the target. Adding target device filters would make things complicated and weird, though not hard to do. I think I'll close this for now; but I'm happy to re-open if people desperately want this. As for an import/export feature, there's a ticket here: #115
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#47
No description provided.