UPD: Ryskaya on the Internet has come across a new, simpler method, without dancing with python (or with it if necessary).
It turned out that the
sms.ru site
has been providing
Free SMS for programmers for more than half a year.

Registration takes place on a mobile phone number, no SMS should be sent to do this. Only the verification code will be sent to the number.
After registration, you can send up to 60sms per day to your number specified during registration. For almost a month, I have transferred all my services from Google to this service. Pleases the absence of a minute delay before sending and the possibility of receiving the status of the message.
')
You can send in different ways, on the website, in the "Programmers" section there are many ready-made examples:
- HTTP
- curl for command line (UTF-8)
- php (with curl enabled)
- php (without curl)
- php (strong authorization)
- PERL (enhanced authorization)
- Python
The easiest way is to open the page:
sms.ru/sms/send?api_id=xxxx-xxxx-xxxxx-xxxx-xxxx&to=_&text=hello+world
, - xxxx-xxxx-xxxxx-xxxx-xxxx id .
It is also possible to send email by SMS. In the section “Mail
sms .ru” you can set up your mailbox name
sms .ru letters to which will be sent to your phone as SMS. When the option “cut to 1cm” is enabled, all messages to your number will be free.
In the google calendar there is a very interesting feature - notifications. Thanks to her, you can receive free sms to your phone about events in the calendar. A lot of countries and mobile operators are supported:
Belarus- JLLC Mobile TeleSystems
- VELCOM
Russia- Beeline
- Megaphone
- Mts
- Sky link
Full list of countries
here .
(for example, my SMS also came to operators who are not in the list)Craftsmen from the forum wl500g.info wrote a couple of scripts that send any SMS via google calendar. The delay is only 1 minute, and the limit of 20 sms per day has not yet been circumvented.
First you need to register with gmail.
In the google calendar settings, in the "setting for mobile devices", enter and activate your mobile phone. You can only enter one phone number, but you can later change it.
Next install python and bc
sudo apt-get install python
sudo apt-get install bc
We download gdata-python-client python client for a calendar. And install it.
Create the folder / opt / etc / calendarSMS and put the Python script downloaded from the
link into it . (if the folder is different - then you need to correct the paths in the file) I fixed everything on / etc / calendarSMS
In the archive, by the link above, there is a config file for the script, we put it next and we rule.
[sendsms]
user: vassio
pw: *******
starttime: 120
endtime: 180
remindertime: 1
calendar: fafgttkq8ed2idfgfhdfidn6eok@group.calendar.google. com
attempt: 11
delay: 5
user google account
pw password for google account
starttime indicates the time after which the event will start (in seconds)
endtime indicates how long the event will be completed (in seconds)
remindertime reminder time (in minutes)
calendar ID of the calendar (e.g. fafgttkq8ed2idfgfhdfidn6eok@group.calendar.google. com). You can look in the calendar settings - details of a specific calendar, the field "calendar address" and there in the right in brackets
attempt Maximum number of attempts to set a new calendar reminder
delay time between attempts
Next you need to download and put the
sendsms file in the same / opt / etc / calendarSMS folder (if you changed the path, do not forget to fix it everywhere)
To synchronize the time before each dispatch, the example uses ntpclient. It is used only in the previous paragraph. In Ubunt I fixed it on ntpdate and it all worked.
Do not forget to give launch rights
chmod 777 / opt / etc / calendarSMS / sendsms
That's it, now what to send yourself sms we type
sendsms text_sms
sendsms [-inet] [-?] [-sync] [message]
-inet allows you to check access to the Internet (google.com) before sending, until the Internet displays a message.
-? this help
-sync before sending synchronize time
message message to be sent
Example: / opt / etc / calendarSMS / sendsms -inet -sync Hello World!
The scope is huge:
- SMS about completed download in torrent client
- SMS about the movement of the motion sensor in video surveillance systems
- SMS about reaching a certain threshold in the observed value
- SMS about communication channel / server / program failure
- etc. etc.
The only limitation is 20 sms per day for 1 number.
But for each event, you can create your Google account, it does not check matches of numbers with different accounts.