GithubHelp home page GithubHelp logo

jeff-lewis / route Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bengoodger/route

0.0 2.0 0.0 529 KB

Home Automation

JavaScript 98.62% Shell 0.05% Python 1.23% AutoHotkey 0.05% AGS Script 0.05%

route's Introduction

Route

Home automation and event router http://route.io/

Examples

Getting started with Route is easy if you have JavaScript knowledge and the appropriate hardware. For example, here's a script that allows a single light switch button press to turn on multiple lights and your Sonos.

var insteon = route.addDevice({
  type : Insteon,
  name : "Insteon",
  init : {
    host : "10.0.1.120",
    devices : {
      "Switch" : "1F5450",
      "KitchenLights" : "1F32AA",
      "BedRoomLights" : "1FC81E",
    }
  }
});

var sonos = route.addDevice({
  type : Sonos,
  name : "Sonos",
  init : {
    host : "10.0.1.16",
  }
});

route.addEventMap({
  "Switch.Remote.On" : [
    "Insteon.BedRoomLights.On",
    "Insteon.KitchenLights.On",
    "Sonos.Play"
  ],
  "Switch.Remote.Off" : [
    "Insteon.BedRoomLights.Off",
    "Insteon.KitchenLights.Off",
    "Sonos.Pause"
  ]
});

You can see more usages in the examples

Installation

npm install route.io
npm install route.io-sonos
npm install route.io-web

route's People

Contributors

alcor avatar glenmurphy avatar andywarr avatar

Watchers

Jeff Lewis avatar James Cloos 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.