Open electricbrain-code opened 2 years ago
Thanks - will try. Logs seem to show it supporting 3.0 only
2021-09-08 18:34:26.941 [ERROR] [Events.Framework ] - FrameworkEvent ERROR
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.bom [29]
Unresolved requirement: Import-Package: org.apache.commons.lang; version="[2.6.0,3.0.0)"
@electricbrain-code tip works.
2021-09-08 21:45:41.684 [INFO ] [nhab.binding.bom.internal.BomHandler] - Successfully processed city/down/district forecast data.
Here is a modified jar file that works in OH3.1
org.openhab.binding.bom-3.1.0.jar.zip
It was renamed to work around GitHub attachment restrictions.
You need to
org.openhab.binding.bom-3.1.0.jar
(dropping .zip
suffix) addons
directoryTried @electricbrain-code's hack for OH 3.2.0M1, but sadly it doesn't seem to work. The bundle is now showing:
269 │ Active │ 80 │ 3.2.0.M1 │ openHAB Add-ons :: Bundles :: Bureau of Meteorology
I'm looking in the OH3 admin interface for the BOM configuration UI, but I can't see anything obvious.
Am I doing something stupid?
I haven't upgraded to 3.2 yet and am still on openHAB 3.1.0
So you updated the manifest to 3.2 etc?
Same no upgrade to 3.2 at this stage.
i changed the MANIFEST.MF file and changed the 'Bundle-Version:' to '3.2.0.M1'. There's a line 'Tag="3.1.0"' in Bundle-SCM: - but I wasn't sure what this related to, so I left it.
Now when I run 'list' in the OpenHab console I get:
269 │ Active │ 80 │ 3.2.0.M1 │ openHAB Add-ons :: Bundles :: Bureau of Meteorology
Which is better than before, since this Bundle was showing 'Installed' only.
This is what I'm seeing in the OpenHAB UI
In the OpenUI 2.0 UI, there is a setup page for the BOM binding, but I'm not getting that in OH3 (though I'm not sure what to look for).
OH3 is moving pretty quickly at the moment and it's great to see bugs sorted and new features matured, but it's a pain when you want to use bindings that have a limited audience.
OH3 is moving pretty quickly at the moment and it's great to see bugs sorted and new features matured, but it's a pain when you want to use bindings that have a limited audience.
Now that 3.2 is very close - it'd be great to see this reconfigured for the Community Add-ons marketplace.
Hi all,
Version 3.2 of this add-on is now available. I will look into making this add-on available in the marketplace in the near future.
Here is the direct link to the jar Version 3.2.x
Regards, Tom
+1 again for marketplace. I've used one or two other community add-ons and it makes managing soooo much simpler :) Thanks either way
Hi all,
Version 3.2 of this add-on is now available. I will look into making this add-on available in the marketplace in the near future. Regards, Tom
Hi Tom, thanks for your work on this. It does not appear this has made it into the marketplace yet. I have been trying to adapt it to run on latest Openhab 4.0.0~M3 but alas is it beyond me. Can you provide any guidance on where to start ? Do you have a donation page? Happy to kick in something to get it moving, if that will help.
This is not really an issue. This is what I did to adapt org.openhab.binding.bom-3.1.0.M3 to make it work with production OH3.1.
Extract the manifest and hack it to say 3.1.0 instead of 3.1.0.M3 jar -xvf ../org.openhab.binding.bom-3.1.0.M3.jar META-INF/MANIFEST.MF vi META-INF/MANIFEST.MF jar uvf ../org.openhab.binding.bom-3.1.0.M3.jar META-INF/MANIFEST.MF mv org.openhab.binding.bom-3.1.0.M3.jar org.openhab.binding.bom-3.1.0.jar
Then install as per manual install instructions. Works like a charm. My images are all good and all data is good. I also installed the full dev environment because I didn't expect this to work as well as it did. Oh well.