smoothie-stream

1.0.2 • Public • Published

smoothie-stream

Stream time-series to a chart and watch it in your browser.

Stream interface to smoothie

compatible with probe-stream

var SmoothieStream = require('smoothie-stream')
var from = require('from')
 
//generate a stream with random data
from(function (i, next) {
 
  this.emit('data', {
    A: Math.random(),
    B: Math.random(),
    C: Math.random(),
    timestamp: Date.now()
  })
  setTimeout(next, 500)
}).pipe(
  //and just pipe it to smoothie-stream!
  SmoothieStream({
    canvas: document.getElementById('canvas'),
    chart: {millisPerPixel: 20}
  })
 
)
 

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i smoothie-stream

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • nopersonsmodules