it's controlled by a python script talking to an arduino by serial link. this script use named pipes to communicate with GUI and dome_script.
source code is available at github.com/christophecasson/ttfobservatory/tree/master/app

scripts to open/close the roof works when called manually, but status.py never gets any argument when called by indi_script_dome.
I have tested to put just the RunScript(int script, ...) code in a standalone c++ app to test it, ( github.com/christophecasson/ttfobservatory/tree/master/tests ) but it doesn't work (and i don't understand the code who handle args in RunScript() ).

If possible, i prefer using scripts rather than writing custom driver 'cause i want to keep things simple (and i'm not a good c++ programmer ;)

Read More...