´╗┐
×

INDI Library v1.9.6 Released (Yesterday)

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

Dome Scripting Gateway for a roll-off-roof?

  • Posts: 415
  • Thank you received: 73
Would it be possible to use the Dome Scripting Gateway driver to control a roll off roof? Anyone doing this?
I understand that I would have to write a few scripts for connect, open, close, park, unpark, abort etc.

I have a custom indi driver for my roof but I'm looking to reduce the number of custom compiled drivers I have and use the ones that come with indi as much as possible.

Thanks,
Derek
Celestron C11 iOptron CEM120 Atik 383L
HP8300 Elite i5 running Xubuntu, Indi, Kstars & Ekos
Roll off roof observatory
Battling Irish weather
github.com/dokeeffe
twitter.com/BallyhouraStars
3 years 3 months ago #35227

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

  • Posts: 224
  • Thank you received: 54
hi Derek,
I used dome scripting gateway to control a roll off roof for one year. Yes, you have to write scripts (I used python) to control it.
Of course only open / close functionalities have to be implemented by the scripts. And write dummy scripts for controls that remain unused.
If you want to have control on the roof from other INDI / Ekos services (like the scheduler or the weather station) remember to use park and unpark as controls to open / close (and not open / close shutter).
Btw in case your roll off roof is a Talon, I'm writing an INDI driver for it.

Ferrante
The following user(s) said Thank You: Derek
3 years 3 months ago #35236

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

  • Posts: 415
  • Thank you received: 73
Thanks Ferrante,
Thanks for the tip on park/unpark too as I do use the scheduler a lot!!
My roof isnt a Talon Its a home made custom thing made from an electric hoist I bought in Aldi (github.com/dokeeffe/indi-aldiroof)

Sometimes when I update INDI I have to recompile my driver and/or make small code tweaks to it so I'm thinking of using the built-in drivers as much as possible.
Derek
Celestron C11 iOptron CEM120 Atik 383L
HP8300 Elite i5 running Xubuntu, Indi, Kstars & Ekos
Roll off roof observatory
Battling Irish weather
github.com/dokeeffe
twitter.com/BallyhouraStars
3 years 3 months ago #35238

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

  • Posts: 224
  • Thank you received: 54
Or you can write a tutorial for an Arduino Roll Off Roof and ask Jasem to pull your code in the main repository.
I think that someone could benefit from your experience and use it as a guide.

Ferrante
The following user(s) said Thank You: Derek
3 years 3 months ago #35243

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

  • Posts: 278
  • Thank you received: 17
I use this, where the scripts communicate with a 'roof server' I wrote in python that is running outside indi.
The following user(s) said Thank You: Derek
3 years 3 months ago #35248

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

  • Posts: 39
  • Thank you received: 3
Hi Ferrante,
I'm trying to use Dome Dcripting Gateway driver to control my roll off roof too.
I wrote a python script that use the on board Rpi Bluetoooth to send an open/close command to an ArduinoNano board connected to my motor controller. If I execute this script, is a Python 3 script by the way (to import and use Bluetooth library) in the console works fine, but when I tried to use the same script in "unpark.py" to execute via Dome Scripting Gateway it didn't work.
What I'm doing wrong? Any idea?
Thanks

Andres
1 year 8 months ago #59891

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

  • Posts: 224
  • Thank you received: 54
hi Andres,

I'm not using the Dome Scripting Gateway since a long time now. And trying to launch it from the nightly Kstars / Ekos version it raises an error and doesn't start.


Anyway, have you checked the right user / permission on the script?
Can you share the driver log and the source of the script? that could help to understand what is the issue.

Ferrante
1 year 8 months ago #59912

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

  • Posts: 39
  • Thank you received: 3
Hi Ferrante, thanks for the answer.
I set the permission to execute the scripts to "Anybody", the scripts are in /usr/share/indi/scripts folder. I that folder I've created 11 scripts (onr for each command for the driver), 9 of them are empty to be dummies (I don't know if doing it like this is correct) and only the unpark.py and park.py scripts have sourde code. Is the first time I'm doing this and I have no idea if the driver could run any type of python scripts or there is a typical source or some "rules" I have to follow.
The code is pretty simple, just it open a socket via bluetooth and send a command to the Arduino board.
Could not get the driver log, I tried to enable the logs from the Ekos profile but the logs folder is always empty no matter how I configure it.
Anyway, I attach the driver message on the INDI control panel if this help.

Thanks!
Andres
Last edit: 1 year 8 months ago by Andres Rossi.
1 year 8 months ago #59926
Attachments:

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

  • Posts: 1941
  • Thank you received: 416
Andres,

Check all devices that you need to access (most likely in the /dev directory) and make sure that your user is part of the group that is allowed to access it.


HTH, Wouter
Wouter van Reeven

ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chr├ętien on a SkyWatcher EQ6-R
1 year 8 months ago #59928

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

  • Posts: 39
  • Thank you received: 3
I think the only devices that I have yo access is the Bluetooth module, in the script I created a BT socket and use RFCOMM. In the /dev folder the only similar is rfcomm0 file and I seted permissions for anybody, but still not working :/

Is my first time doing this kind of python scripts. If I run the script in the console works fine.

Andres
1 year 8 months ago #59929

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

  • Posts: 224
  • Thank you received: 54
hi Wouter,
Andres is able to execute the unpark script from command line so the script should already have the right user/group permissions on the connected devices.
On the other hand, it could be that the indi user and the script user belong to different groups.

Andres, just to understand if it's the script or the driver: what is the output if in your script you only write in it:
print('ok')
1 year 8 months ago #59930

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

  • Posts: 39
  • Thank you received: 3
Ferrante,
If I run the script with the console de output is "ok" (without quotation marks).
If I run with the driver (park.py) an error message appears (as with the original script) [ERROR] Failed to park.

Would I need a STATUS or CONNECT script that is not a dummy?

Last edit: 1 year 8 months ago by Andres Rossi.
1 year 8 months ago #59932
Attachments:

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

Time to create page: 0.742 seconds