Giter Site home page Giter Site logo

Comments (6)

ghys avatar ghys commented on June 30, 2024

You can do it in the advanced settings: Click on the "Edit the local panel configuration (experts only)" link, then copy the whole text in the editor to the clipboard, send it to another device with the method of your choice, and paste it back on the same screen then click Save.

I'm leaving the issue open because I wanted to use the HTML5 File API to interact with files on the local device (instead of copy-pasting JSON text).

from org.openhab.ui.habpanel.

jenskastensson avatar jenskastensson commented on June 30, 2024

Hi, thanks for the very nice dashboard!
Question on the import/export topic:

  1. Start with a nice dashboard (here: the demo config with lockediting false)
  2. Open Settings | Local panel configuration editor and Export, Save as "DEMO.json"
  3. Duplicate to "DEMO-MOD.json" and rename something ('Floor' -> 'FLOOOR' in the attached file) and save the file.
  4. Open Settings | Local panel configuration editor and select "Save the current configuration to a new panel configuration " and name it MOD (It is a clone of Demo at this stage)
  5. Select "Edit the local panel configuration (experts only) " and Import "DEMO-MOD.json" and Save
  6. Refresh / F5 and Open Settings -> Panel Config is now MOD and the with 'FLOOOR'
  7. Open HABPanel, the toplevel rows and cols are lost, Ground FLOOR is full witdth
  8. Export the configuration and save as "DEMO-MOD-export.json"

I was expecting the modified dashboard to be identical to the original?
Can you elaborate why and how this works, maybe a common use case, potentially a Clone button is interesting to have?
demo.zip

from org.openhab.ui.habpanel.

ghys avatar ghys commented on June 30, 2024

That's likely due to the fact that the "local configuration editor" is currently dealing with the array of dashboards only, while settings (number of columns in the home page, theme, custom widgets etc.) are treated separately. So you can lose those settings and that can mess up the main menu (you're back to 1 column).

This is wrong and for historical reasons only, I'll probably change it at some point to logically include settings and custom widgets as well.

from org.openhab.ui.habpanel.

jenskastensson avatar jenskastensson commented on June 30, 2024

Thx, do you mind if I open a new issue (or maybe re-open this)?

from org.openhab.ui.habpanel.

ghys avatar ghys commented on June 30, 2024

Not at all. I'll edit the title as well.

from org.openhab.ui.habpanel.

ghys avatar ghys commented on June 30, 2024

Finally got around to it 😁

from org.openhab.ui.habpanel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.