Thanks! works again!
Hi @tomitan
Iāve been slowly migrating to openhab 3. Iām not sure if there isnāt a marketplace binding anymore (maybe there is and i havenāt found it) but I dropped the 2.5.9 jar into the add ons folder and got this error:
16:32:47.142 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.bom-2.5.9-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.bom [238]
Unresolved requirement: Import-Package: org.eclipse.smarthome.core.library.types
at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.4]
I suppose my question is whether the latest jar is meant to work with openhab 3 or it needs to be migrated for it to work.
Update:
The same issue was affecting the Nest binding:
Looks like the binding needs to be updated for openhab 3:
I have also been Migrating some stuff to OH3
Looking forward to the BOM working.
Correct Lucasā¦ Iāve only built the NestDeviceAccess binding for OH2.5.x. By the way, @wborn did get an OH3 binding put on my earlier code. This should work with OH3 but it is development only at this point and Iāve made several updates to the OH2.5.x to include cameras, doorbells and Nest hub max devices since that port. i.e. This will work with Thermostats only.
-Brian
@tomitan Great plugin thanks! I had my own ftp extraction tool and http bindings but this was mess. This plugin makes it easier. I have noticed that I am getting a datetime object in the Min/Max Precipitation values like this:
I have done some fancy scripting and webviews to make this work in BasicUI but the values in the Min/Max are coming in for this particular day (tomorrow) that has a rain forecast.
My config:
I am using the org.openhab.binding.bom-2.5.9-SNAPSHOT.jar manually loaded into my addons folder.
Bridge bom:weather:default "BOM" @ "Hillarys" [
ftpPath="ftp://ftp.bom.gov.au/anon/gen/fwo",
observationProductId="IDW60920",
weatherStationId="95605",
precisForecastProductId="IDW14199",
areaId="WA_PT058",
cityTownForecastProductId="IDW12300",
observationRefreshInterval=15,
forecastRefreshInterval=30
]
Bridge bom:weather:swanbourne "BOM" @ "Swanbourne" [
ftpPath="ftp://ftp.bom.gov.au/anon/gen/fwo",
observationProductId="IDW60920",
weatherStationId="94614",
precisForecastProductId="IDW14199",
areaId="WA_PT058",
cityTownForecastProductId="IDW12300",
observationRefreshInterval=15,
forecastRefreshInterval=30
]
The display is being generated using the default station - I added the second station to give me some values that the Hillarys station does not generate like Dew Point and AP Temp.
Thursday is Day2 so the Items for this are:
String BOM_Day2_MinimumPrecipitation "Minimum Precipitation [%s]" <rain> {channel="bom:weather:default:day2#minPrecipitation"}
String BOM_Day2_MaximumPrecipitation "Maximum Precipitation [%s]" <rain> {channel="bom:weather:default:day2#maxPrecipitation"}
In the BOM ftp file IDW14199.xml I am pulling out WA_PT058 and for this day the record looks like this:
<forecast-period index="2" start-time-local="2020-12-10T00:00:00+08:00" end-time-local="2020-12-11T00:00:00+08:00" start-time-utc="2020-12-09T16:00:00Z" end-time-utc="2020-12-10T16:00:00Z">
<element type="forecast_icon_code">16</element>
<element type="precipitation_range">0 to 3 mm</element>
<element type="air_temperature_minimum" units="Celsius">22</element>
<element type="air_temperature_maximum" units="Celsius">35</element>
<text type="precis">Possible shower or storm.</text>
<text type="probability_of_precipitation">40%</text>
</forecast-period>
It shows a range of 0 to 3 mm which I assume should be what I am getting into Openhab?
Regards David
Hi guys, I will look into OH3 compatibility and other issues soon.
Guys, the openHAB3 version of the binding is now available here: BOM binding v3
Let me know if there is any problem.
Thank so much for the updated binding.
I downloaded the 3.0 JAR and popped it into the ADDONS folder and it is working well. I did have to restart openHAB (with a clean-cache for good measure) as the JAR didnāt seem to get picked up initially, which I donāt seem to remember doing for 2.0, but otherwise itās working well.
Thanks again
I know this probably isnāt related to BOM Binding directly, but it bugs me that the log output is directed to openhab.log rather than events.log.
How would I go about changing this output from openhab.log to events.log in OH3:
Here are the entries Iām talking about:
2021-01-05 09:29:55.004 [INFO ] [nhab.binding.bom.internal.BomHandler] - Processing precis forecast from FTP path: ftp://ftp.bom.gov.au/anon/gen/fwo/IDQ11295.xml, area ID: QLD_PT016
2021-01-05 09:29:56.258 [INFO ] [nhab.binding.bom.internal.BomHandler] - Successfully processed precis forecast data.
2021-01-05 09:29:56.258 [INFO ] [nhab.binding.bom.internal.BomHandler] - Processing city/town/district forecast from FTP path: ftp://ftp.bom.gov.au/anon/gen/fwo/IDQ10914.xml, area ID: QLD_PT016
2021-01-05 09:29:56.921 [INFO ] [nhab.binding.bom.internal.BomHandler] - Successfully processed city/down/district forecast data.
Not too sure, but Iāll look into it.
Hello - I successfully installed the BOM binding following the github instructions and everything worked fine for my openHABian install with OH3.0.0. However due to problems with getting influxdb and grafana working, i started from scratch again with a new openHABian install, this time with OH3.0.1 and ran into the follow problem.
I downloaded org.openhab.binding.bom-3.0.0-SNAPSHOT.jar from github into /usr/share/openhab/addons
The binding did not apperar dashboard so I stopped openhab, cleared the openhab cache and restarted, however Iām getting the following error in the logs:
2021-03-07 09:01:27.628 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.bo$
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.bom [208]
Unresolved requirement: Import-Package: org.apache.commons.lang; version="[2.6.0,3.0.0)"
at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.4]
021-03-07 08:49:55.191 [WARN ] [.transport.servlet.ServletController] - Can't find the request for http://10.1.1.78:8080/rest/events's Observer
Any idea what might be the problem might be here?
Platform information:
Hardware: RaspberryPI 4 2GB
OS: Linux openhabian 5.10.11-v7l+ #1399
OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS)
openHABian version: 3.0.1
Further searching found a similar issue raised on BOM github page, seems to point to the version of Java installed. The version that came with the openHABian was OpenJDK (which interestingly is not recommended), and instead suggests Oracle Java or Azul Zulu. Iām just not sure how Iād go about changing from OpenJDK to Oracle/Azul Java.
Update: my bad - Zulu is installed. Looking for other options to fix the Unresolved requirement: Import-Package issue.
The bom doesnāt appear in the bindings but it does appear if you ADD a thing.
Thanks @ubeaut. After adding the .jar file into the addons directory, it does not appear in Things for configuration. Inbox shows 0 items to configure.
Did you restart because from memory it didnāt appear until after that?
This is what I see when I press the plus sign to add a new thing:
I am using zulu java as well. I am running on Ubuntu 20.04 server.
If you go to the console of openhab:
ssh -p 8101 openhab@localhost
password: habopen
If you type:
bundle:list |grep Meteorology
YOu should see something like below:
247 ā Active ā 80 ā 3.0.0.202012171651 ā openHAB Add-ons :: Bundles :: Bureau of Meteorology
Ah I feel like an idiot - I didnāt click the plus icon. I assumed it would appear in the inbox. Sorted, thanks!!
Yes, I also did that which showed the bundle as active, which had me really confused. Thanks for the help!