This lab setup uses ntfy.sh
, a simple HTTP-based pub-sub notification service, to send real-time alerts and messages. This guide explains how to use ntfy.sh
to send and receive notifications.
ntfy.sh
lets you send push notifications to your phone or desktop using simple HTTP requests or CLI commands. It's great for lab alerts, build systems, monitoring, or custom scripts.
Click this button on the user interface:
And enter your topic's name here, which will create the appropriate route on the API:
Each notification topic is just a name. Subscribe by visiting:
http://10.205.10.2:1337/<your-topic>
You can bookmark that URL or open it in a browser tab to receive real-time updates.
Or install the ntfy mobile app and subscribe to the same topic name.
There is are official Python and JavaScript Libraries to interface with these, feel free to check them out as well.
You can publish a message by simply sending a poset request to the URL with your topic, this can be done with whatever technology you prefer, but for testing purposes you can try this command:
curl -d "Hi" 10.205.10.2:1337/alerts
Visit this link http://10.205.10.2:1337/alerts and you should find your notification there!