Skip to content

SmsDialer

Sébastien Gallou edited this page Jun 4, 2020 · 13 revisions

SmsDialer plugin

The aim of this plugin is to provide a cheap mean to send/receive SMS with Yadoms, using a phone or GSM stick, connected on serial/USB.

Features

To support many phones, this plugin is based on the Gammu library (v1.38 minimum). It is able to :

  • send notifications in SMS.
  • receive SMS, to transmit commands to Yadoms.

How to build from sources

To build SmsDialer, you first need to build Gammu, then add the Gammu path to your CMakeListsUserConfig.txt (in your yadoms/sources folder).

Build Gammu under Windows

Download Gammu source files, unzip it and open a console (from Visual Studio) in the Gammu folder :

mkdir build
cd build
cmake -DMSVC_RUNTIME=static ..
cmake --build .

Now set GAMMU_ROOT variable into your yadoms/sources/CMakeListsUserConfig.txt file to where is installed Gammu, ie :

set(GAMMU_ROOT "full/path/to/gammu-1.38.1")

Build Gammu under linux

Tested on Ubuntu and Raspberry-Pi.

Install Gammu dependancies :

sudo apt-get install python-dev pkg-config libmysqlclient-dev libpq-dev libcurl4-gnutls-dev libusb-1.0-0-dev libdbi0-dev libbluetooth-dev libgudev-1.0-dev libglib2.0-dev unixodbc-dev

Download Gammu, and extract it. Go to gammu folder and build it :

mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=OFF ..
make

Now set GAMMU_ROOT variable into your yadoms/sources/CMakeListsUserConfig.txt file to where is installed Gammu, ie :

set(GAMMU_ROOT "/home/ubuntu/dev/gammu-1.38.1")
Clone this wiki locally