Hello,
Thank you for your suggestion.
Could you please provide more details on how do you want to receive the input state?
Configuring periodic processes, such as yours, should be relatively simple. It does indeed require a script in combination with crontabs functionality.
To retrieve the input state, the following command can be used:
- ubus call ioman.gpio.dioX status
Replace X with values 0, 1 or 2, depending on the output used.
Example of script sending SMS about input state can look the following:
#!/bin/ash
TEXT=$(ubus call ioman.gpio.dio1 status | grep value)
gsmctl -S -s "0037060000000 $TEXT"
How to setup crontabs, to execute the script periodically, please refer
here.
The script can be edited to have infinite while loop with sleep function to define the frequency of command execution and placed in System -> Custom scripts page to run in the background upon device boot.
Best regards,