I'm looking to find a list of the default environment variable names built into Node-RED. I imagine there are slight differences based on the platform (desktop vs arduino vs etc.). I've searched the documentation, but I can't find anything definitive.
I thought this was in the docs, but I can't find it either.
In Node-RED 2.2, we released the changes from this PR - Add support for accessing node id & name as environment variable by HiroyasuNishiyama · Pull Request #3356 · node-red/node-red · GitHub - which introduced the following env vars:
NR_FLOW_ID
NR_FLOW_NAME
NR_GROUP_ID
NR_GROUP_NAME
NR_NODE_ID
NR_NODE_NAME
Is that the sort of thing you're looking for?
Yes, that's the type of information I need.
BTW, I'm finishing up a set of lesson plans for a new course (post-secondary), and finding this sort of documentation can be quite helpful.
I've added an issue in the website's repo, and I would be happy to create a pull-request contribution on this for you.
I created a PR to close the issue.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.