I had a little free time today so I made a proof-of-concept bundle for my alternative GUI project as suggested by Kai
If you want to check it out, download the .jar here: https://github.com/ghys/openhab2-addons/releases/tag/panelui-2.0.0-SNAPSHOT and drop it into your addons folder. It will install automatically.
Check the logs for: [INFO ] [b.ui.panelui.internal.PanelUIService] - Started Panel UI at /panelui
It should also appear on the home page dashboard:
I have some sensor data being called by a curl script and my item then rounds this number to 1d.p. so it looks pretty in my sitemap. However trying to use this data in HABPanel has it show as a unwieldy long string. Is there any way to clean this up?
The formatted value (that is, the label text) is not accessible with the items API, so for now you would have to use another item to hold the formatted value, and do the formatting via a rule or do it in advance via a script.
I might allow some formatting in the widget though, I’ll think about it.
So you can use something like sprintf to format the value in the client. This is how the Paper UI does it. (Btw, you can probably look at a lot of code from the Paper UI as its “Control” page also work on item level (no sitemaps involved) and it is also done with AngularJS).
This is AWESOME!
I was thinking about trying something with Dashing but my knowledge is very limited so your project is a godsend! And I truly think that this is one thing that was always missing in OH.
The possibility to define a dashboard once and use it on other devices would be one of the more important features for me.
I’ve been working a little bit on the lack of a server side storage problem tonight and come up with a quick, probably (!) temporary solution until a new sitemap concept is introduced.
The above release is able to transparently store “panel configurations” in a service configuration property using the API.
This means you can now share the same dashboards to different devices if you use the same panel config in the new advanced settings page:
Once you switch from local storage to a panel configuration (by saving a new one using the provided link), it’s uploaded to the server when you save a change made in the designer.
You can inspect the configuration using Paper UI (Configuration > Services) or with the Karaf command line:
I have HABpanel installed by loading the code into the conf/html/habpanel directory (from github), to ensure I got updates as they were released, e.g. icon support.
Is the above feature also there or do I need to change to loading the JAR file into the addons directory? If yes, how often do you intend to update the JAR file?
The client-side commits are in a new “openhab2-panelui” branch which is also pushed to GitHub.
Meaning you have to load the new .jar file to have the service configuration and its description, but once you do that, you can keep on using your installation in conf/html, as long as you pull the “openhab2-panelui” branch from the HABpanel repo (for now). It will be merged to master eventually since it’s falling back to local storage gracefully if server support isn’t available.
Edit: .jar snapshots will be released from time of time, or if there’s a change on the server side.
I can confirm that the server storage is working well on my Windows (server & client) and iPad clients. Looks like a good solution and I like the ability to save multiple configurations on the server.