1
1

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?

2
1

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?

3
1

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 ?

4
1

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

5
1
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…

6
1
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.

7
1

8
1

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:

9
1

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

10
1
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.

11
1
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.

12
1
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

ntfy

0 readers
0 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