Official Wait Safe and perpetual script

I developed for a user this DragScript to manage the observatory.
Running all nights and manage a roof with Viking and so many devices.

This is a complex script, isn’t really necessary to do all this thing to manage an observatory but is an example of how far you can push automation with Voyager.

At base of script there is the Wait Safe block and the dragscript restart block, generally the script wait for all night that the weather is ok to start sequencing.

I disabled the event from beginning and activate it only when the roof is opened to avoid bouncing from weather system.

I think its a good start for all so i considering this official , just to be inherits and tested.
To shutdown all an emergency virtual exit will be raised , a status variable report the status of current operations for report by mail and also a flag by counter report if shutdown is for emergency or just for finish night.

Not all blocks are opened on image but inside there is all the block to do the job.

Martin20200623_Rev1.vos (304.5 KB)

Discussion opened.
Obvius this dragscript is to test before use with reasonable safety and you must add your scheduler in Sequence block.

All the best

PS i will work on fastening open and execution of long DragScript


Thank you Leo, this is a game changer!

1 Like

Really nice Leo,

Thanks for sharing!

1 Like

If you leave in a place were there isnt the astronomical night or in thi period the astronomical night never happen, please switch the dedicate blocks to a nautical nights to avoid wait safe running forever

Excellent! It seems very comprehensive. I will study this to learn how to run my observatory.

1 Like

I’ve just used this as the basis for my script. Can someone explain the Check Mount Parked command? Assume this is using viking to check for something? Can we just use the park command? I dont have my mount power running through Eagle (and Viking) so cant check for power draw

I’m doing something very similar, requiring a wait for dusk before starting to connect power and getting ready for the evening.
My question is, if I do a ‘disconnect all’ at the end of the session, does that also disconnect the safety monitor ? I assume so, so I have to add a connect safety again or reloop to the top ‘wait for dusk’ to ensure the safety monitor is engaged ?

check mount parked is possible using digital input reading and reed sensor with Viking, thsi if your I/O card have digital input. This parts of the dragscript is suited for this, trusting the mount park command only is not enough to be safe.

“disconnect all” disconnect also the safety monitor but you are in dragscript night closing part so this is ok.
Using restart dragscript like in perpetual and connect only the safety monitor (there is a dedicated block for this) before starting the wait safe loop

I see the point about not connecting to safety monitor until intending to open the next time.