(Yeah, sorry, but I don't get it either)
Ok, next/latest problem that has me stumped.
I want to write to a file (append) in the defined httppublic directory.
(or what ever it is called - but it is set)
This is the code for the sake of keeping it simple:
[{"id":"b52021a0.03338","type":"function","z":"b04360a6.da324","name":"Name of database + timestamp","func":"msg.filename = \"machines/timepi_temp.db\";\nvar time = Date.now();\nvar x = msg.payload;\nmsg.payload = time + ' - ' + x;\nreturn msg;","outputs":1,"noerr":0,"x":1310,"y":840,"wires":[["99a3f963.347218"]]},{"id":"99a3f963.347218","type":"file","z":"b04360a6.da324","name":"","filename":"","appendNewline":true,"createDir":true,"overwriteFile":"false","x":1510,"y":840,"wires":[]},{"id":"edcff7e1.33b628","type":"inject","z":"b04360a6.da324","name":"","topic":"","payload":"clock","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1080,"y":840,"wires":[["b52021a0.03338"]]}]
Now I am not exactly sure what the "file path should be an absolute path, or else it will be relative to ........."
"absolute"?
What does that mean?
If I want to put it in node-red's public directory in "data_base/machines" what is different to the "absolute" path?
Anyway, I run that and nothing happens in the way of errors, but the file isn't made, or I can't find it.
(true at time of posting)
After poking around:
I have httpstatic set to /home/pi/.node-red/public
and I use pictures from there (old story) and got the LCD display working (another story) with the fonts.
So, that part is ok.
Seems...... The file is being made in:
/home/pi/databases/machines/
Why?
What am I missing?