Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sensorchart

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sensorchart

SensorCharting through REST API

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

SensorChart Programming Guide - by JavaScript

![license-image]

SensorChart provides isomorphic javascript API which you can invoke at client or server easily.

How to visualize your observations in sensor chart

  • Register yourself at (http://sensorchart.com)
  • Register your sensor and get appropriate something (sensorId, auth key - TODO: update it later)
  • Programming your sensor to upload observation in two ways
    • with JavaScript API (on any HTML5 browser or Node.js)
    • with RESTful API (on any platforms)
  • Checking your data posted properly at (http://sensorchart.com)
  • See your charts and find your own insight.

Programming with JavaScript API

you can link it as below:

transmit data on client (any browser)

<html>
    <header>
        <script src="http://www.sensorchart.com/api.js"></script>
        <script>
        // your code here
        </script>
    </header>
<html>

transmit data on server (node.js)

npm provides sensorchart API. You can install it with npm install sensorchart and require this like below:

var sensorchart = require('sensorchart');
// your code here

Sample code

sensorchart.login(id, password, function (transmitter) {
    if (transmitter) {
        transmitter.emit(sensorId, observations, function (result) {
            if (result == false) {
                console.log('failed to transmit observations.');
            }
        });
    } else {
        console.log('login error!');
    }
});

Programming with RESTful API

To details, kindly refer to the apidoc


Copyright (c) 2015 SensorChart.com

Keywords

FAQs

Package last updated on 31 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc