OpenMarine
[SOLVED} Very slow response on Dashboard - any ideas? - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: Node Red (https://forum.openmarine.net/forumdisplay.php?fid=15)
+--- Thread: [SOLVED} Very slow response on Dashboard - any ideas? (/showthread.php?tid=612)



[SOLVED} Very slow response on Dashboard - any ideas? - affinite - 2017-07-02

I have an MCP3208 ADC hooked up to my Pi(3) running OP 11.11
I have configured a number of resistive tank level monitors and I'm also monitoring 2 battery bank voltages using a simple (stabilised) voltage divider to feed the ADC.
My problem is latency ... A change in battery voltage (and consequent ADC value) can take up to two minutes to register on my gauges !!
Ive put a diagnostic node in my NR flow and changes in battery voltage are instantly reflected in the value displayed in the diagnostic window. ie there's no delay at all. But at the NR dashboard it takes ages to register.

Any ideas ?
Thanks
Steve


RE: Very slow response on Dashboard - any ideas? - Vamonos - 2017-07-02

(2017-07-02, 06:28 PM)affinite Wrote: I have an MCP3208 ADC hooked up to my Pi(3) running OP 11.11
I have configured a number of resistive tank level monitors and I'm also monitoring 2 battery bank voltages using a simple (stabilised) voltage divider to feed the ADC.
My problem is latency ... A change in battery voltage (and consequent ADC value) can take up to two minutes to register on my gauges !!
Ive put a diagnostic node in my NR flow and changes in battery voltage are instantly reflected in the value displayed in the diagnostic window. ie there's no delay at all. But at the NR dashboard it takes ages to register.

Any ideas ?
Thanks
Steve

Have you read this post?  It talks about slowing down the input with an aggregator to keep the dashboard from getting overloaded.

https://github.com/node-red/node-red-dashboard/issues/206

Richard
Vamonos


RE: Very slow response on Dashboard - any ideas? - affinite - 2017-07-03

(2017-07-02, 09:56 PM)Vamonos Wrote:
(2017-07-02, 06:28 PM)affinite Wrote: I have an MCP3208 ADC hooked up to my Pi(3) running OP 11.11
I have configured a number of resistive tank level monitors and I'm also monitoring 2 battery bank voltages using a simple (stabilised) voltage divider to feed the ADC.
My problem is latency ... A change in battery voltage (and consequent ADC value) can take up to two minutes to register on my gauges !!
Ive put a diagnostic node in my NR flow and changes in battery voltage are instantly reflected in the value displayed in the diagnostic window. ie there's no delay at all. But at the NR dashboard it takes ages to register.

Any ideas ?
Thanks
Steve

Have you read this post?  It talks about slowing down the input with an aggregator to keep the dashboard from getting overloaded.

https://github.com/node-red/node-red-dashboard/issues/206

Richard
Vamonos

Richard
Thanks for your suggestion. I couldn't get the link to update my Node Red without errors, but reading the NR forum thread gave me the idea of simply using the Delay Node which enables you to limit the message transfer rate and discard unused messages.
I set my limiting rate to 1 every 2 seconds and it worked. My dashboard is responsive again.
Thanks again for the pointer
Steve