Within an NR project, graphics (png/jpeg) should also be displayed to the user on a page within a descriptive text.
Certainly not rocket science, but I can't find the connection of path/filename between the general project area /home/pi/project and the NR flows.
The 'settings.json' is default, so not changed.
To display the page, a template with <style/> and <div/> is used, e.g:
<div>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/>
<img title="German" src="/docs/flagDE.png" align="bottum">
<!-- /home/pi/project/docs/flagDE.png -->
Nullam dictum felis eu pede mollis pretium. Integer tincidunt.
</p>
</div>
The specifications for <img src="????"> are my problem.
Where can I find an overview of how the path/file structures are related between NR nodes/flows and other project resources on the pi file system as shown above? Which settings are required to include such graphics in the text?
<img title="German" src="/project/docs/flagDE.png" align="bottum">
<!-- file location of the png /home/pi/project/docs/flagDE.png -->
Great help to remind about the importance of the settings.json. A general overview of the path/file structure would make the relationships easier to understand ... but I have not found one
But with that the whole NR installation "becomes visible to the Node-red web page." ... isn't it better to have httpStatic: '/home/pi/nrprojects/ and have the indivdual projects below that?
Well I did say to use a subdirectory of .node-red.
On my Pi I have httpStatic: '/home/pi/.node-red/node-red-static',
Sorry I don't know a more appropriate wording but I am sure it exists.
I think I initially said "visible in the browser" but when I tested it with /home/pi/mysecretpassword.txt, instead of displaying "Password1" in the browser, the url 192.168.1.11:1880/mysecretpassword.txt opened up a download dialog. Either way my password is now out there in public!