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.
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:
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.