×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

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  
#!/usr/bin/python
#
# 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.truncate()
coordinates.write('1 0 0')
coordinates.close()

sys.exit(0)

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

Thnaks
Last edit: 2 years 3 months ago by CarlosBrathwaite.
2 years 3 months ago #78840

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

  • Posts: 249
  • Thank you received: 62
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.
 
Ferrante
2 years 3 months ago #78865

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

Time to create page: 0.261 seconds