Don’t know how it is persisted behind the scenes.
I also found it in a cache file: cache/org.eclipse.osgi/7/data/config/org/openhab/ui/habpanel.config
but it doesn’t look like permanent storage.
I believe you can control it by putting a line like panelsRegistry=...
in runtime/karaf/etc/org.openhab.ui.habpanel.cfg but you’ll have to put it all on one line, that could become ugly quick.
Sorry, I have no experience with Karaf/OSGi, so I can’t help you on backup & migration procedures.
I have just upgraded to the latest snapshot of OH2. Apparently I lost my Habpanel configuration. Do you know if its possible to retrieve the config from a conf/userdata backup? I made a backup just before upgrading.
Also, the Habpanel now does not allow me to select a server side configuration?! Has something changed in a later version? As a side note I could now install Habpanel without enabling experimental features.
Its quite tedious to setup a Habpanel dashboard so the possibility to make a backup would be great.
Also, why did you delete the folders mentioned in the first post? Is that a recommended step before updating?
No, but the following works for me assuming that you originally had the configuration loaded on your browser.
I simply open HABpanel, then click on the configuration icon. Initially this does nothing but if you then refresh the browser screen I have found it to return the configuration (providing you have not cleared the browser cache). You can then go on to save to the server again in the normal way.
Yes, this is the recommended practice, but I am aware that work is being done to improve the updating process. I will try to find a link on this and will add it shortly.
Click the expand menu icon (i.e. the three horizontal lines in the upper left corner)
Click the gear icon near the bottom left
There you can choose to save your panel config locally (i.e. for that browser) or on the server. On the server the configuration is stored somewhere in userdata (/var/lib/openhab2 for apt-get installs).
In an upgrade the userdata folder is preserved when using apt-get.
When using a manual install, make a backup of userdata and copy the backup of your userdata folder to the new version of OH before starting it and all your settings will be preserved.
Once you’re happy with your set of dashboards, go back to “Advanced settings” then click/tap on “Save the current configuration to a new panel configuration”; this will store it on the openHAB 2 server as described above, and make it available for reuse
…So you want to have a single file which you can easily use to reproduce whatever setting you did in HABPANEL?
My task was to transfer the configuration to a complete different Raspberry.
What worked for me:
Go to the advanced configuration of HABPANEL and klick on
This now give you the chance to the configuration to a simple *.json file
To load the configuration on another machine or reproduce the saved configuration, just go the other way round an the *.json file again.
Did this solve the issue with filed based storage of the configuration?
is complete configuration of habpanel in one single line i think, not usable… And i don´t want to export json files to another tablets. I only want to do complex changings with my computer instead of using the on screen keyboard of the tablet.