GithubHelp home page GithubHelp logo

tcgerhard / isymonitor Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 17 KB

node.js app to provide alternate REST interface to UDI's ISY99(4)i Home Automation controller

JavaScript 95.15% CSS 1.88% HTML 2.98%

isymonitor's Introduction

isymonitor

node.js app to provide alternate REST interface to UDI's ISY99(4)i Home Automation controller

This app is very rough, lots of work still to do.

Installation:

  1. git clone https://github.com/tcgerhard/isymonitor.git
  2. npm install
  3. copy isyconfig-install.js to isyconfig.js
  4. edit isyconfig.js to include the hostname or IP address of your isy and change the credentials as needed

There is a very basic http listener on the port configured via isyconfig.httpPort. It supports the following:

  • /status -- provides a brief status message indicating startup time and last heartbeat received from the isy
  • /programs -- a barely formatted list of programs, using the naming format supported by other http commands
  • /devices -- displays a crude listing of known devices and their states, along with basic controls to control the device
  • /dev/i<dev addr>/<func> -- control a device where
    • <dev addr> is formatted like "12 34 BC 1"
    • <func> is an ISY function: DON, DOF, DIM, BRT
  • /prog/<pn>/how -- run a program. how = runIf, runThen, runElse
  • /prog/<pn> -- run a program (including conditions), where
    • <pn> is the program name, as formatted in the result from /programs
  • /programs/refresh -- requests a rebuild of the program list from the isy. Needed because the isy does not send an event when a program is added or renamed.
  • /variables -- returns a list of variables and associated state information
  • /variable/<vn> -- returns the value of variable named
  • /variable/<vn>/<newval> -- updates the value of a variable, where
    • <vn> is the variable name
    • <newval> is the new value for the variable

Notes:

  • Currently, isymonitor creates a TCP port and listens on that port for event data from the isy. This requires that the ISY be able to open a TCP connection to isymonitor, which may require firewall rule changes. At this version, you cannot specify the port for this connection; it is dynamically selected.

isymonitor's People

Contributors

tcgerhard avatar

Stargazers

Braden Napier avatar Shane McConnell avatar

Watchers

 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.