Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Cylon.js adaptor/driver for AT&T M2X

License

NotificationsYou must be signed in to change notification settings

hybridgroup/cylon-m2x

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).

Build StatusCode ClimateTest Coverage

How to Install

Install the module with:

$ npm install cylon cylon-m2x

How to Use

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();

How to Connect

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.

Create New Device

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.

New Stream

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!

Documentation

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!

Contributing

For our contribution guidelines, please go tohttps://github.com/hybridgroup/cylon/blob/master/CONTRIBUTING.md.

Release History

For the release history, please go tohttps://github.com/hybridgroup/cylon-m2x/blob/master/RELEASES.md.

License

Copyright (c) 2014-2015 The Hybrid Group. Licensed under the Apache 2.0 license.


[8]ページ先頭

©2009-2025 Movatter.jp