You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
William Petit 416c17a0de Initial commit 2 years ago
bin Initial commit 2 years ago
lib Initial commit 2 years ago
test Initial commit 2 years ago
.gitignore Initial commit 2 years ago
README.md Initial commit 2 years ago
package.json Initial commit 2 years ago

README.md

SMS Gateway

Simplistic SMS REST/JSON gateway using Gammu as a backend, in NodeJS

Tested with NodeJS v6.5.0, Gammu 1.33.0 and a Huawei E220 modem.

Getting started

You should be in the dialout group to enter these commands.

gammu-config # or gammu-detect - Generate your gammu configuration for your connected modem
gammu entersecuritycode PIN <your_pin_code> # Unlock your modem
npm install
./bin/sms-gateway

Listing received SMS

curl -v http://localhost:8080/sms

Sending a message

curl -v -d '{"dest":"<phone_number>", "message": "<Your SMS message>"}' -XPOST -H 'Content-Type: application/json' http://localhost/sms