Hi, was just wondering about the eventual possibilities to let Node-RED update it's own flow
a) Sending a new flow file to Node-RED (I'm thinking via MQTT) and use the file node to save it
b) Then Node-RED activates a self-restart in some way
Is this maybe already possible to achieve?
Check out this quesion talking about the node red admin api.
You can also use the SendFlow node which uses the /flows endpoint to update the node red instance it points to.
1 Like
Very impressive!!
With your nodes it is possible to retrieve a complete flow from a remote host with the "GetFlows" node, transfer it via MQTT and save it to your local host, load it in your local Node-RED instance, make the necessary editing, then transfer it back via MQTT to the "Send Node" to update the active flow on the remote host
Very cool!
EDIT: If you in addition would use the Project feature in your admin computer, you could have a separate project for each remote host you need to maintain in this way. Not as elegant as FlowFuse, more as a "home brewed" solution