Trying to store some images on the PI and then show the images using the html template.
There was some mention of setting the 'httpStatic' to point to where the files will be stored.
But I am having bit of problem of locating the settings.js file that was mentioned.
Here is screen shot . Can not see any settings.js file.
Hi UKMoose,
Thank you.
On the Command Line, I ran :
node-red-stop ( to stopped Node Red because Node Red was running already)
node-red-start
Then I saw the path to the path to the settings.js
What version of NR and node.js are you running? You can get them from the node-red log when you start node-red manually using node-red-start
How did you install node-red on the Pi?
have you ever run the bash script located here: https://nodered.org/docs/hardware/raspberrypi
If not, I suggest you backup your flows_raspberrypi.json and flows_raspberrypi_cred.json files and then run the script. Then see if the settings.js is in the .node-red folder.
As Nick said you need to restart Node-RED after changing the settings file. When Node-RED restarts check it is still picking up the same settings.js file
1.running node red V0.18.4
2.running PI Raspian. Installed from the 'NOOB' which included the Node Red.
3. the /home/nol line ( that was commented out //)
Run the bash <(curl script in the raspbian install instructions [1]. That should give you an up to date node red environment with everything in the right place.
The settings.js in the /usr dir is the template one that gets copied over to your user directory on first run. You should only edit the one in your users directory (typically /home/pi/.node-red on a pi etc)
In the very early days of Node-RED, before we had the concept of a user data directory, you would edit the settings file in the install directory of Node-RED.
We then added the user data directory to keep things separate. However we needed to not break existing users - so the code checks the modified timestamp of the settings file in the install directory. If that has been edited, and one doesn't exist in the user directory, we'll use the one in the install directory rather than copy over to the user directory.