myswitch

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i myswitch

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • mizutani