A small selection of flowers wild and cultivated
A small selection of flowers wild and cultivated
Uptime-Kuma, a self-hosted internet monitor, will now send alerts to me using Signal. This is roughly how I did it, more as an aide-memoire for my future self, but perhaps it can help you.
The first thing is to install the Signal REST API and send a test message, as per the excellent instructions, which included an easy way to link my Pi to my phone.
The Notifications screen on Uptime-Kuma is faily straightforward, but there are definite gotchas. If you use any version of the URLs that the Signal REST API suggests, you get an error: ECONNREFUSED
Spelunking in Uptime-Kuma's Github Issues took me where I needed to be. The solution is to enable the two Docker containers to talk to one another, which I had vaguely remembered from my first run through the Docker documentation. The steps as given, however, would not work for me.
The Docker documentation gave me the correct formula:
sudo docker network create -d bridge kuma-network
Then you have to add the two containers to the network, which means you need their hashes or names. Get them with:
sudo docker ps
Now add the containers to the network; I used their hashes:
sudo docker network connect kuma-network f356eabddee1
sudo docker network connect kuma-network e2275c9c6d3c
Nearly there. Now restart the containers:
sudo docker container restart e2275c9c6d3c f356eabddee1
But still testing the notification fails, because you need the correct URL for the Signal REST API, which you find with:
sudo docker inspect kuma-network.
http://172.19.0.3:8080/v2/send in the Kuma Notification panel successfully sends a test. Save the details, and away I go hoping, of course, never actually to get an alert.
Next up, ensure all the Docker bits restart after a reboot.
Syndicated to IndieNews
Webmentions
Webmentions allow conversations across the web, based on a web standard. They are a powerful building block for the decentralized social web.
If you write something on your own site that links to this post, you can send me a Webmention by putting your post's URL in here:
Comments
I very much regret that Russian spammers have made my comment system unusable. If you want to email me a comment, it is easy enough to find the address and I will be happy to do the needful behind the scenes. Webmentions remain available (for now).