### Read Relay State via HTTP GET (curl) Source: https://wiki.teltonika-networks.com/view/RUT955_Input/Output This example demonstrates reading the state of a relay (e.g., `relay0`) using an HTTP GET request via curl. The command requires correct authentication credentials and the specific relay pin. ```shell curl -X GET "http://192.168.1.1/cgi-bin/io_value?username=user1&password=user1&pin=relay0" ``` -------------------------------- ### Copy Easy-RSA Configuration Example Source: https://wiki.teltonika-networks.com/view/How_to_generate_TLS_certificates_%28Ubuntu_18%29%3F Copies the example configuration file 'vars.example' to 'vars'. This creates a customizable configuration file for Easy-RSA. ```shell cp vars.example vars ``` -------------------------------- ### Read Isolated Input State via HTTP GET (curl) Source: https://wiki.teltonika-networks.com/view/RUT955_Input/Output This example shows how to retrieve the state of an isolated input using an HTTP GET request via curl. Ensure that the username, password, and pin (`iio`) are correctly configured on the device. ```shell curl -X GET "http://192.168.1.1/cgi-bin/io_value?username=user1&password=user1&pin=iio" ``` -------------------------------- ### Path Syntax Examples for Access Control Source: https://wiki.teltonika-networks.com/index_diff=prev&oldid=112210&title=RUTXR1_Administration Examples demonstrating how to define paths for read/write access control. The syntax includes direct paths, wildcard paths using asterisks (*), and appending specific sub-paths. ```plaintext services/vpn/ipsec ``` ```plaintext services/*** ``` ```plaintext ***** ``` -------------------------------- ### Control Output State via HTTP GET (curl) Source: https://wiki.teltonika-networks.com/view/RUT955_Input/Output This example demonstrates how to switch an output to a high state using the curl command with an HTTP GET request. Ensure your device's IP address, username, and password are correctly configured. ```shell curl -X GET "http://192.168.1.1/cgi-bin/io_state?username=user1&password=user1&pin=dout1&state=on" ``` -------------------------------- ### Access Path Examples for Group Settings Source: https://wiki.teltonika-networks.com/index_oldid=113843&title=RUTXR1_Administration Demonstrates how to define access paths for user groups in Teltonika Networks devices. Includes examples for specific pages, sub-pages, and wildcard usage. ```plaintext services/vpn/ipsec ``` ```plaintext services/***** ``` ```plaintext ***** ``` -------------------------------- ### Path Syntax Example for Services Menu Source: https://wiki.teltonika-networks.com/view/RUT951_Administration Illustrates the use of an asterisk (*) wildcard to include all pages within the 'Services' menu tab. This simplifies granting access to multiple related pages. ```text services/*** ``` -------------------------------- ### Read Analog Input State (Current) via HTTP GET (curl) Source: https://wiki.teltonika-networks.com/view/RUT955_Input/Output This example demonstrates reading the current of an analog input channel (e.g., `acl0`) using an HTTP GET request with curl. Proper authentication and pin designation are necessary for successful retrieval. ```shell curl -X GET "http://192.168.1.1/cgi-bin/io_value?username=user1&password=user1&pin=acl0" ``` -------------------------------- ### Read Digital Input/Output State via HTTP GET (curl) Source: https://wiki.teltonika-networks.com/view/RUT955_Input/Output This example demonstrates how to read the current state of a digital input or output using an HTTP GET request via curl. Replace `din1` or `dout1` with the relevant pin. Authentication details are required. ```shell curl -X GET "http://192.168.1.1/cgi-bin/io_value?username=user1&password=user1&pin=din1" ``` ```shell curl -X GET "http://192.168.1.1/cgi-bin/io_value?username=user1&password=user1&pin=dout1" ``` -------------------------------- ### Path Syntax Example for All WebUI Pages Source: https://wiki.teltonika-networks.com/view/RUT951_Administration Shows how to use a wildcard (*) to represent all pages in the WebUI. This is a powerful setting that, when combined with 'Read action: Deny', can prevent users from logging in. ```text ***** ``` -------------------------------- ### Read Digital Input State (Passive Sensors) via HTTP GET (curl) Source: https://wiki.teltonika-networks.com/view/RUT955_Input/Output This example demonstrates reading the state of a digital input specifically for passive sensors (e.g., `din2`) using an HTTP GET request via curl. Ensure proper authentication and pin specification. ```shell curl -X GET "http://192.168.1.1/cgi-bin/io_value?username=user1&password=user1&pin=din2" ``` -------------------------------- ### Verify Python Installation Source: https://wiki.teltonika-networks.com/index_feed=atom&hideredirs=1&limit=50&namespace=0&size=0&size-mode=max&title=Special%3ANewPages Creates a simple Python script named 'test.py' that prints 'Hello World from python!' and then executes it using the python3 interpreter to confirm the installation and functionality. ```bash echo 'print("Hello World from python!")' > test.py python3 test.py ```