1
7
submitted 1 year ago* (last edited 1 year ago) by binwiederhier@discuss.ntfy.sh to c/ntfy@discuss.ntfy.sh

Welcome to the ntfy community ❀️

ntfy.sh (pronounced notify) is a simple HTTP-based pub-sub notification service. You can use it to send push notifications to your phone via HTTP PUT/POST. Check out the docs for more info.

Feel free to ask anything about ntfy here or on the Discord or Matrix.

How do I sign-up on discuss.ntfy.sh?

Registration to this Lemmy instance are disabled (for now), because managing the spam accounts and such is a huge hassle. You can sign-up on any of the other instances (e.g. lemm.ee, discuss.tchncs.de, sopuli.xyz, or others), and then subscribe to this community or post here.

Donations & sponsorships

If you like ntfy, please consider sponsoring me via GitHub Sponsors or Liberapay πŸ’ΈπŸ’°.

Links

2
2
submitted 1 year ago by laskobar@feddit.de to c/ntfy@discuss.ntfy.sh

Currently i try to create a PWA/WebApp for my own project. I am looking at the possibilities of integrating Web Push into my WebApp. If I understand the concept correctly, I need a push server in addition to my WebApp and the browser. Can ntfy take over this role?

3
7
4
2

What is the difference between the two.

The cache-duration is explained in the docs and is fairly clear:

Duration for which messages will be buffered before they are deleted

so it is to account for network interruptions of subscribers.

message-expiry-duration is mentioned but there is no explanation for it in the docs.

5
1
submitted 1 year ago by nebs@lemm.ee to c/ntfy@discuss.ntfy.sh

First started using ntfy around a month ago and I’m really enjoying it.

Question: are folks mostly using the native iOS app or the web app? Seems to me that the web app might be more full featured. I do miss having markdown formatting in the native iOS app.

6
5

I have managed to get @protonmail notifications working on a GSF free @GrapheneOS phone by ... running the proton bridge on a @debian virtual machine and IMAP idle polling it with a shell script. The script then sends a request to @ntfy and boom mail alerts are back. Also that's geek bingo for me.

7
3
submitted 1 year ago by Slothy@lemm.ee to c/ntfy@discuss.ntfy.sh

Hi All,

I am a little bit new to ntfy (just having a play with it at the moment). I have managed to get my ntfy server up and running on a unraid docker server (using the ntfy app from the unraid appstore), but it when I try and connect the app to the server it is asking for username and password. I havent set up any authentication at the moment, as I am unable to run the ntfy cli from within the docker environment yet.

Any guidance would be great if anyone has a similar setup.

8
7

Made a little mock-up to show what I mean. May not be for everyone but in my case it would improve readability. Maybe as on option?

9
3

I have a self-hosted ntfy instance and I am gradually building a bare-bones mobile app to display my notifications.

I am publishing by POSTing as JSON. Is it possible for the ntfy server to send all the data fields that are included in the JSON? I would like to pass data in custom fields. Makes sense?

If this does not exist, is it possible to make a feature-request?

10
7

I see that ntfy has an Open Collective but I don't see the option to donate using that. Will ntfy change this in the future ?

11
15

Lemmy doesn't support notifications of all new posts for a certain community, so I [1] wrote a little script to send me a ntfy notification for each new post in the ntfy community. Here it is:

https://gist.github.com/binwiederhier/70f13b7c7338a2b75e15438b5567a6d6

[1] When I say "I", I really mean 99% ChatGPT. But hey, I made it prettier and refined it a little at least: https://chat.openai.com/share/7703dbe5-6801-4d5b-8d56-c3f18ca3ac4a

12
2
Docker-compose + Traefik (lemmy.zell-mbc.com)
submitted 1 year ago* (last edited 1 year ago) by thomas@lemmy.zell-mbc.com to c/ntfy@discuss.ntfy.sh

Has anyone got a working setup of this combination? I somehow can't get things to work

I can run the below on the docker host sucessfully:

curl -d "Backup successful πŸ˜€" localhost:81/test  
{"id":"4EpidFddbe8p","time":1688997266,"expires":1689040466,"event":"message","topic":"test","message":"Backup successful πŸ˜€"}

…but when I try the public url from a different machine I get a 404 page not found. Which to me means ntfy is running, but there's something wrong with my Traefik setup.

docker-compose.yml

…
    ports:
      - 81:80
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.ntfy.rule=Host(`ntfy.mydomain.com`)"
      - "traefik.http.routers.ntfy.tls=true"
      - "traefik.http.routers.ntfy.entrypoints=http"
      - "traefik.http.routers.ntfy.entrypoints=https"
      - "traefik.http.routers.ntfy.tls.certresolver=http"
      - "traefik.http.services.ntfy.loadBalancer.server.port=81"
      - "traefik.docker.network=traefik-proxy"
      - "traefik.http.routers.ntfy.service=ntfy"

Minimalistic server.yml:

cat config/server.yml 
# ntfy server config file
base-url: "https://ntfy.mydomain.com"
  #upstream-base-url: "https://ntfy.sh"
  #listen-http: "127.0.0.1:80"
cache-file: "/var/cache/ntfy/cache.db"
  #attachment-cache-dir: "/var/cache/ntfy/attachments"
behind-proxy: true

Can anyone spot a mistake here or suggest additional troubleshooting steps?

---- Edit: Never mind, Traefik has given me so much grief, my brain doesn't seem to be compatible :-), that I decided to switch to nginx. Got everything running after 5 minutes…

13
4
submitted 1 year ago* (last edited 1 year ago) by loving_ntfy@lemm.ee to c/ntfy@discuss.ntfy.sh

I do POSTs from a backend app to a self-hosted ntfy instance (docker). The POSTs do not fail and I also save them in local db. I now compare the notifications cached in /var/cache/ntfy/cache.db against the ones I save in my local db and I see that ntfy is missing a lot. As an example, today for example I have POSTed 540 times and in cache.db I see only 60 of them. The skipped ones are not even at regular intervals.

Is there a logfile I can check in the ntfy service? The output of the ntfy process itself only shows the expected INFO Server stats... message but not errors.

Is there any reason ntfy may not be registering some of the POSTed notifications?

Best regards.

Edit: I can also confirm on the mobile app that I did not receive the skipped ones; I have only received indeed the ones that I see in ntfy's cache.db.

14
12

15
6

Hi guys do you know of any way to integrate ntfy push notifications with lemmy?

Only way I've found so far is using an rss script https://github.com/camerahacks/rpilocator-rss-feed/blob/main/rpilocator-rss-ntfy.py

Curious if there are any other better ways to go about this

16
4
submitted 1 year ago by Jack@vlemmy.net to c/ntfy@discuss.ntfy.sh

Hello All,

I have been building a discord bot to send and recieve ntfy notifications. Its features include:

  • Publish messages with all customizations
  • Poll messages with all filters
  • Subscribe to topics with all filters (one per user at any time)
  • Change the server to your own selfhosted one

I just recently managed to cover pretty much all of the ntfy API parameters using a variety of slash command arguments, modals, and dropdowns.

Feel free to check it out and add it to your server, but if you want consistent access, please selfhost. As a novice programmer, this is a learning experience for me, so any contributions/advice for my most likely convoluted code is much appreciated. Thanks!

17
34

Hello friends πŸ‘‹, it's that time again. A new ntfy release has landed. This one is pretty cool!

For those who don't know, ntfy is a a tool that lets you send push notifications to your phone from any script or server using a simple HTTP PUT/POST requests. It's 100% open source and self-hostable, and has an Android app and a web app. You can use ntfy like this (more in the docs). This will send a notification to your phone:

curl -d "Backup on $(hostname) complete" ntfy.sh/mytopic

I host free and open version on ntfy.sh, but you can host your own of course.

πŸ”₯ What's new? With this release, the ntfy web app now contains a progressive web app (PWA) with Web Push support, which means you'll be able to install the ntfy web app on your desktop or phone similar to a native app (even on iOS! πŸ₯³). Installing the PWA gives ntfy web its own launcher, a standalone window, push notifications, and an app badge with the unread notification count. Note that this needs to be configured for selfhosted servers!

On top of that, this release also brings dark mode πŸ§›πŸŒ™ to the web app.

πŸ™ A huge thanks for this release goes to @nimbleghost, for basically implementing the Web Push / PWA and dark mode feature by himself. I'm really grateful for your contributions.

❀️ If you like ntfy, please consider sponsoring us via GitHub Sponsors or Liberapay, or buying a paid plan via the web app. Contrary to "popular" belief, I am not swimming in money due to the paid plans. 😬

Detailed release notes: https://docs.ntfy.sh/releases/

Other links:

Public topics:

18
5

cross-posted from: https://discuss.ntfy.sh/post/25279

Hello folks,

Request for testing: The next ntfy server release will contain a progressive web app (PWA) with Web Push support, which means you'll be able to install the ntfy web app on your desktop or phone similar to a native app (even on iOS! πŸ₯³), and get basic push notification support (without any battery drain).

Installing the PWA gives ntfy web its own launcher (e.g. shortcut on Windows, app on macOS, launcher shortcut on Linux, home screen icon on iOS, and launcher icon on Android), a standalone window, push notifications, and an app badge with the unread notification count.

Testing instructions: The (hopefully) production ready version of the PWA is currently deployed on https://staging.ntfy.sh/app -- Install instructions with screenshots can be found in the docs (https://docs.ntfy.sh/subscribe/pwa/).

Please report bugs or issues on Discord, Matrix, or Lemmy (!ntfy@discuss.ntfy.sh). PLEASE HELP TEST

Huuuuge thanks goes to @nimbleghost for developing this entire feature top to bottom. If you throw donations (GitHub Sponsors or Liberapay) my way, I'll share them with him. He certainly deserves it for all this great work. πŸ‘

-- If you don't know what ntfy is: ntfy (pronounce: notify) is a simple HTTP-based pub-sub notification service. You can use it to send push notifications to your phone via HTTP PUT/POST. You can selfhost it or use the hosted version on ntfy.sh

19
5
submitted 1 year ago* (last edited 1 year ago) by binwiederhier@discuss.ntfy.sh to c/ntfy@discuss.ntfy.sh

ntfy iOS support is about to get much better. While I haven't worked on the native app in a while, the progressive web app (PWA) is going to make the web app enough to receive notifications on iOS (and others).

Almost all of the credit goes to @nimbleghost for the implementation.

20
7
submitted 1 year ago* (last edited 1 year ago) by binwiederhier@discuss.ntfy.sh to c/ntfy@discuss.ntfy.sh

I use ntfy (on another instance) + healthchecks.io to wake me up at night when ntfy.sh is down (crazy inception, right?). It's the "poor man's PagerDuty" if you will. It works amazingly.

Here's how I set it up:

  • I signed up healthchecks.io (free plan) and configured a project for "ntfy.sh" with a "ntfy" integration, i.e. publish to ntfy.example.com/<secret> with max priority
  • I have two different hosts execute small "integration ntfy.sh tests" and only ping healthchecks.io if they succeed. If they don't healthchecks.io will publish to ntfy.example.com/<secret>
  • In the ntfy Android app, I subscribe to ntfy.example.com/<secret>, enable "Keep alerting on highest priority", and make it override DND (do not disturb) for this topic.

Now when ntfy.sh goes down, the integration tests in the cronjobs will fail, and so healthchecks.io will not be pinged, which will trigger it to publish to ntfy.example.com/<secret> and let my phone consistently ring until I acknowledge it.

ntfy

1 readers
1 users here now

ntfy (pronounced notify) is a simple HTTP-based pub-sub notification service. You can use it to send push notifications to your phone via HTTP PUT/POST.

ntfy website β€’ Documentation β€’ GitHub β€’ Google Play β€’ F-Droid β€’ Discord β€’ App Store β€’ Matrix

If you'd like to become a sponsor, I would be humbled to accept your donation via GitHub Sponsors or Liberapay πŸ’ΈπŸ’°.

founded 1 year ago
MODERATORS