Sending SMS via Internet service (Web-to-SMS)
Introduction
You can send SMS messages through special SMS services via Ethernet. Vutlan monitoring unit sends a request to such a service, which in return sends an SMS to the recipients, depending on the API in the request. All the commands described for working with the service are usually described on the company's website and are unique for each such service. Vutlan provides a generic access mechanism suitable for most such services.
How to create a Web-to-SMS element
To create a notification via "Web-to-SMS" you have to specify the following parameters:
Parameter | Description |
---|---|
Name | The name of the element in the system |
Phone number | The telephone number of the addressee is compiled in accordance with the documentation of the Web SMS service. |
Message | Text of the message. May contain Macros. Learn more about Macros at Macros in the notification text Example with full info: Logic name:\n %4\n --\n Logic triggered at:\n %3\n --\n Logic triggered by:\n %5, %8\n State: %6\n Value: %7\n --\n Logic scheme description:\n %1\n --\n All sensor states on the moment when logic was triggered:\n %2\n --\n |
Login | User login on the Web-to-SMS service |
Password | Password for the login on the Web-to-SMS service |
API string | The API command line, compiled in accordance with the documentation of the Web-to-SMS service |
API command line usually may look like this: http://smscomp.org/system/send.php?login=user_500&pass=qwerty&phones=89563214458&text=simple_message.
You can use this API line as is, but it’s more convenient to replace the fields in the API line with macros, and then the parameters can be set from the web interface. Then the API line will look like this (macro highlighted in red): http://smscomp.org/system/send.php?login=$LOGIN$&pass=$PASSWORD$&phones=$PHONES$&text=$MESSAGE$.
The following macros can be used in the command line:
$LOGIN$ - user login (field Login);
$PASSWORD$ - user password in plain text (field Password);
$PASSWORD_MD5$ - user password in hash MD5;
$PASSWORD_SHA1$ - user password in hash SHA-1;
$PHONES$ - recipient phone numbers (field Phone number);
$MESSAGE$ - text of the message (field Message text).
When forming the command, these macros will be replaced with the corresponding values of the form fields and are correctly coded for sending in the HTTP request. Parameters specified in the command directly must be presented in a coded (urlencode) form.