Skip to content
A Python API for the OnStep Telescope Controller, LX200 compatible
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Use the nomenclature in the Android App Jul 4, 2019
lx200 Adding files Jul 3, 2019
.gitignore Initial commit Jul 3, 2019
LICENSE Initial commit Jul 3, 2019 More fixes. Jul 3, 2019


A Python API for the OnStep Telescope Controller, LX200 compatible

Allows scripting of test scenarios, actual telescope motion, ...etc..

Requires Python3, and Python Serial.

Although this is written specifically for OnStep, it is mostly compatible with other LX200 telescopes, and can easily be adaptable to them.


Before using this API, you need to edit the examples/ Change the date/time, UTC offset, Latitude, Longitude, and the HOST IP address of your OnStep's WiFi. Instead of WiFi, you can use a USB serial port.

Quick Start

This method will present a menu for most of the example programs:

cd onstepy


The following sample programs are provided. Adapt them to your own needs:

  • - This enables tracking
  • - This starts a 1-Star Alignment procedure (select its RA/DEC in
  • - Return home
  • - Slew to a star
  • - Adjust the backlash on a terrestrial object
  • - Do a polar alignment using the :MP method
  • - Test if there is drift in RA (equatorial) and RA/DEC (Alt-Az)
  • - Monitor an ongoing test
  • - Report on an ongoing test
  • - Upload alignment points, with actual vs. instrument coordinates, and let OnStep do an alignment calculation
  • - Repeatedly do slews west and east of the meridian, then wait for tracking then repeat. Useful to test thermal shutdown, mount accuracy ...etc.


Khalid Baheyeldin

You can’t perform that action at this time.