Very new to Node-Red, I've been given a flow to import which is accompanied by a config.yaml file. I've been instructed to ensure node-red can access this file but cannot find any clear instructions on how to do this. Any help would be greatly appreciated
Welcome to the forums @carter142
Sorry, but its to vague to provide an answer currently
How is this file being loaded?
- By a 3rd Party Installed Node?
- Via the file read node?
We need to understand how this file is utilised in Node RED and by what component within it.
If it helps, the process user running Node RED will need read access to that file
(wherever it is stored)
- This is managed by your OS file permission tooling
You can use the YAML node after using a file read node to covert to JSON.
However, as Marcus says, it is a bit hard to know exactly what you might be wanting to do with the data.
Forgive me if I don't use the right terms,
It looks like the existing project does this. It uses a read node to access the config file, then directly after uses a YAML node.
Is this read node where the config file should be accessed from?
Yes, the file read node is given a file location and name to read, that grabs the content into Node-RED. The content is passed in the output msg and fed into the YAML node to convert it to JSON so that you can then work with the data.
Further more….
You can update the location that the read node is trying to read from.
So place it somewhere that works for you (taking into considering security / ACL’s on the file system )
And of course update the read node it’s self to update the location that you stored this file to
Thanks to you both for the help! I definitely understand the function more after your directions