Dashboard Not Correct in Browser

Often, my dashboard does not update correctly on my browser. Mostly, background color changes, text changes, and font size do not update.

Refreshing the browser helps some, but not all differences are corrected.

Restarting Node-Red always shows the correct dashboards, but after some time, the browser dashboard again is not correct.

I have tried deleting the browser cache, no improvement.

I have tried different browsers and PCs, Windows 10 Pro, Mac OS Big Sur, Safari, Chrome, MS Edge......all behave the same as described above.

Here is the config:

  • Node-Red v1.2.9
  • MacPro 2.6 GHz 6-Core Intel Core i7, 32 GB Ram
  • Intel NUC six core i7, 32 GB RAM
  • Raspberry Pi four, 4 GB RAM, 128 GB USB boot disk

The Raspberry Pi CPU load usually peaks at 25% and average is 10%.

Question - Any suggestions or ideas on what to change to allow my browser to update the Node-Red Dashboard?

Alan

Can you show us the startup log from node-red please.

Have you added any customisation of the dashboard or widgets using CSS?

Hi Colin

No customization. Most of the issues are with the "ui_button", where I use functions to change the background, color and label. Also, I adjust the font size, on the label using.
"{{label}}"

I did a "node-red-restart" and below is the log:

Alan

===========================

pi@raspberrypi-Den:~ node-red-restart Restarted Node-RED pi@raspberrypi-Den:~ node-red-log

28 Mar 09:17:42 - [error] [http request:Send] Error: Invalid URI "http:///Radio/TXINHIBIT?param=0"
28 Mar 09:17:43 - [error] [http request:GetClient] Error: Invalid URI "http:///Radio/CLIENT"
28 Mar 09:17:43 - [error] [http request:GetHTTP] Error: Invalid URI "http:///STEPPIR/INFO"
28 Mar 09:17:43 - [error] [http request:GetHTTP] Error: Invalid URI "http:///STEPPIR/INFO"
28 Mar 09:17:43 - [error] [ui_svg_graphics:Global Map] A msg.payload is required
28 Mar 09:17:43 - [error] [ui_svg_graphics:Global Map] A msg.payload is required
28 Mar 09:17:43 - [error] [ui_svg_graphics:North America Map] A msg.payload is required
28 Mar 09:17:43 - [error] [http request:GetClient] Error: Invalid URI "http:///Radio/CLIENT"
28 Mar 09:17:44 - [error] [http request:GetClient] Error: Invalid URI "http:///Radio/CLIENT"
28 Mar 09:17:44 - [error] [http request:GetHTTP] Error: Invalid URI "http:///STEPPIR/INFO"
28 Mar 09:17:44 - [error] [http request:GetHTTP] Error: Invalid URI "http:///STEPPIR/INFO"
28 Mar 09:17:44 - [error] [change:Set Flex RF Power] Invalid JSONata expression: Attempting to invoke string function on Infinity or NaN
28 Mar 09:17:44 - [error] [ui_svg_graphics:Global Map] TypeError: Cannot read property 'toLowerCase' of undefined
28 Mar 09:17:44 - [error] [ui_svg_graphics:Global Map] TypeError: Cannot read property 'toLowerCase' of undefined
28 Mar 09:17:44 - [error] [ui_svg_graphics:North America Map] TypeError: Cannot read property 'toLowerCase' of undefined
28 Mar 09:17:45 - [error] [ui_svg_graphics:Global Map] TypeError: Cannot read property 'toLowerCase' of undefined
28 Mar 09:17:45 - [error] [ui_svg_graphics:Global Map] TypeError: Cannot read property 'toLowerCase' of undefined
28 Mar 09:17:46 - [error] [change:Set Flex RF Power] Invalid JSONata expression: Attempting to invoke string function on Infinity or NaN

The font size comment did not go thru. I guess it was removed by the browser.

Again, I adjust the font size and text on the "ui_button" using:

left carrot font size = 5 right carrot {{label}}

Where left carrot and right carrot are the symbols for same.

Alan

Can you do
node-red-stop
node-red-start
instead please, so you can get the full log. I would suggest tracking down all those errors too.

That is the forum interpreting it. Use this technique when posting flows, code or logs to stop it being messed with - How to share code or flow json

Colin

Log below as you requested.

Regarding the error messages, I have. number of devices that send UDP broadcasts to Node-Red. Some of the devices are not always "on" so, Node-Red throws error messages when various nodes do not see the strings or json is missing. I need to add "catch" nodes to those flows to clean up the console.

Here is the log as you requested:

=================

Stopping Node-RED graphical event wiring tool...
28 Mar 09:50:44 - [info] Stopping flows
28 Mar 09:50:44 - [info] [udp in:Flex VITA 49] udp listener stopped
28 Mar 09:50:44 - [info] [udp in:f61aadba.3187c] udp listener stopped
28 Mar 09:50:44 - [info] [udp out:a908fd67.bcfa98] udp output stopped
28 Mar 09:50:44 - [info] [udp in:26781142.d56996] udp listener stopped
28 Mar 09:50:44 - [info] [udp in:2996300b.5292f8] udp listener stopped
28 Mar 09:50:44 - [info] [mqtt-broker:f0be9cb2.eba7a] Disconnected from broker: mqtt://192.168.50.209:1883
28 Mar 09:50:44 - [info] Stopped flows
nodered.service: Succeeded.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
28 Mar 09:51:10 - [info]
Welcome to Node-RED

28 Mar 09:51:10 - [info] Node-RED version: v1.2.9
28 Mar 09:51:10 - [info] Node.js version: v12.21.0
28 Mar 09:51:10 - [info] Linux 5.10.11-v7l+ arm LE
28 Mar 09:51:11 - [info] Loading palette nodes
28 Mar 09:51:13 - [info] Dashboard version 2.28.1 started at /ui
28 Mar 09:51:14 - [info] Settings file : /home/pi/.node-red/settings.js
28 Mar 09:51:14 - [info] Context store : 'default' [module=memory]
28 Mar 09:51:14 - [info] User directory : /home/pi/.node-red
28 Mar 09:51:14 - [warn] Projects disabled : editorTheme.projects.enabled=false
28 Mar 09:51:14 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi-Den.json
28 Mar 09:51:14 - [info] Server now running at http://127.0.0.1:1880/
28 Mar 09:51:14 - [warn]

Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.

28 Mar 09:51:15 - [info] Starting flows
28 Mar 09:51:16 - [info] [udp in:84667b1a.76108] udp: port 9932 already in use
28 Mar 09:51:16 - [info] Started flows
28 Mar 09:51:16 - [info] [udp in:Flex VITA 49] udp listener at 0.0.0.0:4992
28 Mar 09:51:16 - [info] [udp in:f61aadba.3187c] udp listener at 0.0.0.0:13080
28 Mar 09:51:16 - [info] [udp in:26781142.d56996] udp listener at 0.0.0.0:9932
28 Mar 09:51:16 - [info] [udp in:84667b1a.76108] udp listener at 0.0.0.0:9932
28 Mar 09:51:16 - [info] [udp in:2996300b.5292f8] udp listener at 0.0.0.0:12040
28 Mar 09:51:16 - [info] [udp out:a908fd67.bcfa98] udp broadcast ready: -> 192.168.50.255:12020
28 Mar 09:51:16 - [info] [mqtt-broker:f0be9cb2.eba7a] Connected to broker: mqtt://192.168.50.209:1883
28 Mar 09:51:16 - [error] [http request:GetClient] Error: Invalid URI "http:///Radio/CLIENT"
28 Mar 09:51:16 - [warn] [ui_level:AMP Temp] msg.payload does not contain numeric value
28 Mar 09:51:17 - [warn] [ui_level:AMP Temp] msg.payload does not contain numeric value
28 Mar 09:51:17 - [error] [http request:Send] Error: Invalid URI "http:///Radio/TXINHIBIT?param=0"
28 Mar 09:51:17 - [error] [http request:GetClient] Error: Invalid URI "http:///Radio/CLIENT"
28 Mar 09:51:17 - [error] [http request:GetHTTP] Error: Invalid URI "http:///STEPPIR/INFO"
28 Mar 09:51:17 - [error] [http request:GetHTTP] Error: Invalid URI "http:///STEPPIR/INFO"
28 Mar 09:51:17 - [error] [ui_svg_graphics:Global Map] A msg.payload is required
28 Mar 09:51:17 - [error] [ui_svg_graphics:Global Map] A msg.payload is required
28 Mar 09:51:17 - [error] [ui_svg_graphics:North America Map] A msg.payload is required
28 Mar 09:51:17 - [error] [http request:GetClient] Error: Invalid URI "http:///Radio/CLIENT"
28 Mar 09:51:18 - [error] [http request:GetClient] Error: Invalid URI "http:///Radio/CLIENT"
28 Mar 09:51:18 - [error] [http request:GetHTTP] Error: Invalid URI "http:///STEPPIR/INFO"
28 Mar 09:51:18 - [error] [http request:GetHTTP] Error: Invalid URI "http:///STEPPIR/INFO"
28 Mar 09:51:18 - [error] [change:Set Flex RF Power] Invalid JSONata expression: Attempting to invoke string function on Infinity or NaN

I would start by sorting all those errors. It may not appear that they are relevant but if something you can't explain is happening, and there are issues that you can address then sort those first. Worry about the unexplained issue once you have sorted those out.

Thanks, Nick

Will do. I will take action to remove the cause of errors and report back on the Dashboard stability.

Alan

Resolved

I eliminated the source of the error messages, ran the dashboard overnight, and all continues to be good.

Thanks Colin for your help.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.