Hi
I'm a newbie to use node-red on raspberry pi and tried to create a simple node is slide show
when I deployed and moved to http://192.168.1.20:1880/ui/ but it show "Please add some UI nodes to your flow and redeploy."
You can ignore the loading error.
Make sure to disable caching and refresh.
How I do disable caching?
I am not sure about chromium, but in chrome, dev tools, network tab, there is a checkbox to disable cache. I believe in developer mode caching is disable by default, then just shift+reload the page. If not, can you show how you configured the dashboard nodes ?
Also tell us how you installed node red (did you use the recommended script from the node red docs?), and start node red in a terminal and post the startup log here. Use the</>
button when you paste the log in.
I installed node-red according to the instructions of https://nodered.org/docs/getting-started/raspberrypi
sudo apt install build-essential
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
apt-get install nodered
and use command
sudo systemctl enable nodered
to get startup
Good, now show us what you see when you run
node-red-stop
node-red-start
You should not have done that. Uninstall it again and run the script again. I don't know whether that is the cause of the problem but it needs to be ruled out.
Now I'm installing node-red again.
The log looks ok so it probably won't make any difference. It shouldn't mess up your flows though.
Are you running the browser on the pi? If so try localhost:1880/ui instead of the ip address.
Wow! finally, done with your suggestions. Can you explain to me why?
Which suggestions, re-installing or the ip address?
Try localhost:1880/ui instead of the ip address.
What do you see if you run, in a terminal
ifconfig
Copy/paste the text if possible please. Use the </>
button and paste it in.
pi@raspberrypi:~ $ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:dc:26:1d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 185065 bytes 22501581 (21.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 185065 bytes 22501581 (21.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::1ee5:b070:da76:858d prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:89:73:48 txqueuelen 1000 (Ethernet)
RX packets 464385 bytes 81462388 (77.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 575700 bytes 415093120 (395.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
That looks ok, I have no idea why it doesn't work if you use the ip address. Are you using that for the flow editor too? Does it still not work with the ip address? If not then try clearing the cache in the browser, if you haven't already done that. Maybe try a reboot in case Chrome or networking is confused.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.