×

INDI Library v1.9.9 Released (30 Nov 2022)

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

Does anyone have a example start-up/shutdown script I can use?

  • Posts: 117
  • Thank you received: 1
Hi all,

I'm currently setting up a schedule for the a few nights imaging and I would like to use a start-up/shutdown script. from what I understand, they have to be written in python, which I don't know all that well. So I was wondering if someone had a script I could use. I realise it will be specific to their system but if I could use it as a starting point I could modify it to suit my set-up.

I'm running KStars from Windows with INDI on a RPI4 attached to my rig.

Here's what I'd like the script to do:

Start-up -
1. UnPark Mount
2. Warm camera to a specified temp

At this point the schedule should kick in and run my imaging

Shut-down -
1. Warm camera
2. Park mount

Thanks in advance

Rene
Sky-Watcher AZ-EQ6
Sky-Watcher Esprit 100
Sky-Watcher EvoGuide 50 (guide-scope)
ZWO ASI294MC Pro
ZWO ASI120MM mini (guide cam)
Pegasus PPB
Pegasus Focus Cube v2
2 years 7 months ago #52213

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

I presume on startup "Cool" camera to specific temperature? Except for this, the rest is already supported by the scheduler itself, no need for a script.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
2 years 7 months ago #52217

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

  • Posts: 117
  • Thank you received: 1
Hah, ha yes! Cool the camera of course. Thanks for the info.

So what function do the startup/shutdown scripts serve?

Rene
Sky-Watcher AZ-EQ6
Sky-Watcher Esprit 100
Sky-Watcher EvoGuide 50 (guide-scope)
ZWO ASI294MC Pro
ZWO ASI120MM mini (guide cam)
Pegasus PPB
Pegasus Focus Cube v2
2 years 7 months ago #52220

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

  • Posts: 4
  • Thank you received: 0
From www.indilib.org/individuals/ekos-kstars/...-ekos-scheduler.html it says the script can be any language that can be executed on the local machine.

"Startup and shutdown scripts can be written any language that can be executed on the local machine. It must return 0 to report success, any other exist value is considered an error indicator."

I'm working on startup/cooldown and shutdown/warmup scripts that are executable bash and work at the console, but I'm having issues running them in the context of Ekos. The startup script gives an error "cannot run startup procedure while indi devices are not online", but all my devices are online. Running the shutdown script starts and outputs to the indi console, so I know it is starting, but then it hangs. I suspect there's a detail I need to work out with permissions perhaps, but the odd thing is when I terminate the script, it keeps restarting again. I had to close kstars completely to get out of the loop.

Happy to share what I have working, but I'm hoping someone chimes in with some tips. I haven't found anything of relevance to the error I'm getting, and very little in the way of resources for these scripts other than that one online man page.
1 year 11 months ago #65437

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

  • Posts: 18
  • Thank you received: 3
8 months 1 week ago #81899

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

  • Posts: 39
  • Thank you received: 3
The start script that you are looking for could be realised in the scheduler. Maybe there is a better way, but this is how I do it: create a sequence (exposure time and number, gain etc ) and save it to a file, ending is *.esq. This is a text file, just open it with the text editor and look for the parameter 'force temperature '. Change status from false to true and enter the desired value, e.g. -10.0 and save the file. In the scheduler enter an object or load a reference frame to set the target coordinates and load the edited esq file. Keep slew, guide and track ticked and if applicable for your setup also focus. Add this sequence to the schedule and press play. When the job can be run, it slews to the target, focuses, starts guiding, cools the camera and starts the exposures.
Hope this is of help.
Alex

Gesendet von meinem SM-T510 mit Tapatalk
Standard setup: EQ6R, Williams Megrez 72- ASI 533MC -ZWO EAF, 50 mm viewfinder - ASI 120MM
8 months 5 days ago #81938

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

  • Posts: 39
  • Thank you received: 3
Sorry, tablet reported the post could not be sent, but it was, which I realised after pressing send 4 times.
Standard setup: EQ6R, Williams Megrez 72- ASI 533MC -ZWO EAF, 50 mm viewfinder - ASI 120MM
Last edit: 8 months 5 days ago by Alexander Weis. Reason: Can't seem to fully delete my repeated posts, sorry.
8 months 5 days ago #81939

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

  • Posts: 39
  • Thank you received: 3
Sorry, tablet reported the post could not be sent, but it was, which I realised after pressing send 4 times.
Standard setup: EQ6R, Williams Megrez 72- ASI 533MC -ZWO EAF, 50 mm viewfinder - ASI 120MM
Last edit: 8 months 5 days ago by Alexander Weis. Reason: Cannot fully delete my own post
8 months 5 days ago #81940

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

  • Posts: 39
  • Thank you received: 3
The start script that you are looking for could be realised in the scheduler. Maybe there is a better way, but this is how I do it: create a sequence (exposure time and number, gain etc ) and save it to a file, ending is *.esq. This is a text file, just open it with the text editor and look for the parameter 'force temperature '. Change status from false to true and enter the desired value, e.g. -10.0 and save the file. In the scheduler enter an object or load a reference frame to set the target coordinates and load the edited esq file. Keep slew, guide and track ticked and if applicable for your setup also focus. Add this sequence to the schedule and press play. When the job can be run, it slews to the target, focuses, starts guiding, cools the camera and starts the exposures.
Hope this is of help.
Alex

Gesendet von meinem SM-T510 mit Tapatalk
Standard setup: EQ6R, Williams Megrez 72- ASI 533MC -ZWO EAF, 50 mm viewfinder - ASI 120MM
8 months 5 days ago #81941

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

Time to create page: 1.042 seconds