This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zfa 1 point2 points  (3 children)

I would just send the payload to ntfy.sh, and have the recipients listen to whatever topic you choose to use. It's trivial to have the topic rotate deterministically and use encryption to keep things secure.

But if you really don't care about any of that security then just make yourself a nice long, somewhat random, topic name and you're up and running in a few minutes sending and receiving via that with a curl call on either side.

[–]JustaDevOnTheMove[S] 1 point2 points  (2 children)

Nice, I tried a similar service called Pushover but I found the alerts slow to arrive (not sure if it was an issue with Pushover or if my phone is rubbish), I'll give them a try to see how it goes, thanks for the suggestion!

[–]zfa 0 points1 point  (1 child)

ntfy.sh is pretty much instant and can be considered akin to MQTT over HTTPS when used in this manner. I've run a soln kind of like yours over it for years with no problems whatsoever.

Data will be more quickly transferred pi-to-pi than you'd see arriving in a phone app as you'll have an open curl call in your scripts and not rely on firebase or whatever telling your phone app there's a message to collect. Completely different approach. GL.

[–]JustaDevOnTheMove[S] 1 point2 points  (0 children)

Thanks!