ghys / habpanel-gauge-widget Goto Github PK
View Code? Open in Web Editor NEWGauge widget for HABPanel
License: Eclipse Public License 1.0
Gauge widget for HABPanel
License: Eclipse Public License 1.0
Currently the value display in the gauge is displayed as %.0f. It would be nice if that format was configurable.
For temperature ranges it would be nice to have additional zones to indicate "way too low, too low, OK, too high, way too high". It would also be nice if the color of the zones would be configurable.
Ref: https://community.openhab.org/t/custom-widget-gauge/27406
Template:
<div oc-lazy-load="['/habpanel-resources/gauge/gauge.directive.js']"
style="position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 20px);">
<gauge value="itemState(config.item) || config.min" label="ngModel.name" label-scale="config.label_scale"
unit="config.unit" min="config.min" max="config.max"
yellow-zone="config.yellow_zone" red-zone="config.red_zone" include-green-zone="config.include_green_zone"
major-ticks="config.major_ticks" minor-ticks="config.minor_ticks" />
</div>
I have been able to define config.min and config.max as a number, put in the values and it words great. But I failed with trying all the types "String,Number,Item" in value=itemState(config.item). then I changed the code a bit to value="config.item" and then it started taking numeric entries.
But still i am not able to set values dynamically in it using an mqtt item. My item is as below kindly help:
Number dummySensor "Dummy Sensor [%s]" {mqtt="<[mqtt-gt:home/dummySensor/status:state:default]"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.