NodeRED: Configuration of multiple data layer subscribes

Hi,

instead of searching for every single data layer node via the browse function of the node red data layer node (which is really helpful by the way!) is there a possibility to configure a mass of subscribe data layer nodes? E.g. via export/import of a config file to node red app?

Thanks in advanced! 

Best reply by CodeShepherd

You can always register several subscriptions with one single request. Just add the path separate by a comma:

https://127.0.0.1:8443/automation/api/v2/events?nodes=framework/metrics/system/cpu-utilisation-percent,framework/metrics/system/memavailable-mb&publishIntervalMs=100

There is a possibility to do the same via the path input of the subscribe node of our node-red-contrib-ctrlx-automation. But at the moment I could not get it to work and added an issue to the repository: mass subscribe results in "DL_INVALID_ADDRESS" #66.

We are also working on adding an input to the subscribe nodes to do change the settings via a message.

View original
1
1 reply