-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocs
More file actions
60 lines (29 loc) · 1.59 KB
/
docs
File metadata and controls
60 lines (29 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Documentation :
This repo is to send SMS using Raspberry Pi and Gnokii .
Different ways of using it :
1.Create a folder called web and move all the files onto server (i.e., /var/www/web) then grant the necessary permissions to the necessary files.
2.The user interface takes in a text file (with message and numnber separated by comma).
3.If the message includes comma then change the IFS(in sms.sh under scripts) to other parameter that separates the number and message.
4.Finally add sms1.sh to the crontab (Add by using crontab -e command and adding a line at the end)
0-59/2 * * * * /var/www/web/sms1.sh
5.Run the script.sh by using ./script.sh and start uploading.
This would do the required job.
Other ways :
From the terminal run the file sms.sh with required text file.
# sms.sh (name_of_the_text_file)
Gnokii on raspberry pi can be got on the web.
Dont forget to change the config file and place it in the right direc.
Working structure:
Connect the phone to raspberry pi and check for the port and change the config file accordingly.
Then open the hosting page upload the file and ready to go.
The SMSC number has to be changed accordingly in the sms.sh file.
To increase the speed in initiating the process reduce the time in crontab -e.
To run on Ubuntu and Fedora use :
echo "message" | sudo /usr/bin/gnokii --sendsms number
or
echo "message" | sudo /usr/local/bin/gnokii --sendsms number
Features :
1.Send single message to multiple users
2.Send different messages to different users
3.Send single message to single user (not that economical)
Have fun enjoy!!!!!