<p>I use AutoHotKey scripts to control my observatory. As for the individual devices, cameras focusers etc I use the manufacturers software and control that software with Macro scripts.</p>

<p>I do some minor RS-232 control with AHK.</p>

<p>Below is a video of the scripts starting up my remote controlled observatory. </p>

<p>The video shows the two screens of the computer in the house as the scripts power up the observatory and start the four computers out there. Then load, position and make all the necessary software connection between the computers and equipment. </p>

<p>Example. The color bars of the cameras. The color bar shows the camera video and control connections are working and the script has turned on the color bars.</p>

<p>I use AHK to automate TheSky, MaximDL and a number of other apps. I have a script that will use Maxim to plate solve when finding objects. </p>

<p>I have no idea if or how Python fits in AHK but the question is here.</p>

<p><a href="https://www.youtube.com/watch?v=UN4VoOKOcXo&amp;feature=youtu.be" rel="nofollow noreferrer">https://www.youtube.com/watch?v=UN4VoOKOcXo&amp;feature=youtu.be</a></p>

<p>As I said you are watching the action from inside the house as the four computers in the observatory are powered up all the software is loaded.</p>

<p>You will probably need to watch it a few times before it makes much sense. What you see mostly are the windows of individual apps loading and being reposition. Individual setting in the windows are being changed but for the most part the screen is just too small to show everything.</p>

CC BY-SA 4.0
2020-04-03T23:43:19.623Z
This is quite a pleasure to watch, thank you for sharing! While AutoHotKey scripts probably can't download, process and evaluate an image and decide how adjust and set a new exposure time, it may be possible to use Python to *write AHK scripts* and execute them, thereby controlling Windows software such as [IC Capture](https://www.theimagingsource.com/support/downloads-for-windows/end-user-software/iccapture/) It doesn't sound like an elegant solution but it's worth considering.
uhoh
CC BY-SA 4.0
2020-04-03T19:56:00.870Z
2020-04-03T19:56:00.870Z
L d Bonnie
<p>I would like to read further about any successes that amateur astrophotographers (or professionals) have had with USB CCD cameras that are controlled by Python scripts. I'd like to script the setting of exposure time, triggering of exposures, downloading and processing of images.</p>

<p>Ideally this would be computer platform-agnostic.</p>

<p>I've recently asked <a href="https://astronomy.stackexchange.com/q/35678/7982">Python interface for DMK 23U274 USB camera for astrophotography</a> but the more I read about that the more I think that it's going to be tough running that particular camera from a Python script.</p>

<p>Where can I read further about this being done, or at least what solutions are known to exist?</p>

CC BY-SA 4.0
2020-04-03T04:34:44.537Z
I'm trying to figure out if this is something I can use, but despite the very nice web site I can't figure out if it is or not: https://www.indilib.org/about/features.html I see icons for Windows, MacOS and Linux which is encouraging.
uhoh
CC BY-SA 4.0
2020-04-03T06:11:49.630Z
https://www.theimagingsource.com/products/industrial-cameras/usb-3.0-monochrome/dmk23u274/ has a lot more ressources on that camera including SDKs
planetmaker
CC BY-SA 4.0
2020-04-03T06:45:19.427Z
@planetmaker Thanks, that will be even more relevant on the linked question about the DMK camera. If I were a C++ programmer running Windows those would be very useful, but it's hard to find a reliable Python interface for it.
uhoh
CC BY-SA 4.0
2020-04-03T08:46:19.273Z
Regarding interfacing between C/C++ and Python [this SO answer](https://stackoverflow.com/questions/5960791/c-c-interface-with-python) may be relevant.
StephenG - Help Ukraine
CC BY-SA 4.0
2020-04-03T09:00:56.053Z
It's quite common for amateur astronomers to run remote set-ups, so your problem definitely has an answer.  Whether people use python scripts I don't know.  There is plenty of ready made software available.  Have you looked at any amateur astro forums - eg stargazerslounge or cloudynights?
Dr Chuck
CC BY-SA 4.0
2020-04-03T10:22:35.643Z
@StephenG Thanks, unfortunately I'm a [one trick p̶o̶n̶y python](https://www.youtube.com/watch?v=zDylgpGHcic). After several years I can write modest scripts or use well documented packages, but anything outside of that I just don't have the programming skills or aptitude.
uhoh
CC BY-SA 4.0
2020-04-03T10:23:19.863Z
@DrChuck I'll try to take a look, thanks!
uhoh
<amateur-observing><photography><python>
Python controllable amateur astrophotography cameras?
uhoh
# Python controllable amateur astrophotography cameras?

(Asked by: username_0 on 2020-04-03)

I would like to read further about any successes that amateur astrophotographers (or professionals) have had with USB CCD cameras that are controlled by Python scripts. I'd like to script the setting of exposure time, triggering of exposures, downloading and processing of images.

Ideally this would be computer platform-agnostic.

I've recently asked [Python interface for DMK 23U274 USB camera for astrophotography](https://astronomy.stackexchange.com/q/35678/7982) but the more I read about that the more I think that it's going to be tough running that particular camera from a Python script.

Where can I read further about this being done, or at least what solutions are known to exist?

**Tags:** amateur-observing, photography, python
> **Comments:**
> **username_0**: I'm trying to figure out if this is something I can use, but despite the very nice web site I can't figure out if it is or not: https://www.indilib.org/about/features.html I see icons for Windows, MacOS and Linux which is encouraging.  
> **username_1**: https://www.theimagingsource.com/products/industrial-cameras/usb-3.0-monochrome/dmk23u274/ has a lot more ressources on that camera including SDKs  
> **username_0**: @planetmaker Thanks, that will be even more relevant on the linked question about the DMK camera. If I were a C++ programmer running Windows those would be very useful, but it's hard to find a reliable Python interface for it.  
> **username_2**: Regarding interfacing between C/C++ and Python [this SO answer](https://stackoverflow.com/questions/5960791/c-c-interface-with-python) may be relevant.  
> **username_3**: It's quite common for amateur astronomers to run remote set-ups, so your problem definitely has an answer.  Whether people use python scripts I don't know.  There is plenty of ready made software available.  Have you looked at any amateur astro forums - eg stargazerslounge or cloudynights?  
> **username_0**: @StephenG Thanks, unfortunately I'm a [one trick p̶o̶n̶y python](https://www.youtube.com/watch?v=zDylgpGHcic). After several years I can write modest scripts or use well documented packages, but anything outside of that I just don't have the programming skills or aptitude.  
> **username_0**: @DrChuck I'll try to take a look, thanks!  

---

## 1 answers

### Answer by username_4 on 2020-04-03. Score: 2

I use AutoHotKey scripts to control my observatory. As for the individual devices, cameras focusers etc I use the manufacturers software and control that software with Macro scripts.

I do some minor RS-232 control with AHK.

Below is a video of the scripts starting up my remote controlled observatory.

The video shows the two screens of the computer in the house as the scripts power up the observatory and start the four computers out there. Then load, position and make all the necessary software connection between the computers and equipment.

Example. The color bars of the cameras. The color bar shows the camera video and control connections are working and the script has turned on the color bars.

I use AHK to automate TheSky, MaximDL and a number of other apps. I have a script that will use Maxim to plate solve when finding objects.

I have no idea if or how Python fits in AHK but the question is here.

<https://www.youtube.com/watch?v=UN4VoOKOcXo&feature=youtu.be>

As I said you are watching the action from inside the house as the four computers in the observatory are powered up all the software is loaded.

You will probably need to watch it a few times before it makes much sense. What you see mostly are the windows of individual apps loading and being reposition. Individual setting in the windows are being changed but for the most part the screen is just too small to show everything.

> **Comments:**
> **username_0**: This is quite a pleasure to watch, thank you for sharing! While AutoHotKey scripts probably can't download, process and evaluate an image and decide how adjust and set a new exposure time, it may be possible to use Python to *write AHK scripts* and execute them, thereby controlling Windows software such as [IC Capture](https://www.theimagingsource.com/support/downloads-for-windows/end-user-software/iccapture/) It doesn't sound like an elegant solution but it's worth considering.  

---

