Poging GOUD - Vrij

Notification Nirvana

Linux Magazine

|

#297/August 2025: Cleaning Up

If you host a lot of services on your home server, it helps to have them send you timely notifications. With ntfy, you can send push notifications to your phone or desktop. By Koen Vervioesem

- By Koen Vervloesem

Notification Nirvana

A monitoring tool, a Docker image updater program, home-automation software, a task list manager, and backup software all share a common requirement: They need a way to send notifications to keep you informed when specific events occur. There are countless ways to send notifications, including emails, instant messages, and push notifications.

In this article, I'll explore ntfy [1] (pronounced “notify”), an open source project that receives alerts via HTTP through a REST API and converts them into push notifications for a smartphone app or a web browser on your desktop. Thanks to this API and its command-line interface, you can even enable your own shell scripts to send push notifications.

Ntfy uses an HTTP publish/subscribe pattern. A sender publishes notifications on a specific topic, defined by the URL segment following the domain, by sending data to a URL via an HTTP POST or PUT request. A receiver subscribes to this topic, which means that ntfy sends the data to the receiver each time a sender publishes a notification on the topic.

By installing ntfy on your own server, you gain complete control over your notifications, without a centralized service such as Google Firebase Cloud Messaging, which is typically used for such applications. You can also try ntfy for free on its public instance. If you don’t want to bother with installing and maintaining ntfy yourself, you can opt for a paid plan offered by the project’s developer.

Preparing the Server

First you need to determine the intended purpose for your ntfy instance. Your mobile app needs to be able to connect to your server to request messages. If you only want to receive notifications on your phone at home while connected to your local network, just installing ntfy on a home server without exposing any ports to the Internet will suffice.

Linux Magazine

Dit verhaal komt uit de #297/August 2025: Cleaning Up-editie van Linux Magazine.

Abonneer u op Magzter GOLD voor toegang tot duizenden zorgvuldig samengestelde premiumverhalen en meer dan 9000 tijdschriften en kranten.

Bent u al abonnee?

MEER VERHALEN VAN Linux Magazine

Linux Magazine

Exercise Place

The GRUB 2 boot manager might seem intimidating at first glance. All the more reason to spin up a virtual playground so you can practice.

time to read

10 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Terminal Mosaic

What's better than one command line? Many command lines that never die. Take the terminal to new places with Zellij.

time to read

9 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

MakerSpace

Build a Long-Range Sensor Network with ChirpStack Sensor Symphony

time to read

14 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

How Flatpak, AppImage, and Snap are changing software distribution Ship It!

Modern-day package systems solve some problems posed by classic formats like DEB and RPM. We look at Flatpak, AppImage, and Snap and describe how they differ.

time to read

12 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

Dashboard Delight

Simplify the chaos of self-hosted services with Homepage, a customizable dashboard with widgets that put service statistics at your fingertips.

time to read

9 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

MADDOG'S DOGHOUSE

Free software, and the FOSS community, can help technology students get the education they desire in Brazil and elsewhere.

time to read

3 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

Rethinking the Terminal

The Warp AI agent takes the guesswork out of working at the command line. We show you how to build a simple website with one prompt.

time to read

4 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Just in Time

Just is a command runner that lets you define project-specific tasks in a declarative justfile.

time to read

7 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

The Watcher

This versatile security app checks for vulnerabilities, watches logs, and acts as a single interface for other tools.

time to read

7 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

NO INTERNETREQUIRED

This new utility lets you update a system that is notconnected to the Internet.

time to read

4 mins

#298/September 2025: Indie Game Studio

Listen

Translate

Share

-
+

Change font size