Notice: Undefined offset: 0 in /var/www/html/qa-plugin/custom-override/pages/question.php on line 258

Notice: Trying to access array offset on value of type null in /var/www/html/qa-plugin/custom-override/pages/question.php on line 258
 RUT955 script - Crowd Support Forum | Teltonika Networks

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
2,328 views 2 comments
by anonymous
is it posible to define trought user script an function similar to Periodic control ( Chapter 9.20.3.6 Periodic Control)  for DOUT2 but with more line for specific dates from year not only for days of week?

Could you give example please?

Kind regards

Ionut LAR

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1604

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1605

1 Answer

0 votes
by anonymous

Hello,

It possible and you don't even need to write a script. You can use crontab for this. There is a guide on how to set up crontabs in Teltonika's Wiki.

To flip the value of DOUT2, you will need to use the gpio.sh command.

Best answer

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1604

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1605
by anonymous
thank you for your answer.

will crontab be runned automaticaly at router reboot ?
by anonymous

You don't even need to restart anything. It will work once you add the rule(s). Info from the cron man page:

"...cron will then examine the modification time on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab file is modified"