Hello,
While we do have scheduling options in the new WebUI, for short time periods it might be simpler to use a Crontab to enable/disable the I/O.
The command to enable the digital output will be
ubus call ioman.gpio.dout1 update '{"value":"1"}'
And to disable:
ubus call ioman.gpio.dout1 update '{"value":"0"}'
So for a Crontab, this bulky command could be used:
ubus call ioman.gpio.dout1 update '{"value":"1"}' && sleep 5 && ubus call ioman.gpio.dout1 update '{"value":"0"}'
It basically enables the digital output, waits 5 seconds, and disables the output. With a help of a Crontab, we can run it every hour, and the final syntax will look like this:
0 * * * * ubus call ioman.gpio.dout1 update '{"value":"1"}' && sleep 5 && ubus call ioman.gpio.dout1 update '{"value":"0"}' >/dev/null 2>&1
This entire line can be pasted into the crontab file (by running the crontab -e command via the CLI). To edit the file, press the i key. and to exit the VI editor press ESC key, colon (:) key, type wq, and press the ENTER key.
And that's it, the router will enable the digital output, will wait 5 seconds, and will disable the output again. This script will run every hour.
Hope this helps!
Best regards,
DaumantasG