binwiederhier

@binwiederhier@discuss.ntfy.sh

Hi I’m Phil 👋, I’m a software engineer, and I maintain an open source push notification tool called ntfy. I’m also German 🇩🇪, and a big fan of 🇬🇧 & 🇺🇸, and a dad of two 👦👧

This profile is from a federated server and may be incomplete. Browse more on the original instance.

binwiederhier,

–message-expiry-duration is an option that you can pass when creating a new tier (in your selfhosted instance). It is equivalent to the cache-duration for users publishing in that tier.

For instance, if you are a ntfy Pro user, your messages are cached much longer than the normal 12h (see ntfy.sh/v1/tiers).

The naming is a little odd. I think cache-duration should probably be called something else.

binwiederhier,

Can you elaborate what you mean by “it is asking”? Are you using the Android app or iOS app? Which screen? Can you provide a step by step of what you’re doing, or a screenshot?

binwiederhier,

Go to “ntfy.example.com/mytopic/json?poll=1

With your selfhosted URL and your topic filled in. See what you get back. You can also enable debugging to see if there any clues in the logs, both Android or the server.

docs.ntfy.sh/troubleshooting/

binwiederhier,

Can you make an example? Like, you want to just send custom fields when you publish the message and then pass it along to where?

binwiederhier,

Got it. Yeah no that’s not supported. I have thought about adding that many times, but nobody’s asked for it so far.

I’d probably call them extras though or something, so it’d be:


<span style="color:#323232;">{
</span><span style="color:#323232;"> "topic": "1234", 
</span><span style="color:#323232;"> "message": "foo",
</span><span style="color:#323232;"> "title": "bar",
</span><span style="color:#323232;"> "extras": {
</span><span style="color:#323232;">   "customField": "baz"
</span><span style="color:#323232;"> }
</span><span style="color:#323232;">}
</span>
binwiederhier,

It’s probably easy as pie to implement. Feel free to open a ticket on GitHub.

binwiederhier,

Thanks you for considering a donation.

Open Collective does not accept single-maintainer projects. I tried to open an account and had an email exchange with a person there, and they told me that I’d need a second owner for the account.

I can dig up the exact wording, but there’s sadly not much I can do.

binwiederhier,

That … actually looks and feels pretty slick. Very neat UI.

binwiederhier,

Great writeup thank you. May I just say that tmyour original plan was both ambitious and a little insane. And even the current cost and infrastructure is bonkers IMHO.

I do hope you’re getting donations to help with the cost. Good luck.

My instance is on the other end of the spectrum: I pay $6/month for it on digitalocean. It has 1G of RAM. It crashes every now and then, likely because of the RAM and OOM killer. But it’s only for me and a few ntfy fans, so it’s quite different.

binwiederhier,

Use ntfy.sh. It’s open source and has a free server.

Disclaimer: I made it ;-)

binwiederhier,

Thanks. I don’t work on it full time, no. It’s a side gig project I’ve been doing for a year and a half. I recently added paid plans to get a little side income, but it’s not really taken off. Likely because the free tier is too generous hehe.

binwiederhier,

I do cover the costs yes, through donations and the paid plans.

It’s definitely fun to do some things, but others are daunting indeed. I do, however, learn a lot. I have learned a lot that I was able to reuse elsewhere. All that is priceless.

binwiederhier,

You can type reset to fix your terminal if it gets messed up like that.

binwiederhier, (edited )

That implies that it’s not a native feature. I gotta find the API docs then…

Edit: Looks like there is an easy-ish API. Examples:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">$ curl -s "https://discuss.ntfy.sh/api/v3/post/list?sort=Hot"|jq '.posts[].post.name'
</span><span style="color:#323232;">"Docker-compose + Traefik"
</span><span style="color:#323232;">"[SOLVED] Self-hosted NTFY does not receive all notifications"
</span><span style="color:#323232;">"Markdown is coming soon ... 🤩 😲"
</span><span style="color:#323232;">"[disscussion] Lemmy push notifications with ntfy"
</span><span style="color:#323232;">"Using healthchecks.io and ntfy.sh to wake you up if your services are down"
</span><span style="color:#323232;">"Ntfy Connector: Modal-based discord bot to send,and now receive, ntfy notifications."
</span><span style="color:#323232;">"Welcome to the new ntfy discussion board"
</span><span style="color:#323232;">"ntfy Web Push / PWA support is coming soon"
</span><span style="color:#323232;">"📢  ntfy Web Push / PWA: Request for testing!"
</span><span style="color:#323232;">"ntfy release 🎉 - Now with Web Push and a progressive web app (hello iOS friends ❤️), and with dark mode for the web app! ntfy lets you send push notifications to your phone via a simple REST API, and"
</span>
binwiederhier,

Thanks dude. I’m going to try the curl route. What do you mean by it sends you every post? Isn’t that what I want?

binwiederhier,

Oh that’s a good idea. Any reader suggestions? I have thought about trying RSS again for a while. Maybe this is a good enough reason.

binwiederhier,

That’s what saving the IDs is for right? It’s easy enough to do in a bash script I think. I’ll post it here later, assuming I get it to work.

binwiederhier, (edited )

Here ya go. ChatGPT did all the hard work: chat.openai.com/…/7703dbe5-6801-4d5b-8d56-c3f18ca…

Edit: here’s a manually refined version: gist.github.com/…/70f13b7c7338a2b75e15438b5567a6d…

[SOLVED] Self-hosted NTFY does not receive all notifications

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

binwiederhier,

That’s a great username, dude. 😎 Glad you solved your problem.

Next time, check out this page to help you increase the log levels: docs.ntfy.sh/troubleshooting/

binwiederhier,

It is not possible to log to both. I’m sure there is some Unix trick to do both, but I don’t know.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • everett
  • InstantRegret
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • anitta
  • kavyap
  • modclub
  • normalnudes
  • cubers
  • osvaldo12
  • tacticalgear
  • Durango
  • khanakhh
  • ngwrru68w68
  • provamag3
  • Leos
  • tester
  • cisconetworking
  • ethstaker
  • megavids
  • lostlight
  • All magazines