ASCOM Alpaca telescope control from Python
telescopeyoke reaches another maker's mount, camera, filter wheel and focuser through their ASCOM drivers over Alpaca, HTTP and JSON on the network, and guides through PHD2.
In the 0.4.1 release; tried on ASCOM's simulator only, no real device yet · updated 20 November 2026
telescopeyoke started on one telescope, mine, talking to a Sky-Watcher handset and an Altair camera directly. ASCOM Alpaca is how it reaches everyone else’s: any mount, camera, filter wheel or focuser with an ASCOM driver, on the same computer or a Windows one on the network, spoken to over HTTP and JSON from Python. Guiding goes through PHD2.
Everything that goes through Alpaca goes through the same motion lock, limits and dry runs as my own mount.
Setting it up
In config.toml:
[mount]
link = "alpaca"
address = "192.168.1.20:11111" # each device its own address and number,
device = 0 # as ./alpaca.py find lists them
[camera]
backend = "alpaca"
address = "192.168.1.20:11111"
device = 0
[filterwheel]
backend = "alpaca"
address = "192.168.1.20:11111"
device = 0
[focuser]
backend = "alpaca"
address = "192.168.1.20:11111"
device = 0
[imaging]
gain = 100 # in this camera's own units
[guider]
backend = "phd2"
The addresses are an example. Each section needs its own address: without one it’s refused, never guessed. The gain in the example config that comes with it (1500) is my camera’s. A gain outside your camera’s range, or not one of its named gains, is refused rather than moved into range.
./alpaca.py find lists the Alpaca servers and their devices, and nothing is ever picked from that list by itself. Setting alpaca_name to the driver’s name makes a different telescope at that address a refusal, and a GoTo is refused until the driver has this computer’s site and clock (./mount.py settime).
What has run, on ASCOM’s simulator only
- Mount: GoTo on both sides of the pier, a stop in mid-slew, home, and RA and Dec rates.
- Camera: frames full and 2×2 binned, mono, by ImageBytes or JSON, and a short imaging run end to end. Cooling is left to the driver’s own program.
- Filter wheel: by name and by number.
- Focuser: out and back to the step, and its temperature.
- Guiding by PHD2: guide, dither, stop around GoTos, and each frame’s guiding measured from PHD2’s own steps. A guided run never carries on unguided.
How far it’s proven
I built it on 19 November 2026 and it went into the 0.4.1 release the next morning. It has been tried only against ASCOM’s own Alpaca simulator (OmniSim 0.4.0) and a pretend PHD2. No real device yet. If you try it on yours, watch it the first time. A hardware report from a real mount would move it on more than anything else. ASCOM and PHD2 have nothing to do with telescopeyoke and don’t endorse it.