organiq

0.4.6 • Public • Published

Organiq Software Development Kit for JavaScript

Build Status

Organiq is a platform for developing applications that interact with the real world.

The Organiq Software Development Kit (SDK) for JavaScript contains library code, utilities, and examples designed to enable developers to build applications using Organiq and JavaScript. This SDK supports both server- and client-side JavaScript.

npm install -g organiq              # install on development machine
organiq register                    # register an Organiq account
organiq generate-api-key --global   # get an API key 

Quick Peek

Here's a (complete) program for Tessel that uses the Organiq SDK to expose the ability to turn on and off the device LED from the web:

var tessel = require('tessel');
var organiq = require('organiq-tessel');
organiq.registerDevice('Blinker', {
    toggleLed: function() { tessel.led[0].toggle(); }
    });

Here's a Node.js application that starts the Tessel's LED blinking from anywhere on the web:

var organiq = require('organiq');
function startBlinking(device) {
    setInterval(function() { device.toggleLed(); }, 500);
}
organiq.getDevice('Blinker').then(startBlinking);

Documentation

See http://organiq-tessel.readthedocs.org/en/latest/ for documentation on using Organiq with Tessel.

Copyright (c) 2015 Organiq, Inc. All Rights Reserved.

Readme

Keywords

none

Package Sidebar

Install

npm i organiq

Weekly Downloads

16

Version

0.4.6

License

none

Last publish

Collaborators

  • myk