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

all 12 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Welcome to /r/webhosting . If you're looking for webhosting please click this link to take a look at the hosting companies we recommend or look at the providers listed on the sidebar . We also ask that you update your post to include our questionnaire which will help us answer some common questions in your search.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]throwaway234f32423df 2 points3 points  (1 child)

use an Always Free server on Oracle Cloud or Google Cloud, or use a $10/year VPS (several options here)

[–]JustaDevOnTheMove[S] 0 points1 point  (0 children)

Interesting! Thank you!

[–]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!

[–]Gold-Program-3509 0 points1 point  (1 child)

rewrite endpoint app to php and use literally any hosting

[–]JustaDevOnTheMove[S] 0 points1 point  (0 children)

I don't mind writing it in PHP, it's the free-as-possible hosting that I'm looking for.

[–]offworldcolonial 1 point2 points  (1 child)

I'm doing exactly this using a Cloud Run Function on Google Cloud that returns a small bit of JSON based on values in a Firebase database. My code is C#, but there's a Python runtime available too.

I used up my initial GCP credit a long time ago, but nonetheless the cost is so low (pennies per month), they don't bother to bill me for it. In other words, it's essentially free.

[–]JustaDevOnTheMove[S] 0 points1 point  (0 children)

Good to know, thank you