Giter VIP home page Giter VIP logo

pysynscan's Introduction

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]

pysynscan's People

Contributors

nachoplus avatar farhi avatar wheirman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.