Hi there,
I just received the DragonFly from Lunatico ans started playing with it. I connected a light and a little motor (an fan) to relays and a proximity sensor.
The Indi driver in Kstars let's you turn on/off the relays and the sensor works well also.
Now I'd like to control the relays programmatically. After some research on the Net, I found the
pyindi-client
, which I installed (I'm doing all my tests on Kubuntu in a virtual environment).
There is a testindiclient.py script included in the library that I'm trying to tweak with my limited Python skills.
I managed to get the states (not sure about the exact naming/nomenclature) of the relays, but I fail to change them.
I basically would like to turn on the light if it's off, and vice versa. Or turn the motor on when the sensor get's triggered by a magnet. Very basic things I guess.
The problem is that there is no real and complete documentation out there (or I didn't find it).
My questions are:
- is this the right approach for scripting?
- if yes, how can I change states in python so to switch things on/off?
- is there others docs than the examples provided in pyindi-client?
Thanks for any help!
steve