Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for OpenHAB 3.1 #9

Open
electricbrain-code opened this issue Aug 22, 2021 · 12 comments
Open

Update for OpenHAB 3.1 #9

electricbrain-code opened this issue Aug 22, 2021 · 12 comments

Comments

@electricbrain-code
Copy link

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.

@neutmute
Copy link
Contributor

neutmute commented Sep 8, 2021

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)"

@neutmute
Copy link
Contributor

neutmute commented Sep 8, 2021

@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

  1. Download
  2. Rename back to org.openhab.binding.bom-3.1.0.jar (dropping .zip suffix)
  3. Drop it into your openHAB addons directory

@David-E-Thomas
Copy link

Tried @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?

@neutmute
Copy link
Contributor

I haven't upgraded to 3.2 yet and am still on openHAB 3.1.0
image

So you updated the manifest to 3.2 etc?

@electricbrain-code
Copy link
Author

Same no upgrade to 3.2 at this stage.

@David-E-Thomas
Copy link

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
Screen Shot 2021-10-30 at 11 02 27 am

@David-E-Thomas
Copy link

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

@David-E-Thomas
Copy link

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.

@alackmann
Copy link

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.

@tomitan100
Copy link
Owner

tomitan100 commented Feb 16, 2022

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

@alackmann
Copy link

+1 again for marketplace. I've used one or two other community add-ons and it makes managing soooo much simpler :) Thanks either way

@iainwhyte
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants