binwiederhier

joined 1 year ago

Just try it out. I make no guarantees for odd setups like that though. :-)

[โ€“] binwiederhier@discuss.ntfy.sh 8 points 1 year ago (2 children)

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@discuss.ntfy.sh 1 points 1 year ago* (last edited 1 year ago) (1 children)
[โ€“] binwiederhier@discuss.ntfy.sh 2 points 1 year ago (3 children)

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.

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@discuss.ntfy.sh 2 points 1 year ago (5 children)

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@discuss.ntfy.sh 2 points 1 year ago* (last edited 1 year ago) (7 children)

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:

$ curl -s "https://discuss.ntfy.sh/api/v3/post/list?sort=Hot"|jq '.posts[].post.name'
"Docker-compose + Traefik"
"[SOLVED] Self-hosted NTFY does not receive all notifications"
"Markdown is coming soon ... ๐Ÿคฉ ๐Ÿ˜ฒ"
"[disscussion] Lemmy push notifications with ntfy"
"Using healthchecks.io and ntfy.sh to wake you up if your services are down"
"Ntfy Connector: Modal-based discord bot to send,and now receive, ntfy notifications."
"Welcome to the new ntfy discussion board"
"ntfy Web Push / PWA support is coming soon"
"๐Ÿ“ข  ntfy Web Push / PWA: Request for testing!"
"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"
 

Is it possible for Lemmy to send me a notification whenever somebody submits a new post to a specific community (one that I own)?

I started a project-specific community !ntfy@discuss.ntfy.sh that's supposed to be a support forum, and I have missed a few posts for many hours because there are no notifications.

I'd be ok too if there was a simple API and I'd have to write a small script, but it'd be nicer if it was built-in

[โ€“] binwiederhier@discuss.ntfy.sh 0 points 1 year ago (1 children)

There are plenty of instances that copy the original content. As an instance owner that runs a only a single project specific community, I should be able to decide what content is available on my domain, and what isn't. Don't you think?

Aside from the questionable content, there is also legal issues around it that I'd rather not deal with.

 

Due to the nature of the default robots.txt and the meta tags in Lemmy, search engines will index even non-local communities. This leads to results that are undesirable, such as unrelated/undesirable content being associated with your instance.

As of today, lemmy-ui does not allow hiding non-local (or any) communities from Google and other search engines. If you, like me, do not want your instance to be associated with other content, you can add a custom robots.txt and response headers to avoid indexing.

In nginx, simply add this:

# Disallow all search engines
location / {
  ...
  add_header X-Robots-Tag noindex;
}

location = /robots.txt {
    add_header Content-Type text/plain;
    return 200 "User-agent: *\nDisallow: /\n";
}

Here's a commit in my fork of the lemmy-ansible playbook. And here's a corresponding issue I opened in lemmy-ui.

I hope this helps someone :-)

[โ€“] binwiederhier@discuss.ntfy.sh 1 points 1 year ago (2 children)

It's already integrated into a bunch of things, especially the *arrs, but if you have suggestions, please let me or the maintainers of the other software know.

Here's a list: https://docs.ntfy.sh/integrations/

 

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

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:

It only works with 16.4 afaik.

 

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

Awesome. Thanks for sharing ๐Ÿ™

 

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

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.

(Disclamer: I am the maintainer of ntfy. Hope posting this is fine. Happy to answer questions; I also have a brand new ntfy community, feel free to join)

 

Hey folks, the r/selfhosted community has always been very kind to ntfy, and with recent events, I'm moving the r/ntfy subreddit to Lemmy.

https://discuss.ntfy.sh/c/ntfy

Feel free to join and/or ask questions about ntfy.

view more: next โ€บ