Python or CMD/.bat to control PegasusAstro via Unity API?
Posted: Sun Jul 02, 2023 4:01 pm
I am trying to write scripts to perform some basic tasks on my imaging equipment using the PegasusAstro Unity API. I found the API docs but have so far failed to get access to my Pegasus PowerBox Advance through Unity.
In particular, I'd like to be able to:
Check for dew conditions (relative humidity above a threshold)
Power off the PPBA at the end of the night if (and only if) the dew heater is no longer needed
Cycle power on camera or focuser (in case something won't connect)
Cycle USB3 Ports (in case something won't connect)
I see that Hans Kostense has published PyUPB to directly control the Pegasus Universal PowerBox, but I think that's the older (deprecated) API and won't work for PPBA anyway.
Does anybody know how to do this? Or better yet, can anybody provide example python or .bat scripts?
Many thanks!
Scott
In particular, I'd like to be able to:
Check for dew conditions (relative humidity above a threshold)
Power off the PPBA at the end of the night if (and only if) the dew heater is no longer needed
Cycle power on camera or focuser (in case something won't connect)
Cycle USB3 Ports (in case something won't connect)
I see that Hans Kostense has published PyUPB to directly control the Pegasus Universal PowerBox, but I think that's the older (deprecated) API and won't work for PPBA anyway.
Does anybody know how to do this? Or better yet, can anybody provide example python or .bat scripts?
Many thanks!
Scott