Skip to main content

pysynscan

A pure python3 implementation of skywatcher synscan motor protocol. Tested on SkyWatcher AZ-GTI mount and open-synscan project (https://github.com/vsirvent/Open-Synscan)

SkyWatcher made some of their code public in (https://github.com/skywatcher-pacific/skywatcher_open) even a C# !WinForm python interpreter application exist. See (https://code.google.com/archive/p/skywatcher/wikis/Programmable.wiki) but, been a special interpreter, python integration is limited. This project try to fill this gap.

Installation

From sources:

git clone https://github.com/nachoplus/pysynscan.git
python3 setup.py install

From pip:

pip install synscan

Use

By defaults connection parameters are:

SYNSCAN_UDP_IP=192.168.4.1
SYNSCAN_UDP_PORT=11880
SYNSCAN_LOGGING_LEVEL=INFO

This values can be changed via enviroment vars:

export SYNSCAN_UDP_IP=192.168.5.1
export SYNSCAN_UDP_PORT=11880
export SYNSCAN_LOGGING_LEVEL=WARNING

Code sample:

import synscan
'''Goto example'''
smc=synscan.motors()
#Synchronize mount actual position to (0,0)
smc.set_pos(0,0)
#Move forward and wait to finish
smc.goto(30,30,synchronous=True)
#Return to original position and exit without wait
smc.goto(0,0,synchronous=False)

More code examples are in examples directory.

Several CLI (command lines interface) are provided:

synscanGoto 32 10
synscanTrack 0 1
synscanStop
synscanWatch
synscanSync 10 12
synscanSwitch 1

Documentation

See the full documentation [https://nachoplus.github.io/pysynscan]

Metadata

Release files for synscan 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synscan 0.1.5
File Size Uploaded
synscan-0.1.5.tar.gz 11.7 kB Details

Release files / synscan-0.1.5.tar.gz

Download URL synscan-0.1.5.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d12271100d438f9dcef36ff0e1d29a45b9e9cc99250b771ab01d31e1814faf5a
BLAKE2b-256 checksum
How to use checksums
94050b2a99ca1d669b697bad6fe0aca5dea0b1a07472e6424f42115dd8e4ad1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page