Line 124: |
Line 124: |
| Below is a table containing syntax examples of this usage: | | Below is a table containing syntax examples of this usage: |
| | | |
− | <table class="nd-othertables_2">
| + | {{Template:Networking_{{#ifeq:{{{name}}}|RUT955|{{lc:{{{name}}}}}|{{lc:{{{series}}}}}}}_manual_input_output_post_get_examples_table|name={{{name}}}}} |
− | <tr>
| |
− | <th style="width: 500px">Action</th>
| |
− | <th style="width: 900px">POST/GET URL</th>
| |
− | </tr>
| |
− | <tr>
| |
− | <td>Turn output on</td>
| |
− | <td><nowiki>http://192.168.1.1/cgi-bin/output?username=user1&password=user1&</nowiki><span style="color: #0054a6;><b>action=on</b></span><nowiki>&pin=pin2</nowiki></td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td>Turn output off</td>
| |
− | <td><nowiki>http://192.168.1.1/cgi-bin/output?username=user1&password=user1&</nowiki><span style="color: #0054a6;><b>action=off</b></span><nowiki>&pin=pin2</nowiki></td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td>Turn output on after a 10 second delay</td>
| |
− | <td><nowiki>http://192.168.1.1/cgi-bin/output?username=user1&password=user1&action=on&pin=pin2&</nowiki><span style="color: #0054a6;><b>delay=10</b></span></td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td>Turn output on for 5 seconds</td>
| |
− | <td><nowiki>http://192.168.1.1/cgi-bin/output?username=user1&password=user1&action=on&pin=pin2&</nowiki><span style="color: #0054a6;><b>time=5</b></span></td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td>Turn output on for 5 seconds after a 10 second delay</td>
| |
− | <td><nowiki>http://192.168.1.1/cgi-bin/output?username=user1&password=user1&action=on&pin=pin2&</nowiki><span style="color: #0054a6;><b>delay=10&time=5</b></span></td>
| |
− | </tr>
| |
− | </table>
| |
| | | |
| <b>Overview</b>: | | <b>Overview</b>: |
Line 157: |
Line 132: |
| <li>password- password from Post/Get configuration.</li> | | <li>password- password from Post/Get configuration.</li> |
| <li>action- the action that will be performed on the output (can be <i>on</i> or <i>off</i>).</li> | | <li>action- the action that will be performed on the output (can be <i>on</i> or <i>off</i>).</li> |
− | <li>pin - specifies the output (use <i>pin2</i>).</li> | + | <li>pin - specifies the output (use <i>oc</i>{{#ifeq:{{{name}}}|RUT955| or <i>relay</i>|}}).</li> |
| <li>delay - defines a delay (in seconds) after which the specified action will be performed.</li> | | <li>delay - defines a delay (in seconds) after which the specified action will be performed.</li> |
| <li>time - defines a window of time during which the action will take place. For instance, if you post an <i>on</i> action while specifying <i>time=5</i>, the output will turn on and stay on for 5 seconds before turning off.</li> | | <li>time - defines a window of time during which the action will take place. For instance, if you post an <i>on</i> action while specifying <i>time=5</i>, the output will turn on and stay on for 5 seconds before turning off.</li> |