Changes

no edit summary
Line 123: Line 123:     
==Output==
 
==Output==
 +
 +
===On/Off===
 +
----
 +
The ON/OFF section is used to turn the output on or off, but it doesn't save the state permanently, meaning that after a reboot the state will revert back to its default value.
 +
 +
[[File:{{{file_output_on_off}}}]]
 +
 +
===Post/Get configuration===
 +
----
 +
Enabling <b>Post/Get</b> will allow you to send HTTP POST/GET requests to the router that control the state of the output.
 +
 +
[[File:{{{file_output_post_get}}}]]
 +
 +
<table class="nd-mantable">
 +
    <tr>
 +
        <th>Field</th>
 +
      <th>Value</th>
 +
      <th>Description</th>
 +
    </tr>
 +
    <tr>
 +
      <td>Enable</td>
 +
      <td>off | on; default: <b>off</b></td>
 +
      <td>Turns Post/Get on or off.</td>
 +
    </tr>
 +
    <tr>
 +
      <td>Username</td>
 +
      <td>string; default: <b>none</b></td>
 +
      <td>Username used for authentication in POST/GET queries.</td>
 +
    </tr>
 +
    <tr>
 +
    <td>Password</td>
 +
        <td>string; default: <b>none</b></td>
 +
        <td>Password used for authentication in POST/GET queries.</td>
 +
    </tr>
 +
</table>
 +
 +
====Post/Get examples====
 +
----
 +
It is possible to turn the output on and off by using a valid HTTP POST/GET syntax. Use a web browser or any other compatible software to submit HTTP POST/GET strings to the device.
 +
 +
Below is table containing syntax examples of this usage:
 +
 +
<table class="nd-othertables_2">
 +
    <tr>
 +
        <th style="width: 500px">ACTION</th>
 +
      <th style="width: 900px">POST/GET URL EXAMPLE</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>
 +
 +
[[Category:{{{name}}} WebUI]]

Navigation menu