Changes

2,944 bytes added ,  11:04, 25 October 2018
Line 915: Line 915:  
{| class="wikitable"  
 
{| class="wikitable"  
 
|+ style="text-align: left;" | UCI API
 
|+ style="text-align: left;" | UCI API
! style="width: 250px; background: black; color: white;" | Field name
+
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | FIELD NAME
! style="width: 500px; background: black; color: white;" | Description
+
! style="width: 500px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
! style="width: 950px; background: black; color: white;" | Explanation, notes
+
! style="width: 950px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | EXPLANATION, NOTES
 
|-
 
|-
! style="text-align: left; vertical-align: top;" | Enable
+
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Enable
| style="vertical-align: top;" | This check box will enable or disable the UCI API function
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | This check box will enable or disable the UCI API function
| style="vertical-align: top;" | Allows you to set or get any configurations from the router
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Allows you to set or get any configurations from the router
 
|-
 
|-
! style="text-align: left; vertical-align: top;" | Action
+
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Action
| style="vertical-align: top;" | The action to be performed when this rule is met.  
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | The action to be performed when this rule is met.  
| Sets or sends you any specified configurations of the router
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Sets or sends you any specified configurations of the router
 
|-
 
|-
! style="text-align: left; vertical-align: top;" | SMS text
+
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | SMS text
| style="vertical-align: top;" | SMS text that will trigger the rule
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | SMS text that will trigger the rule
| style="vertical-align: top;" | SMS text can contain letters, numbers, spaces and special symbols. Capital letters also matter
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | SMS text can contain letters, numbers, spaces and special symbols. Capital letters also matter
 
Default text: '''uci'''
 
Default text: '''uci'''
    
'''Detailed explanations on how to use this function are presented in the table below'''
 
'''Detailed explanations on how to use this function are presented in the table below'''
 
|-
 
|-
! style="text-align: left; vertical-align: top;" | Authorization method
+
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Authorization method
| style="vertical-align: top;" | What kind of authorization to use for SIM management
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | What kind of authorization to use for SIM management
| style="vertical-align: top;" | Possible values:
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Possible values:
 
No authorization {{!}} By serial {{!}} By router admin password; Default: '''By router admin password'''
 
No authorization {{!}} By serial {{!}} By router admin password; Default: '''By router admin password'''
 
|-
 
|-
! style="text-align: left; vertical-align: top;" | Allowed users
+
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Allowed users
| style="vertical-align: top;" | White list of allowed users
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | White list of allowed users
| style="vertical-align: top;" | Possible values:
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Possible values:
 
From all numbers {{!}} From group {{!}} From single number; Default: '''From all numbers'''
 
From all numbers {{!}} From group {{!}} From single number; Default: '''From all numbers'''
 
|-
 
|-
Line 950: Line 950:  
{| class="wikitable"  
 
{| class="wikitable"  
 
|+ style="text-align: left;" | UCI API syntax
 
|+ style="text-align: left;" | UCI API syntax
! style="width: 250px; background: black; color: white;" | Syntax
+
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | SYNTAX
! style="width: 500px; background: black; color: white;" | Description
+
! style="width: 500px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
! style="width: 950px; background: black; color: white;" | Default message example
+
! style="width: 950px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DEFAULT MESSAGE EXAMPLE
 
|-
 
|-
! style="text-align: left; vertical-align: top;" | uci get config.section.option"
+
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | uci get config.section.option"
| style="vertical-align: top;" | Returns config option value
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Returns config option value
| style="vertical-align: top;" | '''uci get network.wan.ipaddr''' - returns the router's WAN IP address
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | '''uci get network.wan.ipaddr''' - returns the router's WAN IP address
 
|-
 
|-
! style="text-align: left; vertical-align: top;" | uci set config.section.option="value"
+
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | uci set config.section.option="value"
| style="vertical-align: top;" | Sets config option
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Returns config option value
| style="vertical-align: top;" | '''uci set wireless.wifi-iface.key="12345678"''' - sets WiFi interface's password to 12345678
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | '''uci set wireless.wifi-iface.key="12345678"''' - sets WiFi interface's password to 12345678
 
|-
 
|-
! style="text-align: left; vertical-align: top;" | uci show config
+
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | uci show config
| style="vertical-align: top;" | Returns the contents of a config file
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Returns the contents of a config file
| style="vertical-align: top;" | '''uci show openvpn''' - returns the contents of the openvpn config file
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | '''uci show openvpn''' - returns the contents of the openvpn config file
 
|-
 
|-
! style="text-align: left; vertical-align: top;" | uci show config.section
+
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | uci show config.section
| style="vertical-align: top;" | Returns the exact part of a config file (either section or the exact option value)
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Returns the exact part of a config file (either section or the exact option value)
| style="vertical-align: top;" | '''uci show network.ppp''' - returns the contents of the ppp interface section from the network config file
+
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | '''uci show network.ppp''' - returns the contents of the ppp interface section from the network config file
 
|-
 
|-
 
|}
 
|}

Navigation menu