Others¶
/stm.cgi?lk3restart=1¶
-
Restart the device.
GET /stm.cgi?lk3restart=1
Example:
http://192.168.1.100/stm.cgi?lk3restart=1
/stm.cgi?restart_power_on=1¶
-
Set a restart flag for the function confirming whether the device has been restarted or not. The flag is stored in the variable
<!--#restart-->
available inrestart
in/json/status.json
.GET /stm.cgi?restart_power_on=1
Example:
http://192.168.1.100/stm.cgi?restart_power_on=1
/outs.cgi?voutA=B¶
Added in LC3.5+ SW 1.36
-
Set the state of the virtual event (binary variable).
GET /outs.cgi?voutA=B
A
is index of event EVENT1-EVENT8, integer0-7
B
is the state to be set, integer0-1
Example:
http://192.168.1.100/outs.cgi?vout0=1
Status pages¶
/post.cgi?pictureupload¶
-
Upload picture for use in Status for user page.
POST /post.cgi?pictureupload A
A
is binary file (image)
/stm.cgi?delpicture=0¶
-
Remove the picture from Status for user page.
GET /stm.cgi?delpicture=0
Example:
http://192.168.1.100/stm.cgi?delpicture=0
/stm.cgi?postop¶
-
Set the top offset for elements on the Status for user page.
GET /stm.cgi?postop=0*A
A
is a list of values for the top offsets, a chain of 43 integers separated by*
Example:
http://192.168.1.100/stm.cgi?postop=0*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1
/stm.cgi?posleft¶
-
Set the left offset for elements on the Status for user page.
GET /stm.cgi?posleft=0*A
A
is a list of values for the left offsets, a string of 43 integers separated by*
Example:
http://192.168.1.100/stm.cgi?posleft=0*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1*-1
/stm.cgi?echeck¶
-
Set the visibility of items on the Status page.
GET /stm.cgi?echeck=A
A
determines which elements are visible on Status page, chain of 87 integers0-1
Example:
http://192.168.1.100/stm.cgi?echeck=111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
Variables¶
/eeprom.cgi?bitA=B¶
-
Set a one-bit variable.
GET /eeprom.cgi?bitA=B
A
is a position, integer0-7
B
is a value, integer0-1
Example:
http://192.168.1.100/eeprom.cgi?bit1=0
/eeprom.cgi?bajtA=B¶
-
Set a single byte variable.
GET /eeprom.cgi?bajtA=B
A
is a position, integer0-3
B
is a value, integer-128 - 127
Example:
http://192.168.1.100/eeprom.cgi?bajt0=127
/eeprom.cgi?wordA=B¶
-
Set a two-byte variable.
GET /eeprom.cgi?wordA=B
A
is a position, integer0-3
B
is a value, integer-32768 - 32767
Example:
http://192.168.1.100/eeprom.cgi?word0=0
/eeprom.cgi?dwordA=B¶
-
Set a four-byte variable.
GET /eeprom.cgi?dwordA=B
A
is a position, integer0-3
B
is a value, integer-2147483648 - 2147483647
Example:
http://192.168.1.100/eeprom.cgi?dword0=0
/eeprom.cgi?stringA=B¶
-
Set a string variable.
GET /eeprom.cgi?stringA=B
A
is a position, integer0-1
B
is a value, a string of up to 15 characters
Example:
http://192.168.1.100/eeprom.cgi?string0=VARIABLE