@jamessantoya26 months ago, I was looking for something similar, so that the ONVIF-CONFIG configurations could be made dynamically to implement a configuration section in the UI board, I have been looking and seeing the way to do it, I followed the advice of @BartButenaers to try to use the NODE-RED API to dynamically perform the configurations in all the nodes that require configuration, such as the HTTP request.
I will tell you about my experience and see if we can achieve it
I have made tests to configure the USER / PASSWORD of the HTTP Request nodes (These do not allow dynamic modifications)
To do this, you must access the NODE-RED API (Admin API Methods : Node-RED):
1. Request the current TOKEN, you can make a GET request:
curl http://localhost:1880/auth/token --data 'client_id=node-red-admin&grant_type=password&scope=*&username=admin&password=password'
You will get a Bearer type token (A_SECRET_TOKEN)
2. You have to obtain the configuration of the flow that contains the HTTP request which you want to modify the data [GET], to later send a PUT to send the desired configuration
2.1 [GET]. curl -H "Authorization: Bearer A_SECRET_TOKEN" http://localhost:1880/admin/flow/(id of your flow that contains the HTTP request)
2.2 [PUT]. finally you make a PUT request and inject the JSON with the modified information, such as the user / password you need and you can put them from a variable
I have tried to do the same with the OnVif device node, but it points to another node that is the ONVIF-CONFIG which does not allow me to make info requests and publish them again as I did with the HTTP request node.