openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
214 stars 235 forks source link

[Habpanel] Copy widget to other panel configuration #104

Open BasvanH opened 4 years ago

BasvanH commented 4 years ago

Hello,

I use multiple Panel configuration because of different screen resolutions and other actions per screen. Mostly the same widgets are required on all panels and some have a lot of in-widget settings, therefore I would like to request a feature to be able to copy a Widget or perhaps an entire Dashboard to a other Panel configuration.

Something like: image

I could program it myself, if I get some direction in where to start.

Thanks, regards, Bastiaan

ghys commented 4 years ago

I suppose it would be quite difficult to implement, or the implementation would be convoluted, HABPanel's code being always in the context of a panel configuration and generally unaware of the others. As a workaround I could advise you to use the "local configuration editor" (http://ip:8080/habpanel/index.html#/settings/localconfig), identify the parts you need to copy over in the JSON structure, then switch the panel configuration, and (carefully) paste them in the right place.

BasvanH commented 4 years ago

Ok, via the "local configuration editor" works, but isn't very user friendly. Having an cross configuration copy would make it a lot easier. Lets leave this open, perhaps in the future this may become easier to implement.