Automate dashboard contents

Would you explain how. I have tried using ctl select & shift select but never got anywhere? :thinking:

(or point me the direction of the documentation)

I am using a mac, I don't how this is mapped in windows (if that is what you are using):

go to config tab, select config node, hold cmd+click on another, then backspace/delete.

Ok...i'm not understing it at all.

Can you upload a flow using your explanation?.

I dont have the code anymore.

Just add a template node, write html and add what you need.

Ok, and you say that this template node can be automated from the backend?.

You would first have to work out what you wanted in the template node, and then write code to take you configuration data and generate the html to put in the template node. I did say it would not be simple.

Ok, did you ever use the nodered API?.

I thought you were looking at the template node route.

No I have not used the admin API but that is not relevant here.

Yes im using the template node. But the main idea is like this:

html or txt document (google docs or whatever) --> nodered API to make the post request to the template node --> end

I mean automate that chain and i think that the NR API is required.

No, you can read the configuration from your document directly into node-red and build the template contents dynamically. Either pass the content to the template node using msg.template, or use angular directives in a fixed template to automate the ui generation.

Ok, i'm confused.

What are the steps to achieve what you say?.

Regards!

Do what I said in my previous post. Which bit don't you understand.
Do you know what you need in the UI template node for an example configuration of your system?

That is the point. How should i do it?.

Please if you can upload some example of it.

Regards!

How should you do which part of the solution?

The whole solution.

I mean, you said to read the document directly into node-red and then build the template content dinamically.
How can you do that?. Explain a little more please.

Thanks

As I believe I said earlier, I would start by creating a ui_template node that generates a fixed page that is similar to what you are aiming for. Once that is correct you can move on to making it dynamic.

If you don't know how to build the display in a template node then you need to go on an html/css course.

ok, what is a fixed page?.

You said you wanted to generate a page dynamically using some config in a file somewhere. First create a static page that is not dynamic that uses html and css to build a web page for an example config. When that is going then you can work out how to build it dynamically.

Ok, i have the static page (dashboard) which is the flow that i've posted before. That step is done.
The main goal now is to do some automation to inject the html formatted text that i need into the "template node" as this.

image

How can i add information INSIDE the template node from a txt file or another source?. Is that possible?

That was using the node-red-dashboard. You said you wanted to use a solution generating the page using html and css in a ui_template node, not using the dashboard.