Gammu Wrapper : A simple way to send SMS locally (no internet connectivity required)
Problem solved :
I am using Uptime Kuma to monitor servers, docker instances, homeassistant status and also Internet connectivity.
By default, the notification I use is Pushover.
But what happens if internet is down or the Unifi gateway is down for some reason ?
It happened to me recently and of course I wasn’t notified that the main gateway was down and internet was cut off.
Solution :
Uptime Kuma does not have a way to connect to a local SMS gateway (only internet services AFAIK).
So I created this small REST server, to be called using a custom Webhook in “UK”, that uses Gammu to send SMS locally from the server (even if internet is down, as long the the hosting machine is up and running).
Tested with Huawei E169.
The REST call is very generic so it can work with more than just Uptime Kuma.
Hosted on docker for ease of installation and use.
Limitations :
No local security, so don’t open it to the outside world.
Limited API calls : just “sendsms” for now.
Feedback welcome of course.