Wrong Documentation for binding weatherunderground? How to configure bridge and thing?

  • Platform information:
    • Hardware: raspberry pi 3 b
    • OS: Raspbian GNU/Linux 9 (stretch)
    • Java Runtime Environment: Java™ SE Runtime Environment (build 1.8.0_181-b13)
    • openHAB version: 2.3.0 (Build)

I configured the binding after the documentation as shown below:

Bridge weatherunderground:bridge:myAPI "myAPI" [ apikey="0000000000000" ] { 
    Thing weatherunderground:weather:local "local" [ location="48.000000, 13.000000", language="DL", refresh=15 ]
}

unfortunately I get the following error message:

Provide a thing type ID and a thing ID in this format:
 <thingTypeId> <thingId>

after some search here in the forum, I changed the configuraion then as follows:

Bridge weatherunderground:bridge:myAPI "myAPI" [ apikey="0000000000000" ] { 
    Thing weather local "local" [ location="48.000000, 13.000000", language="DL", refresh=15 ]
}

but is that correct? the error message is already gone …

there is a mistake in the documentation of the binding regarding bridge and thing.
Furthermore there is a bug in the demo.items, where the entry

"channel=weatherunderground:weather:CDG...." 

should be changed to

"channel=weatherunderground:weather:paris"

right? Can anyone confirm this?

https://www.openhab.org/addons/bindings/weatherunderground/#full-example

My further question would be, how do I define the items?
as an an example:

String Conditions "Conditions [%s]" {channel="weatherunderground:weather:local:current#conditions"}

There are some changes in the queue that will hopefully clear this up…

@Lolodomo There are no changes to demo.items in your PR. Does that file need to be updated?

Yes, I have updated the items too.

1 Like