- Notifications
You must be signed in to change notification settings - Fork0
Cylon.js adaptor/driver for AT&T M2X
License
hybridgroup/cylon-m2x
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Cylon.js (http://cylonjs.com) is a JavaScript framework for robotics andphysical computing using Node.js
This repository contains the Cylon adaptor & driver for theAT&T M2X storage service.
Want to use Ruby on robots? Check out our sister project Artoo (http://artoo.io)
Want to use the Go programming language to power your robots? Check out our sister project Gobot (http://gobot.io).
Install the module with:
$ npm install cylon cylon-m2x
varCylon=require("cylon");Cylon.robot({connections:{m2x:{adaptor:"m2x",masterKey:"masterKey"}},devices:{m2xDevice:{driver:"m2x",id:"d9c3b48d3be2e..."}},work:function(my){varbaseTemp=20,temp=0;every(2000,function(){temp=Math.floor(Math.random()*6)+1+baseTemp;my.m2xDevice.publish("temp",temp,function(err,data){console.log("Err: ",err);console.log("Values: ",data);});});}}).start();
On theM2X site, sign up for an account, or log into your existing account.After doing so, create a new Device.The name of the device and details don't matter that much, but they should be meaningful.
With that done, inside the new Device, create a new Stream.This will be the data repository you can push and read values from Cylon.
Once that's done, you're good to go.Make sure to grab the Master API key from your account details page and Device ID from thedevices page.
Now you're ready to hook up Cylon to M2X!
We're busy adding documentation to our web site athttp://cylonjs.com/ please check there as we continue to work on Cylon.js
Thank you!
For our contribution guidelines, please go tohttps://github.com/hybridgroup/cylon/blob/master/CONTRIBUTING.md.
For the release history, please go tohttps://github.com/hybridgroup/cylon-m2x/blob/master/RELEASES.md.
Copyright (c) 2014-2015 The Hybrid Group. Licensed under the Apache 2.0 license.
About
Cylon.js adaptor/driver for AT&T M2X