×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Dome Scripting Gateway for a roll-off-roof?

  • Posts: 249
  • Thank you received: 62
hi Andres,

I've not been using this driver for a long time and I completely forgot that there are template scripts to implement.
The instructions are at the following link:
github.com/fenriques/indi/blob/master/li...dome/dome_script.txt

The bottom line is that the driver reads 3 digits from a file (/tmp/indi-status) every n seconds.
You just have to update those 3 digits. For example, 1 0 0 means park.
And in the same script you have to include your bluetooth commands.

ferrante

EDIT: Just to provide an example for your unpark.py:

<code>
...add bluetooth unpark commands here....
if bluetooth_unpark_response == "success":
str = str[0] + ' 1 ' + str[4:]
coordinates = open('/tmp/indi-status', 'w')
coordinates.truncate()
coordinates.write(str)
coordinates.close()
else:
sys.exit(0)
</code>

where str is the old status
The following user(s) said Thank You: Andres Rossi
Last edit: 3 years 6 months ago by Ferrante Enriques.
3 years 6 months ago #59941

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

  • Posts: 8
  • Thank you received: 1
You need to add the following to the bottom. ( taken from the example scripts ) you also need to exit the script in the right way to show that it completed successfully.

coordinates = open('/tmp/indi-status', 'w')
coordinates.truncate()
coordinates.write('0 0 0')
coordinates.close()
print("Fully Open")
sys.exit(0)
The following user(s) said Thank You: Andres Rossi
3 years 6 months ago #59945

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

  • Posts: 41
  • Thank you received: 4
SUCCESS people!!!

Taking Ferrante and Bundy's scripts as an example I managed to make it work !!! I am more than happy!!!
Thanks a lot, without your help I would not have made it.
Now I can automate my observatory much better.

Question: Is there another dirver similar to this one to run scripts but is it for a Roll Off Roof?

I also want to do something similar for my DIY dust cap and be able to include all these devices in my STARTUP and SHUTDOWN procedures. Is there any that I can use?

Thanks again
3 years 6 months ago #59959

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

  • Posts: 249
  • Thank you received: 62
Good job!As far as I know, no. In INDI Roll Off Roof drivers are a subset of Dome drivers: they share the same parent classes but with limited functionalities. E.g. no shutter, no CW / CCW rotation etc.
The following user(s) said Thank You: Andres Rossi
3 years 6 months ago #59960

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

Time to create page: 0.290 seconds