What is the best way to design and distribute HABPanel from a PC to Android / iOS devices?
Ideally I am looking at keeping a central collection of layouts which can then be copied down to the required devices, I am using OH 1.8.
Using Chrome in developer mode, then selecting device mode enable me to setup a browser to emulate the screen which is great, but then how best to push / copy to a mobile device?
You dont have to “push” it to a device. Just create panel with all needed dashboards on your PC and use the central storage instead of the local one. Then on your device select the central storage as well and select the right panel. Every time you make changes to that panel on your PC again, refreshing on the device is enough to pick up the changes.
here a screenshot what I mean with selecting the different storages in case you havn’t found it:
Sadly I am not running OH2 so local storage is my only option.
The advanced option for local panel edit could work, what would be the best way to remote control Android devices so that I can copy / paste the new panel configuration?
There’s no easy solution for 1.8, but the newer versions have an import/export feature from a file (slightly better than copy-pasting) under the “Edit the local panel configuration” link.
I lost my happanel after attempting to edit in the json file available in paperui advanconfiguration for habpanel…
any ways to restore?
i spent days design it so your response will be valued a lot
Ps- i have the json file .
the jq command squishes the json panel config into a single line (needed for feeding into the openhab-cli command. The sed substitutes any ' characters (that would interfere with the shell) with the equivalent UTF8 character code.
You might want to check that you are setting your Panel config in the config:property-set -p org.openhab.habpanel initialPanelConfig F17 line. Mine is called F17 but your’s might be different.