DEV Community

loading...

Web client for Gammu SMSD

Jon Neverland
I'm a Software Developer in Malmö, Sweden. Currently employed at Radikal.Studio where I co-build and invest in digital products with early stage startups 👍
Originally published at jonnev.se on ・2 min read

Web client for Gammu SMSD

Finally I have released the client I've written for Gammu SMSD, which I use on my Raspberry Pi Zero SMS gateway. It's a React app with a Node Express backend to fetch the stored messages from a Postgres database. While still a WIP (needs auth and some UI love) it works fine for receiving and sending/replying to SMS.

💻👉 The source code is here with instructions for the different ways of deploying.

I myself run it directly on my Raspberry Pi with Docker but it's also possible to have it connect to an existing Postgres instance in case you already have that set up. Or just run it on a separate machine, preferably with docker-compose and have your gammu-smsd connect to the database container.

I learnt quite a lot building this, both about some Gammu internals and React/Node. My first try was to build the backend in Crystal because I figured having a small binary to ship would be perfect for a RPi but that turned out being harder then expected. That might be content for another blog post...

It also turned out building Docker images on a RPi was messy which led me to the discovery I wrote about in my last post. I included a version of the script from my example in this repository too, to make it easy for others to build and deploy the armv6 version of the Docker image.

Anyways I hope someone finds this useful and please drop me a line with any feedback you might have!

Discussion (0)