Hi. My NR system is growing, so I decide to split functionality into many separate NR instances. I want extract some settings from existing flows, like mqtt server adress, device/service (NR instance) name and so on.
The mqtt server parameters are easy to handle, as set the env variable in settings.js - which is common to each NR instance. But I can't figure it out, how to pass instance name to NR instance, which I could use then in MQTT will topic for example.
Is there any option to pass some parameters (env variables?) to NR instance? I'm not using docker.
Note that, my goal was to call NR in one line, without batch file, and without the current environment being affected by seting new env variables. This variables should be visible only in that context, so I have to call new cmd /c to nest the command shell and then chain set and command_to_run with &&. Important thing are the parentheses ( ) which groups or nest multiple commands. Without these the node-red can't see previously set variables.