react-particle-io-utilities

1.0.0 • Public • Published

react-particle-io-utilities

A work in progress repo of React utility components that can be used with the particle.io IoT platform APIs to render some UI around the raw data the APIs return. For example, if you get the RSSI value from an Electron via the API and you want to mirror the signal strength logic as a React UI component (i.e. 1 - 5 bars) you can use the components like so:

<RssiSignalStrength deviceId="electron-id-12345" rssi="-56" />

react-particle-io-utilities

Full example usage code is available in the src/examples directory. Have a look at a live working version here

get started

  • run
npm install --save react-particle-io-utilities
  • bring RssiSignalStrength into your project like so
var {RssiSignalStrength} = require('react-particle-io-utilities')
  • then use it like so
<RssiSignalStrength deviceId="electron-id-12345" rssi="-56" />

Readme

Keywords

none

Package Sidebar

Install

npm i react-particle-io-utilities

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • newbreedofgeek