joewalnes / smoothie

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data
http://smoothiecharts.org
Other
2.25k stars 232 forks source link

Data blips on Chart #66

Closed Shrest closed 8 years ago

Shrest commented 8 years ago

Hi, Thanks for the library. Im working on plotting data stream received through a web socket using smoothie.js. Able to get the plot on the web browser, but there are blips in the chart and it is occurring more or less consistently about every 30secs. I looked at the data output on the server terminal (raspberry pi) and it is fine. So, not sure, what is causing these blips. I tried changing the chart update rates, it didn't help.

Request some advise on getting over this.

Thanks.

drewnoakes commented 8 years ago

Can you post a screenshot showing what these blips look like?

On 8 February 2016 at 15:55, Shrest notifications@github.com wrote:

Hi, Thanks for the library Im working on plotting data stream received through a web socket using smoothiejs Able to get the plot on the web browser, but there are blips in the chart and it is occurring more or less consistently about every 30secs I looked at the data output on the server terminal (raspberry pi) and it is fine So, not sure, what is causing these blips I tried changing the chart update rates, it didn't help

Request some advise on getting over this

Thanks

— Reply to this email directly or view it on GitHub https://github.com/joewalnes/smoothie/issues/66.

Shrest commented 8 years ago

Sure, but I can't at the moment. I will do it once I get access to my RPi. However, I will try to describe whats happening. The reading is about 0.45 to 0.35 and the plot varying uniformly in this interval, but abruptly it changes to 2 (sometimes 360) for an odd sample and immediately comes back to its original data :0.45 to 0.35. On careful observation I find it repeats every 30 secs (approx.). Ensured its fine on the server side, no blips over there during observation over extended period.

drewnoakes commented 8 years ago

Try writing values to the JavaScript console at the same time as you add them to the TimeSeries.

On 8 February 2016 at 19:15, Shrest notifications@github.com wrote:

Sure, but I can't at the moment. I will do it once I get access to my RPi. However, I will try to describe whats happening. The reading is about 0.45 to 0.35 and the plot varying uniformly in this interval, but abruptly it changes to 2 (sometimes 360) for an odd sample and immediately comes back to its original data :0.45 to 0.35. On careful observation I find it repeats every 30 secs (approx.). Ensured its fine on the server side, no blips over there during observation over extended period.

— Reply to this email directly or view it on GitHub https://github.com/joewalnes/smoothie/issues/66#issuecomment-181450848.

Shrest commented 8 years ago

I tried writing values to html page. The feed has the blips and smoothie is only displaying what is fed. Seems to be issue with the interlink - websocketd. I don't yet.

Thanks drewnoakes. My apologises for bringing this up, in what seems to be not a smoothie issue.

drewnoakes commented 8 years ago

The main thing is that you got it working.