INDI Library v1.9.5 Released (08 Mar 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

communication of status in indi roof drivers??

  • Posts: 2
  • Thank you received: 0
Hi Guys,

I have a question about the status communication within the indi_script_dome driver. There are a few python schripts available. Thos getappvalley.com/ e are doing basically nothing in regard to move the roof but obviously the communicating a current status of the roof like  "park.py":  tweakbox.mobi/

 > cat park.py  
# Park script for INDI Dome Scripting Gateway
# Arguments: none
# Exit code: 0 for success, 1 for failure

import sys

coordinates = open('/tmp/indi-status', 'w')
coordinates.write('1 0 0')


But I don't understand the meaning of the functions i.e. coordinates(). Can someone give a hint please?

Last edit: 4 months 2 weeks ago by CarlosBrathwaite.
4 months 3 weeks ago #78840

Please Log in or Create an account to join the conversation.

  • Posts: 224
  • Thank you received: 54
these template scripts are executed outside of Ekos, so any return value like the parking status (roof open or roof close) must be send to Ekos in some way.
In park.py, if parking is successful, the file 'indi-status' stores the value '1 0 0' ( '0 0 0' if roof open) then Ekos reads this value and so is aware of the parking status.
That's the meaning of the coordinates function.
4 months 2 weeks ago #78865

Please Log in or Create an account to join the conversation.

Time to create page: 0.400 seconds