current-ie

0.1.0 • Public • Published

current-ie

A Node.js wrapper for GE Current Intelligent Environments API

This is a work in progress (only does parking service), not published to NPM, yet.

Installation

npm install current-ie --save

Example

const zoneId = 'predix-zone-id'
const token = 'jwt'
 
const CurrentIE = require('../lib/current-ie')
const api = new CurrentIE(token, zoneId)
 
api.getAssetDetailByAssetId('1000018').then((asset) => {
  console.log('Woo an asset', asset)
}).catch((err) => {
  console.error('An error occurred', err)
})

License

Copyright (c) 2016 Christopher Combs

Licensed under the MIT license.

Package Sidebar

Install

npm i current-ie

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • combsco