Live data from Hacker News

Ntfy.sh – Send push notifications to your phone via PUT/POST

ntfy.sh

301–306 of 306 posts

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#301

I really like this product. Reading the documentation, it's not clear how to set the auth credentials per topic. Any way to clarify this?

There's a detailed description here: https://ntfy.sh/docs/config/#access-control

Though this doesn't work for the public server obviously. The public server doesn't support setting ACLs by users.

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#302
post #47

I sometimes use my little service https://pushurl.43z.one/ If I need to notify my desktop browser or phone with a notification triggered by some code. I just go to the website with my browser click generate. Then in my script I do `curl $pushurl?title=jobdone`. When it gets triggered a notification popups on my phone that says "jobdone". It uses the native browser web push API so I don't need to install anything extr…

Awesome! Using it now. So seamless. Are there any other parameters besides `title`?

_edit:_ wrote a little Bash function for this; seems to work well:

  function notify() {
    argTitle='TerminalNotification'
    argText="$1"
    argUrl='https://www.example.com'
  
    baseUrl='https://pushurl.43z.one/XXXXXXXXXXXXX'
  
    curl --get \
         --data-urlencode "title=$argTitle" \
         --data-urlencode "text=$argText"   \
         --data-urlencode "url=$argUrl"     \
         $baseUrl
  }

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#303
post #47

I sometimes use my little service https://pushurl.43z.one/ If I need to notify my desktop browser or phone with a notification triggered by some code. I just go to the website with my browser click generate. Then in my script I do `curl $pushurl?title=jobdone`. When it gets triggered a notification popups on my phone that says "jobdone". It uses the native browser web push API so I don't need to install anything extr…

Awesome! Using it now. So seamless. Are there any other parameters besides `title`? _edit:_ wrote a little Bash function for this; seems to work well: function notify() { argTitle='TerminalNotification' argText="$1" argUrl='https://www.example.com' baseUrl='https://pushurl.43z.one/XXXXXXXXXXXXX' curl --get \ --data-urlencode "title=$argTitle" \ --data-urlencode "text=$argText" \ --data-urlencode "url=$argUrl" \ $base…

just `title`, `text` and `url` (which will open the specified `url` on notification click)

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#304

Earlier quoted context omitted.

This is super cool. If you don’t mind saying, how many connections do you tend to keep open at steady state?

Here are some stats from last night showing the volume of messages: IPs: 9756 Clients: 9980 - Google Play: 2796 - F-Droid: 5985 - iOS: 794 - curl: 62 - other: 343 Messages: - Successful: 310076 - Failed (rate limited): 104741 - Failed (other): 6511 Top publishers (* = limit exemption): 22908 matrix.org* 22352 matrix.gateway.unifiedpush.org* 18286 up.schildi.chat* 16134 192.124.x.x 14056 matrix.envs.net* 13376 108.35.…

Any protection against DoS in place, like WAF? Public services on EC2 are very prone to this kind of exposure. Maybe some fail2ban?

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#305
post #3

Very nice. I use a telegram bot for doing this as telegram API also makes it a simple GET request to send such notifications to yourself (once you have created a bot). Also it's surprisingly hard to kill telegram for some reason so it's kinda robust. My stupid mi phone is quite aggresive in killing most background apps except whatsapp and telegram.

I use telegram for this too.

Big reason is I can create groups and add people to such notifications. Super easy.

I have some scheduled ci/cd pipelines that send notifications. Just scroll up for history. This setup has been working with no changes needed for couple years, no hiccups. Love it.

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#306
post #48

Combine this with Apprise and you have yourself a nice push to anything service. https://github.com/caronc/apprise

OT but i wish they'd add Mastodon support. https://github.com/caronc/apprise/issues/586

Mastodon Support added
Post reply on HN