0.2.0 • Published 8 years ago

myswitch v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

mySwitch

mySwitch is event hub server to manage home sensors and IoT devices.

Example usage

Install by npm command.

$ npm install -g myswitch

A configuration file as YAML is required. Following sample conf.yml detects a device that has NIC 4C:57:CA:XX:XX:XX connects to the network, then turn on hue lights of 10.0.0.136.

event:
  name: join-network
  device: en0
  target: 4C:57:CA:XX:XX:XX
action:
  name: turn-on-hue
  bridge: 10.0.0.136
  user: N8CHJNdmFPfFDUhTTlDMZDGrdXXXXXXXXXXXXXXXX
  target: [1, 2]

Then, run myswitch command.

$ myswitch serve conf.yml