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 👦👧
Go to “http://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.
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?
It’s probably easy as pie to implement. Feel free to open a ticket on GitHub.
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:
{
"topic": "1234",
"message": "foo",
"title": "bar",
"extras": {
"customField": "baz"
}
}
Just try it out. I make no guarantees for odd setups like that though. :-)
It is not possible to log to both. I’m sure there is some Unix trick to do both, but I don’t know.
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?
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.
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.
You can type reset
to fix your terminal if it gets messed up like that.
In case you’re wondering, yes, I was notified about this post via the script 😂
Glad you got it working!
Excuse my ignorance, but where can I find details to this issueand does it affect only 0.18.1, or also 0.18.0?
That’s a great username, dude. 😎 Glad you solved your problem.
Next time, check out this page to help you increase the log levels: https://docs.ntfy.sh/troubleshooting/
That looks pretty neat. Thanks!
You really should. It’s pretty darn amazing.
I have noticed that I use it less myself. I think honestly though, at least for me, that it is 90% related to the clunky and awkward UI of ChatGPT. If it was easy to natively type the prompt in the browser bar I’d use it much more.
Plus, the annoying text scrolling thingy … Just show me the answer already, hehe.
There is no way to list topics. That would be silly, given that topics are meant to be used as secret notification channels 🙃
The admin of the server can obviously list topics, but normal users cannot.
This looks really nice, dude
--message-expiry-duration
is an option that you can pass when creating a new tier (in your selfhosted instance). It is equivalent to thecache-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 https://ntfy.sh/v1/tiers).
The naming is a little odd. I think
cache-duration
should probably be called something else.