2016-12-12, 09:38 PM
(2016-12-12, 08:56 PM)gniersma Wrote:(2016-12-11, 06:10 AM)desolina-nz Wrote: yep, try version 0.9 alpha. I'd never used node-red or even done any java scripting before and within an hour had a bunch of dashboards running off signal K data. I found I had to use some of the delay/smoothing functions to avoid too many data points going to the charts I was using though (because I wanted charts of pressure tracking over several days).
I got node-red running again on 0.9.0 alpha. Had to throw away .node-red/flows_openplotter.
I also get a the message a lot of datapoints ?
Can you explain why you add the delay function and how you implement smoothing functions ?
thx G.
There is probably a better way to do this... but I first used the delay function to only output say 1 data point every 3 seconds. Then I used the smooth function to average the values over the last 200 points (giving a 10 minute average). Then I used the delay function again to only output 1 value every 10 minutes. I sent this feed to a graph to show 10 min average values, which work well for looking at wind/pressure/temperature over several days and doesn't build up too many data points.
I'm away from home for the next week, but can send you a copy of my node-red when I'm back. I would be keen to get some feedback on it! As I said, perhaps there is a better way of doing this?