FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
309 views 1 comments
by anonymous
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 anonymous

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 anonymous
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.