GammuWrapper - Send SMS locally (works with Uptime Kuma)

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.

3 Likes

Running it on Proxmox/Docker and had some trouble passing trough the GSM Dongle ( Huawei). Once I figured that it seems to run well.

At the moment I use one REST Command for each text I want to send. That works OK. Need to find out how to use a Template for that so only one entry is needed in the Configuration.yaml ( fairly similar to what can be done with Uptime Kuma ).

Thanks for that !