In the openHAB console, type bundle:list, you should see a line like this:
189 | Active | 80 | 2.1.0.201704261153 | Gauge widget for HABPanel
In Paper UI, go to Configuration > Services > UI (tab) > Configure HABPanel > Expert mode - post a screenshot of that screen. Maybe you simply have no HABPanel configuration yet, in this case the bundle would not install the widget.
@UglyKidJoe I assumed you were running openHAB on Windows since you posted a Windows Explorer screenshot…?
Anyways, on openHABian the addons folder should be /usr/share/openhab2/addons (documentation) - that’s where you should copy the bundle’s .jar file.
But your second screenshot also tells your HABPanel configuration is empty. So before you copy the .jar into the addons folder (or remove it if it’s already there), go to your HABPanel’s advanced settings and click the “Save the current configuration to a new panel configuration” link and give it a name. This will create the config. Then copy the .jar file.
Thanks Yannick. God spot on the windows installation! I only use that to test things when I’m away from home, so the schoolboy error was that I put the .jar in the windows installation and not my Pi.
I seem to have solved the problem. If anyone else is having the same issue my problem was that I still had an older habpanel .jar file in my addon folder. I removed this and then reinstalled habpanel in the paper UI and now all is working properly
Hi guys,
independently of the fact that this topic is quite old I try to get this addon working.
It seems that I have the same issue like others: The add-on is loaded and active (I see it in the OH console) but the widget is not available in HABpanel.
Would be great if someone who got it working provide some addional hints for me.
Hi, sorry for the delay, I just happen to find this in a suggested topics list.
IIRC I made a “clone widget” feature in HABPanel’s custom widgets list (in the original gauge widget tile’s context menu) which will copy it to a regular custom widget that you can edit. Then you should find hardcoded values for the colors in the code.
Revisiting this code it appears the default colors are defined here, in the directive’s JS file:
What you can do, to keep things simple, is save the file above (click on the Raw button on GitHub) in the html folder of your configuration (maybe in a gauge subfolder), modify it as you see fit, then modify the code of the widget in HABPanel changing oc-lazy-load="['/habpanel-resources/gauge/gauge.directive.js']" to oc-lazy-load="['/static/gauge/gauge.directive.js']"
Looks ok, what do you mean by “no effect”?
Did you change the source? Try adding console.log('hello') somewhere to confirm the right file is being loaded, check the console in the developers tools of your browser.