The work to split the editor and runtime has, so far, been focussed on the internal packaging of Node-RED. It has not produced a separately installable Node-RED Editor application.
You can already configure Node-RED to disable the editor via the settings file. That gives you a headless runtime that you can use the admin api to send an HTTP request to deploy a new flow configuration - https://nodered.org/docs/api/admin/
I also meet this question on more and more IoT projects. How to solve the the x/y co-ordinates of the node when the flow is drawn with NR HTTP API without NR-editor, and deploy the new flow is locked.
I have deployed a Node-RED which been disabled the editor on the Raspberry Pi and a full-featured one on my local computer.
We could copy or download all flows from the menu with export nodes options.
I plan to use the full-featured one to send an HTTP request with http node, The input of this http node is a custom function node there could get formatted json of all flows.How to code in function node to achieve that? Is there any ready-made nodes for that?
We noticed I and my partner visit the same NR-Editor without authentication at the same time,if i do some change and deploy it ,my partner will see the change too. Is there any way to edit without interference at the same time?Is it possible to edit each other at the same time as long as different users are set up to different authentication?
Maybe there is a misunderstanding. I use NR 1.0.3 version. The lock which from Flow Security, If, then How can it be done?. I deep hope NR team could implement this feature meet more and more IoT projects requirements.
There are no ready made functions for that. One approach would be to use the File node to read your flows file to get the data.
One issue you'll hit is that your flows file doesn't include the flow credentials. They are stored separately in a file alongside your flow file (same filename, but with _creds added) and you'd have to include both in the request. The ability to do this was only just added in 1.0.4 and the api docs haven't been updated to reflect it yet. If that is something you want to pursue, then I'll try to get the docs updated this week.
No - there is no way for different users to have different views. If one user deploys changes, the other user needs to merge them into their workspace before they can deploy anything. This prevents one user from overwriting another user's work. It isn't the nicest workflow and an area I want to improve.
@Chris this is off topic, so if you want to continue your part of the discussion, please do start a new topic. I will say the concept of locking flows is still just that - a concept. As for the x/y co-ordinates - if you are generating a flow without using the editor then its up to you to give your nodes suitable x/y co-ordinates.