-
-
Notifications
You must be signed in to change notification settings - Fork 17
SmsDialer
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.
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.
To build SmsDialer, you first need to build Gammu, then add the Gammu path to your CMakeListsUserConfig.txt (in your yadoms/sources folder).
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")
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")
Yadoms -- The ultimate house automation solution