Configuration location

You can at least view it with the Karaf commandline with:

openhab> config:list "(service.pid=org.openhab.ui.habpanel)"

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.

Thanks for the reply. I will do some experimentation in the weekend to see if I can find a solution to the problem and report back.

Hi Mike!

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?

Thanks!

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.

I’m also interested in a server side installation. The feature does not appear to be in the config any longer.

Has there been any progress with this?

Has anyone found if there is an actual storage or a way to export the dashboards? dont want to upgrade and lose all the config that has been done

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.

Thanks, found it at /var/lib/config/org/openhab/habpanel.config

1 Like

Do you mean:
/var/lib/openhab2/config/org/openhab/habpanel.config
?

There is a radio button for local storage but no way to toggle to something like ‘store on server side’.

This saves it to the server

This is how it looks here …

Have you tried the “Save the current configuration” link?

From the documentation:

  • 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

Sorry, my fault. I missed this step.

…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?

2 Likes

Thank you very much Mr. Caesar. I believe now this is how I can roll out my configuration to various tablets.

Can someone tell me, where i can configure the habpanel configuration files with a text editor?

Where are this config-files stored?

/var/lib/openhab2/config/org/openhab/habpanel.config

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.

Why don’t you open Habpanel on your computer!