node-red-dashboard icon indicating copy to clipboard operation
node-red-dashboard copied to clipboard

Dashboard 1.0 Migration Scripts

Open joepavitt opened this issue 2 years ago • 11 comments

Description

Thought: could we provide a form/service where users upload their Dashboard 1.0 flow.json, and in return we provide an auto-parsed flow.json which is our best attempt at re-producing that flow for Dashboard 2.0.

In most cases, variables are the same, and we need to write a detailed migration guide (#212) anyway, so this could be a very powerful accompanying value.

For users/companies with extensive Dashboard 1.0 flows, this could be a golden nugget in persuading them to convert over.

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

joepavitt avatar Oct 11 '23 15:10 joepavitt

Have you considered how to cope with the use of Angular Filters for formatting the data as provided in the Value Format field in several of the D1 nodes?

colinl avatar Oct 20 '23 16:10 colinl

I'll need to have some example of the filters that are supported by default.

We will never be able to get every use case working perfectly, but my hope is to at least get users 80% of the way, and save having to manually rewire and configure so many nodes that we have duplicated functionality for

joepavitt avatar Oct 20 '23 16:10 joepavitt

A typical use case for Value Format might be {{msg.data.temperature | number:1}}° The same syntax can be used in the Label field.

colinl avatar Oct 21 '23 08:10 colinl

I'm itching to try out Dashboard 2.0 and very sad that Dashboard 1 is no longer to be developed - though I was never very happy with the use of Angular. You asked about people with extensive Dashboards - quick look at my blog will show I've been building that up for years now and absolutely cannot abandon it. I'm pleased to see we'll be able to run the two side by side and build up DB2 in stages...

scargill avatar Jan 28 '24 21:01 scargill

I'm itching to try out Dashboard 2.0 and very sad that Dashboard 1 is no longer to be developed - though I was never very happy with the use of Angular. You asked about people with extensive Dashboards - quick look at my blog will show I've been building that up for years now and absolutely cannot abandon it. I'm pleased to see we'll be able to run the two side by side and build up DB2 in stages...

same for me!

WhiteLionATX avatar Apr 01 '24 18:04 WhiteLionATX

We are going to publish @flowfuse/node-red-dashboard-2-migration, subject to a couple of PR reviews. This will be a JS module, and a terminal cmd prompt that will convert (as a starting point) the pages and groups automatically to at least save the manual labour there. We'll be adding more migrations over time.

joepavitt avatar May 31 '24 16:05 joepavitt