Changes

no edit summary
Line 17: Line 17:  
The <b>SMS Utilities</b> section contains a list of rules that perform certain actions when they are activated by SMS messages.
 
The <b>SMS Utilities</b> section contains a list of rules that perform certain actions when they are activated by SMS messages.
   −
[[File:Networking_rutos_manual_mobile_utilities_sms_utilities_sms_rules v2.png|border|class=tlt-border]]
+
[[File:Networking_rutos_manual_mobile_utilities_sms_utilities_sms_rules.png|border|class=tlt-border]]
    
The entire list contains more than 20 rules, but it does not include all possible SMS actions. You can also create custom rules or modify existing rules. All possible SMS rule actions, their default SMS texts and descriptions are listed in the table below.
 
The entire list contains more than 20 rules, but it does not include all possible SMS actions. You can also create custom rules or modify existing rules. All possible SMS rule actions, their default SMS texts and descriptions are listed in the table below.
Line 96: Line 96:  
             </ul>
 
             </ul>
 
         </td>
 
         </td>
     </tr>
+
     </tr>{{#ifeq: {{{io}}} | 1 |
 +
    <tr>
 +
        <td><b>I/O status</b></td>
 +
        <td><i>iostatus</i></td>
 +
        <td>Sends a status report message on the state of the device's inputs and outputs.</td>
 +
    </tr>|}}
 
     <tr>
 
     <tr>
 
         <td><b>Manage OpenVPN</b></td>
 
         <td><b>Manage OpenVPN</b></td>
Line 175: Line 180:  
         <td><b>Send status</b></td>
 
         <td><b>Send status</b></td>
 
         <td><i>status</i></td>
 
         <td><i>status</i></td>
         <td>Sends a status message from router with your chosen information.</td>
+
         <td>Sends a status report message.</td>
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
Line 195: Line 200:  
         <td><b>Switch mobile data</b></td>
 
         <td><b>Switch mobile data</b></td>
 
         <td><i>mobileoff</i></td>
 
         <td><i>mobileoff</i></td>
         <td>Turns mobile data usage off. After triggering rule, message "Mobile data is turned off using SMS utilities" should be seen in Overview and WAN pages.</td>
+
         <td>Turns mobile data usage off.</td>
 
     </tr>{{#ifeq: {{{wifi}}} | 1 |
 
     </tr>{{#ifeq: {{{wifi}}} | 1 |
 
     <tr>
 
     <tr>
Line 431: Line 436:  
===API rule===
 
===API rule===
 
----
 
----
The <b>API</b> rule is used to configure any parameters on the device.
+
API allows creating, reading, updating, or deleting configurations using the allowed API endpoints from a list.
    
[[File:Networking rutos manual mobile utilities sms utilities modify sms rule api v1.png|border|class=tlt-border]]
 
[[File:Networking rutos manual mobile utilities sms utilities modify sms rule api v1.png|border|class=tlt-border]]
Line 444: Line 449:  
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>api <b>get</b> <config>.<section>.<option_name></td>
+
         <td>api <b>get</b> <method>.<config>.<section></td>
         <td>Returns the value of a single configuration option.</td>
+
         <td>Returns specified config options.</td>
         <td><li><i>uci get network.wan.ipaddr</i></li>Returns the router's WAN IP address.</td>
+
         <td><li><i>api get /auto_reboot/periodic/config</i></li>Returns periodic reboot options.</td>
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>uci <b>set</b> <config>.<section>.<option_name>="value"</td>
+
         <td>api <b>post</b><method> <config>.<section>.<option_name>="value"</td>
 
         <td>Sets the value of a specified configuration option.</td>
 
         <td>Sets the value of a specified configuration option.</td>
         <td><li><i>uci set network.mobile.apn=example</i></li>Changes mobile APN value to "example".</td>
+
         <td><li><i>api post /auto_reboot/periodic/config {"data": {"action": "1", "period": "week", "days": ["mon"], "time": ["12:00"]}}</i></li>Creates a periodic reboot configuration with options to reboot device every monday on 12:00.</td>
    </tr>
  −
    <tr>
  −
        <td>uci <b>show</b> <config></td>
  −
        <td>Returns the contents of a config file</td>
  −
        <td><li><i>uci show openvpn</i></li>Returns the contents of the "openvpn" config file.</td>
   
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>uci <b>show</b> <config>.<section></td>
+
         <td>api <b>put</b> <method> <config>.<section>.<option_name>="value"</td>
         <td>Returns the exact part (section) of a config file.</td>
+
         <td>Edits a specified config options.</td>
         <td><li><i>uci show network.lan</i></li>Returns the configuration of the "lan" section from the "network" config file.</td>
+
         <td><li><i>api put /auto_reboot/periodic/config/{id} {"data": { "enable": "1"}}</i></li>Sets a specified periodic reboot config to enabled.</td>
 
     </tr>
 
     </tr>
<!--
   
     <tr>
 
     <tr>
         <td>uci <b>delete</b> <config>.<section></td>
+
         <td>api <b>delete</b> <method> <config>.<section>.<config_id></td>
         <td>Deletes the specified section in a configuration file. To avoid operation issues, please use this command to delete optional configuration sections only (not mandatory ones).</td>
+
         <td>Deletes a specified configuration.</td>
         <td><li><i>uci delete network.lan4</i></li>Deletes a network interface called "lan4".</td>
+
         <td><li><i>api delete /auto_reboot/periodic/config/{id}</i></li>Deletes a specified periodic reboot configuration.</td>
 
     </tr>
 
     </tr>
    <tr>
  −
        <td>uci <b>delete</b> <config>.<section>.<option_name></td>
  −
        <td>Deletes the specified configuration option. To avoid operation issues, please use this command to delete optional configuration options only (not mandatory ones).</td>
  −
        <td><li><i>uci delete dhcp.lan.force</i></li>Deletes the "force" option for DHCP server of the "lan" interface (which in turn disables the "Force DHCP" function of that DHCP server).</td>
  −
    </tr>
  −
-->
   
</table>
 
</table>
  

Navigation menu