CommonGarden/cg-usb-relay

Name: cg-usb-relay

Owner: Common Garden

Description: A modular relay driver for working with various usb-relay modules.

Created: 2017-11-19 01:31:45.0

Updated: 2017-11-19 01:32:30.0

Pushed: 2017-12-29 22:49:58.0

Homepage: null

Size: 13

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

cg-usb-relay

A modular relay driver for working with various usb-relay modules.

You'll need to install the usbrelay debian package for this to work

 apt-get install usbrelay
Usage
t relay = require('cg-relay');

urn relay 1 on
y.call('relay1_on');

urn relay 1 off
y.call('relay1_off')

urn all on
ODO

urn all off
ODO

onnect to Grow-IoT instance
y.connect({
host: 'grow.commongarden.org',
port: 443,
ssl: true


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.