NOTE: This is a work in progress. It's been cloudy, so I haven't tested this code yet.
This software lets you send goto commands to the Dwarf II using Stellarium's Telescope Control.
Requires:
- Python
- Stellarium with Telescope Control plugin
- Dwarf II
This software setups up a TCP server. When you select an object Stellarium, and execute a slew command, Stellarium will send data about the object to this server. This server will take the right acension and declination data, and send a goto command to the Dwarf API via websockets.
-
Enable the Telescope Control plugin in Stellarium, and add a new telescope. Set "Telescope controlled by" to "External software or a remote computer". You can use the default settings for "Host" and "TCP port" for "Connection settings". Click 'OK' to create telescope. Select the newly added telescope, and click "Connect"
-
Download this repo
-
Install libraries
pip install -r requirements.txt
- Copy
config.sample.py
, and rename it toconfig.py
.
The HOST
and PORT
should be the same as those used in Stellarium Telescope Plugin.
Fill in your LATITUDE
and LONGITUDE
.
If you are using the Dwarf wifi, the DWARF_IP
is 192.168.88.1. If you are using Dwarf II in STA mode, then get the IP for your Dwarf II.
DEBUG = True
will print all the messages sent between Stellarium and Dwarf II. Set to DEBUG = False
- Start server
python server.py
- Select an object in Stellarium, and issue a slew command. The Dwarf II should move to that object.