This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
configuration:sms-control [2015/08/27 07:17] hess |
configuration:sms-control [2017/12/04 17:26] (current) fachet [Starting the SMS Control script] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SMS Control ====== | + | ====== Configure the SMS Control script ====== |
===== Configuration ===== | ===== Configuration ===== | ||
- | - Enable the SDK: Services->SDK->Administration | + | - Enable the SDK: Services =>SDK =>Administration |
- | - Services->SDK->Job Management->Scripts-> [+] Create a new Script | + | - Services => SDK =>Job Management =>Scripts => [+] Create a new Script |
* Name: e.g. smscontrol | * Name: e.g. smscontrol | ||
* Descr. e.g. smscontrol | * Descr. e.g. smscontrol | ||
* Arguments: "noauth", by default you need a password to use the sms controll script. If you want the old behaviour please use the argument noauth | * Arguments: "noauth", by default you need a password to use the sms controll script. If you want the old behaviour please use the argument noauth | ||
* choose the sms-control.are from the Example Skript in the select area | * choose the sms-control.are from the Example Skript in the select area | ||
- | - Services->SDK->Job Management->Trigger-> [+] Create a new Trigger | + | - Services =>SDK => Job Management => Trigger => [+] Create a new Trigger |
* Name e.g. sms-in | * Name e.g. sms-in | ||
* Type: event-based | * Type: event-based | ||
* Event: sms-received Put the trigger and the script into one job: | * Event: sms-received Put the trigger and the script into one job: | ||
- | - Services->SDK->Job Management->Jobs->[+] Create a new Job | + | - Services =>SDK => Job Management => Jobs => [+] Create a new Job |
* Name: smsServer | * Name: smsServer | ||
* Script: smscontrol | * Script: smscontrol | ||
Line 17: | Line 17: | ||
===== Usage ===== | ===== Usage ===== | ||
- | Sending an SMS to the SIM card number: | + | Sending an SMS to the SIM card number: \\ |
- | 1 line: NetModule-Password | + | First line: <admin password> \\ |
- | 2 line: output 1/2 on/off, reboot, disconnect, connect, status | + | Second line: <command argument1 argument2> \\ |
+ | |||
+ | ==== Example ==== | ||
+ | <code - SMS.txt> | ||
+ | admin01 | ||
+ | status | ||
+ | output 1 on | ||
+ | output 2 on | ||
+ | output 1 off | ||
+ | output 2 off | ||
+ | disconnect | ||
+ | connect | ||
+ | reboot | ||
+ | </code> |