Image folder for images for node red dashboard
Hello. I am trying to follow this guide about setting up an image folder for node red:
...
// When httpAdminRoot is used to move the UI to a different root path, the
// following property can be used to identify a directory of static content
// that should be served at http://localhost:1880/.
//httpStatic: '/home/nol/node-red-static/',
But all the posts relate to standard node red installations. I can't find how to set this up. I am experimenting with images in a ui_template and don't know/can't find where src="some_path" is on a Pi5
The URL of the image is: http://x.x.x.x:3000/plugins/signalk-node-red/redApi/ui/testimage.jpg
Any help?
3 Replies
Well I found something. My image tag: <img src="b1.jpg" width="500" height="600"> worked when I placed it in /home/pi/.signalk/red/node_modules/node-red-dashboard/dist/
I'm not sure if this is correct or a bodge. I must have been editing the wrong settings.js file in my previous post?
Yeah, there’s no settings.js here. You can add that setting in the plugin config page.
Ah. That is a good piece of information. Is there some documentation that I should have read that would have told me this? I feel a bit ignorant about it all.
For this particular setting should it look like this?
