FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14214 questions

16861 answers

27743 comments

54360 members

0 votes
181 views 1 comments
by
Just need some advise. I need similar functionality as "ping/wget reboot", but instead of rebooting I need the device to trigger a relay.

Is there any out of the box setup in admin panel I could use for this. Or is this a custom script I would need to deploy.

The device is TRB141.

Thank you.

1 Answer

0 votes
by

Hello, this is Martín, Tech Support Engineer for Teltonika Networks.

There is no out-of-the-box solution to achieve what you are looking for in a TRB141, however, we invite you to read our Wiki article which explains how to use the UCI commands on the Router, which can help you write your own script for the device which achieves this.

We also have an article on Crontabs, which explains how to execute the scripts on the device, and it has a couple of examples to get started.

Best regards.

by
Hi,

As Martin said in the previous comment, there's no out-of-the-box solution. However, You could try to deploy a custom script to set up the intended scenario working and use the crontab tool to periodically check the ping connection to the internet and trigger the script if the ping fails.

Below I will drop some helpful links regarding these subjects:

Crontab:

https://crontab-generator.org/

https://wiki.teltonika-networks.com/view/Crontabs#Crontab_syntax_and_editing_overview

Change Relay status from the command line:

https://wiki.teltonika-networks.com/view/TRB141_Input/Output#Status_from_command_line

I hope this help to solve your query.

Regards.