Changes

Line 363: Line 363:  
</ul>
 
</ul>
   −
Delay and time parameters can be used together.  
+
Delay and time parameters can be used together. For example, if delay is 10, time is 5, action is on, then 10 seconds after the execution of the command, the output will switch to <i>on</i> (or stay in <i>on</i> state if it was already that way), then after 5 more seconds it will switch to <i>off</i> state. In this case the overall command execution time is 15 seconds.
For example, if delay is 10, time is 5, action is on, then 10 seconds after the execution of the command,  
+
----
the output will switch to <i>on</i> (or stay in <i>on</i> state if it was already that way),  
+
To use Post/Get via SSH instead of a browser, you may want to use the <b><i>curl -X</i></b> command. Simply add the same URL command in between quotes and specify the HTTP method.
then after 5 more seconds it will switch to <i>off</i> state. In this case the overall command execution time is 15 seconds.
+
 
 +
<b>Examples:</b>
 +
 
 +
<ul>
 +
    <li><b>Switch output to High:</b><br><pre>curl -X GET "http://192.168.1.1/cgi-bin/io_state?username=user1&password=user1&pin=dout1&state=on"</pre></li>
 +
    <li><b>Switch output to Low after delay:</b><br><pre>curl -X GET "http://192.168.1.1/cgi-bin/io_state?username=user1&password=user1&pin=dout1&state=off&delay=5"</pre></li>
 +
</ul>
    
==Scheduler==
 
==Scheduler==

Navigation menu