Tago SDK for JavaScript in the browser and Node.js
JavaScript Makefile
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
!examples Added html to analysis email service Dec 5, 2017
account
analysis fixed missed variable in previous commit Jun 22, 2018
comum
device
extra converted 4 spaces to 2 spaces Oct 18, 2017
middleware Added middleware and moved notification realtime from account to noti… Aug 11, 2017
realtime
services added attachment service Jun 22, 2018
test
utils
.editorconfig
.eslintignore
.eslintrc.yml
.gitignore
.npmrc first commit of v2 Jun 21, 2016
LICENSE.md
Makefile
README.md
config.js
index.js
mock_server.js
package-lock.json
package.json
wercker.yml update wercker to use node:argon Jun 28, 2016

README.md

NPM NPM

wercker status Documentation Status Dependency Status npm version

Description

Tago SDK for JavaScript in the browser and Node.js.

what where
Tago website http://tago.io
SDK documentation http://sdk.js.tago.io
General documentation http://docs.tago.io
Slack / Community http://community.tago.io

Installation

NODE >= v4

$ npm install tago --save

NODE < v4

$ npm install tago@1.* --save

If you will use it on browser, you should convert it using babel. If you use webpack to build you can add rule like this: 'exclude': /node_modules\/(?!tago)/

Quick Example

Insert Device Data

const Device = require('tago/device');
const mydevice = new Device('079a01a0-2ec4-11e6-a77d-991b8f63b767');

const data_to_insert = {
    'variable' : 'temperature',
    'location' : {'lat': 42.2974279, 'lng': -85.628292},
    'time'     : '2014-01-20 03:43:59',
    'unit'     : 'C',
    'value'    : 63
};

my_device.insert(data_to_insert)
    .then(api_response => {
        console.log('Data added', api_response);
    })
    .catch(error => {
        console.error('Error:', error);
    });

// -> See full documentation at: http://sdk.js.tago.io/

License

Tago SDK for JavaScript in the browser and Node.js is released under the Apache-2.0 License.