View Single Post
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#44
About the application: How would you like this to be configured?

It will be a daemon running as systemd service.

I was thinking that first approach would be simple; a directory with 12 shell script files which are:

sw1on.sh, sw1off.sh, sw2on.sh, sw2off.sh, ....

sw1on.sh is executed when dip 1 is turned on
sw2off.sh is executed when dip 2 is turned off

The UI would then be just for editing these scripts.

Daemon would run either as root or nemo, but there is issues with both accessing certain things of phone. Might need some consultation.

Comments?
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
 

The Following 3 Users Say Thank You to kimmoli For This Useful Post: