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,360 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

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
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"