0.0.15 • Published 3 years ago

@atoy40/indijs v0.0.15

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

INDIjs

INDIjs is a nodejs binding of the INDI library. INDI Library is an Open Source Architecture for Control & Automation of Astronomical Devices. It only binds the client part of the library but device part will be added soon.

Install

You'll need INDI library and headers to be able to compile.

npm install [-g] @atoy40/indijs

If you've installed it globally, you can use the simple CLI tool :

indijs-cli localhost

Usage

import { Client } from "@atoy40/indijs";

const client = new Client("localhost");

client
  .on("connected", () => { /* code */ })
  .on("disconnected", (reason_code) => { /* code */ })
  .on("newDevice", (device) => { /* code */ })
  .on("removeDevice", (devname) => { /* code */ })
  .on("newProperty", (property) => { /* code */ })
  .on("removeProperty", (propname, devname) => { /* code */ })
  .on("newNumber", (n) => { /* code */ })
  .on("newSwitch", (s) => { /* code */ })
  .on("newText", (t) => { /* code */ })
  .on("newLight", (l) => { /* code */ })
  .on("newBLOB", (buffer) => { /* code */ })
  .on("newMessage", (device, messageID) => { /* code */ })

client.connect().then(() => {
  console.log("connected...");
});

A simple example switching the telescope track state is available in examples/ folder.

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago