Busch Jäger iNet Radio with OH3

Hello community!

Some years ago i implemented my Busch Jäger iNet Radio in OH2.
I do that with the help of @MichaelBormann and his tutorial

Now in OH3 (3.0.2) this solution not run anymore.

Old Items

Number Badradio_Sender                "Sender"                          <radio1>            (gBad)                                  { http="<[http://192.168.1.27/de/index.shtml:5000:REGEX(.*Station (.):.*)] >[0:GET:http://192.168.1.27/de/general.cgi?es=1&ss=01] >[*:GET:http://192.168.1.27/de/index.cgi?p%2$s]" }      
Number Badradio_Volume                "Lautstärke [%d]"                 <soundvolume>       (gBad)                                  { http="<[http://192.168.1.27/de/index.shtml:5000:REGEX(.*size=5 maxlength=5 value=\"(.*?)\".*)] >[*:GET:http://192.168.1.27/de/index.cgi?vo=%2$s] "}                                              

Old Sitemap

Selection item=Badradio_Sender label="Sender:" mappings=[0="RADIO AUS", 1="Rai Südtirol", 2="Antenne Bayern", 3="Discofox FM", 4="Swiss Jazz", 5="Ö3", 6="Sunshine", 7="Chillout Lounge", 8="New York"]
		Setpoint  item=Badradio_Volume label="Lautstärke:" minValue=2 maxValue=30 step=2```


Someone can help me to solve this issue?

Maybe someone can take a look on this topic :pray:

Please read the documentation for the openHAB 3 HTTP Binding and try to configure accordingly.
If this does not work, you can show us your config and logs, then someone will shurely step in to help.

But we will not write your config, you should start yourself.

Hello community!

I never learned to program something, only learning by doing.
Because that find the correct configuration from nothing was very hard,
but after days and hours i was able to do it.

Maybe someone with the same radio need the solution…

The code for the webbased http binding configuration

UID: http:url:f68e90cfcc
label: HTTP Badradio
thingTypeUID: http:url
configuration:
  authMode: BASIC
  ignoreSSLErrors: false
  baseURL: http://192.168.1.27/
  delay: 0
  stateMethod: GET
  refresh: 30
  commandMethod: GET
  timeout: 3000
  bufferSize: 2048
location: Bad
channels:
  - id: badradio_sender
    channelTypeUID: http:number
    label: badradio_sender
    description: ""
    configuration:
      stateExtension: de/index.shtml
      stateTransformation: REGEX:.*Station (.):.*
      commandExtension: de/index.cgi?p%2$s
  - id: badradio_volume
    channelTypeUID: http:number
    label: badradio_volume
    description: ""
    configuration:
      stateExtension: de/index.shtml
      stateTransformation: REGEX:.*size=5 maxlength=5 value=\"(.*?)\".*
      commandExtension: de/index.cgi?vo=%2$s
  - id: badradio_sleep
    channelTypeUID: http:number
    label: badradio_sleep
    description: ""
    configuration:
      commandExtension: de/general.cgi?es=1&ss=01

The Items

//--> Badradio
Number Badradio_Sender                "Sender:"                          <radio1>            (gBad)                                               { channel="http:url:f68e90cfcc:badradio_sender" }    
Number Badradio_Sleep                 "Sleep"                                               (gBad)                                               { channel="http:url:f68e90cfcc:badradio_sleep" }         
Number Badradio_Volume                "Lautstärke: [%d]"                 <soundvolume>       (gBad)                                               { channel="http:url:f68e90cfcc:badradio_volume" }

The sitemap

Selection item=Badradio_Sender  mappings=[ 1="Rai Südtirol", 2="Antenne Bayern", 3="Discofox FM", 4="Swiss Jazz", 5="Ö3", 6="Sunshine", 7="Chillout Lounge", 8="New York"]
Switch    item=Badradio_Sleep   mappings=[ 0= "Start Sleep" ]
Setpoint  item=Badradio_Volume  minValue=2 maxValue=30 step=2