4219 questions

5218 answers

8038 comments

5224 members

0 votes
1,538 views 2 comments
by
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

1 Answer

0 votes
by

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
by
thank you for your answer.

will crontab be runned automaticaly at router reboot ?
by

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"