Changes

1,433 bytes added ,  08:21, 23 August 2023
no edit summary
Line 11: Line 11:     
For the instruction on how to setup 1-Wire sensor with the TRB141 kindly navigate to this [[TRB141 1-Wire Setup/Configuration|article]] that we have.
 
For the instruction on how to setup 1-Wire sensor with the TRB141 kindly navigate to this [[TRB141 1-Wire Setup/Configuration|article]] that we have.
 +
 +
====Disclaimer====
 +
----
 +
1) This configuration together with the custom script is tested and written on the firmware version [https://wiki.teltonika-networks.com/images/1/1c/TRB1_R_00.07.04.2_WEBUI.bin TRB1_R_00.07.04.2] of TRB141. <br>
 +
2) The provided script is written for example purposes only as our devices, specifically TRB141, doesn't have a built-in functionality to send 1-wire data to a specific server.
 +
    
=== Writing the Script ===
 
=== Writing the Script ===
 +
----
 
Connect to the TRB141 CLI via SSH or WebUI.
 
Connect to the TRB141 CLI via SSH or WebUI.
   Line 109: Line 116:     
=== Output ===
 
=== Output ===
 +
----
 
[[File:Networking trb user scripts HTTP listener screenshot.png|800x800px|border|class=tlt-border]]]
 
[[File:Networking trb user scripts HTTP listener screenshot.png|800x800px|border|class=tlt-border]]]
   Line 115: Line 123:  
If configured correctly, you should be able to see the temperature data on your HTTP server.
 
If configured correctly, you should be able to see the temperature data on your HTTP server.
   −
==Example 2: filtering SMS messages==
  −
[[File:Configuration examples user scripts 1.png]]
     −
==Example 3: Mobile Parameters to HTTP Server==
+
==Example 2: Mobile Parameters to HTTP Server==
    
Mobile parameters are needed to measure signal features that can be acquired using  
 
Mobile parameters are needed to measure signal features that can be acquired using  
Line 128: Line 134:  
are required, and how to run it.
 
are required, and how to run it.
    +
If you're having trouble finding any page or some of the parameters described here on your device's WebUI, you should turn on '''"Advanced WebUI"''' mode. You can do that by '''clicking''' the '''"Basic"''' button '''under "Mode"''', which is located at the top-right corner of the WebUI.
 +
[[File:Networking rutx manual webui basic advanced mode v1.gif|border|class=tlt-border]]
    +
====Disclaimer====
 
----
 
----
* First you want to make sure that you have '''ADVANCED mode''' enabled. This will allow you to choose from a larger variety of settings.
+
1) This page describes a custom script that is tested on the latest firmware version at that time ([[RUTX14_Firmware_Downloads|RUTXXX_R_00_07_04_2]]).
[[File:Networking rutx manual webui basic advanced mode v1.gif|border|class=tlt-border]]
+
 
----
+
2) While we strive to keep the information accurate and up-to-date, these are exclusively meant for illustrative purposes only. It's important to clarify that the functionalities being discussed are not inherent features of our routers. Any reliance you place on the information within this document/website/article is strictly at your own discretion.
    
===Prerequisites===
 
===Prerequisites===
 
+
----
 
For this particular configuration you will need:
 
For this particular configuration you will need:
   Line 144: Line 153:     
===Preparation===
 
===Preparation===
 
+
----
 
* Prepare RUTX14, power up the device, insert the sim card, check that mobile interface is active and working. SIM1, PWR and signal strength indicators should light up.
 
* Prepare RUTX14, power up the device, insert the sim card, check that mobile interface is active and working. SIM1, PWR and signal strength indicators should light up.
    
'''Network -> Interfaces''' should look similar to this:
 
'''Network -> Interfaces''' should look similar to this:
   −
[[File:Screenshot 1.png|left]]
+
[[File:Blur1.png|border|center|1100px|class=tlt-border]]
    +
===Making a Directory and Script===
 +
----
   −
===Making a Directory and Script===
   
'''1.''' Connect to RUTX14 CLI using PUTTY or WEBUI.
 
'''1.''' Connect to RUTX14 CLI using PUTTY or WEBUI.
   −
'''2.''' Create a new directory for the custom script.
+
'''2.''' Create a new directory for the custom script with the following command: <code><span class="highlight">mkdir /etc/config/script</span></code> 
* mkdir /etc/config/scripts
     −
[[File:Screenshot 2.png|center]]
+
[[File:Directory.png|border|center|1000px|class=tlt-border]]
   −
'''3.''' Then create a new .sh file.
+
'''3.''' Then create a new .sh file: <code><span class="highlight">touch /etc/config/script/<filename>.sh</span></code>
*touch /etc/config/scripts/<filename>.sh
     −
[[File:Screenshot 3.png|center]]
+
[[File:Crop1.png|border|center|class=tlt-border]]
    +
'''4.''' To edit the filename, use <code><span class="highlight">vi <filename>.sh</span></code>. Press '''I'''. To save and exit, '''Press Esc''' then ''':x''' or to exit without saving, '''Press Esc''' then ''':q!'''.
   −
'''4.''' To edit the filename, use '''vi <filename>.sh'''. Press '''I'''. To save and exit, '''Press Esc''' then ''':x''' or to exit without saving, '''Press Esc''' then ''':q!'''.
+
[[File:Crop2.png|border|center|class=tlt-border]]
   −
[[File:Screenshot 4.png|center]]
+
'''5.''' After editing, save then run command <code><span class="highlight">chmod +x <filename></span></code> to make the script executable.
    +
[[File:Chmod3.png|border|center|class=tlt-border]]
   −
[[File:Screenshot 5.png|center]]
+
===Testing===
 +
----
 +
'''6.''' Run the script: <code><span class="highlight">/etc/config/script/<filename></span></code>  or if you are inside script directory just run <code><span class="highlight">./<filename></span></code>
    +
[[File:Exec.png|border|center|class=tlt-border]]
    +
'''7.''' If all configurations are correct, all parameters should be displayed in the HTTP Server
   −
'''5.''' After editing, save then run command '''chmod +x <filename>''' to make the script executable.
+
[[File:Blur2.png|border|center|class=tlt-border]]
    
===Script===
 
===Script===
 
+
----
 
To get a copy of the whole script, please refer to this [https://wiki.teltonika-networks.com/view/File:Script.pdf file].
 
To get a copy of the whole script, please refer to this [https://wiki.teltonika-networks.com/view/File:Script.pdf file].
  −
  −
===Testing===
  −
  −
'''6.''' Run the script.
  −
  −
* /etc/config/script/<filename> or if you are inside script directory just run ./<filename>
  −
  −
[[File:Screenshot 6.png|center]]
  −
  −
  −
  −
'''7.''' If all configurations are correct, all parameters should be displayed in the HTTP Server
  −
  −
[[File:Screenshot 7.png|center]]
 

Navigation menu