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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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
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