npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

stellar-socks

v0.2.1

Published

TCP server for interacting with a telescope via serial connection from planetarium software such as Stellarium and SkySafari.

Downloads

14

Readme

  _________ __         .__  .__                _________              __            
 /   _____//  |_  ____ |  | |  | _____ _______/   _____/ ____   ____ |  | __  ______
 \_____  \\   __\/ __ \|  | |  | \__  \\_  __ \_____  \ /  _ \_/ ___\|  |/ / /  ___/
 /        \|  | \  ___/|  |_|  |__/ __ \|  | \/        (  <_> )  \___|    <  \___ \ 
/_______  /|__|  \___  >____/____(____  /__| /_______  /\____/ \___  >__|_ \/____  >
        \/           \/               \/             \/            \/     \/     \/ 

Introduction

The inspiration for StellarSocks is to control my telescope via my mobile device. Many similar servers exist to allow remote connections or direct connections from a specific planetarium sofware application (e.g. Stellarium). My goal is to make this application telescope, planetarium software, and protocol agnostic.

This should run on any *nix or Windows server which supports NodeJS and has a serial connection to a telescope.

StellarSocks is still very much in its infancy. Since I know there are many astronomy enthusiasts looking for a solution, I decided to share as soon as I had something that works in a reasonably reliable fashion. I've tested this with my Celestron Nexstar 4SE using both Stellarium on my PC, and SkySafari Pro on my Samsung Galaxy S5. Please let me know what hardware and software you use this with, and contact me with the results (good or bad)!

Features

  • Accepts TCP connections on a configurable port
  • Interfaces with a telescope using a serial port (or USB)
  • Facilitates bidirectional communication between planetarium software and telescope

Planned Features

  • Graceful recovery for Communication failures
  • Interface with local camera and accept camera commands
  • Provide a web interface to view current telescope position and camera feed

Configuration

By default the server will open a TCP socket on port 5000, and connect to a telescope on /dev/ttyUSB0. To configure these values, change the configuration in config.json.

Installation

There's nothing much to this.

npm install stellar-socks

This application uses core libraries with the exception of serialport. Serialport may require specific installation steps but rather than repeating them here, I recommend reading voodootikigod's very detailed installation steps.

Usage

Complete the following steps:

  • Configure StellarSocks as described above for TCP port and serial device
  • Turn on your telescope
  • Connect the server hardware to the serial/RS-232 port on the telescope
  • Align your telescope
  • Run the application using the following command:
npm start

Troubleshooting

More to come here. For now, check the following:

  • Ensure nothing else is listenting on the TCP port you provide.
  • Ensure nothing else has a connection to the serial device
  • You must connect the serial device to the telescope before you start StellarSocks
  • If the serial connection is broken at any time, you will need to restart the service for now