HTTP-Binding - Need help with XPATH-Transformation

Hello i installed the http binding and the xpath transformation. I want to extract the content " [PRE-ORDER] RadioMaster Zorro" from the website https://www.radiomasterrc.eu/shop/transmitters/zorro/radiomaster-zorro/. I installed a thing with the http binding, created a channel and an item. Using a Chrome-Addon “xpath” i could extract the correct xpath expression “/html/body/div[2]/main/div/div[2]/div/div[1]/div/div[2]/h1”. I checked it with the xpath-helper Plugin from Chrome and it is correct. When i put this into the item, i get the full page, but not the content i want. It seems this problem is similar to this thread. https://community.openhab.org/t/oh3-http-binding-xpath-no-values/124018/13 There where problems with the namespaces. Unfortunately i am not able to get my xpath expression work. Could anybody help me please? Thank you very much

I suppose you need to show us what you mean by this because this normally wouldn’t be any part of the Item. Assuming you are using the HTTP binding it would go in the Channel.

Show your Thing and Item configs.

Ok. I put it into the channel link…

Thats my thing config…

UID: http:url:48c3de8d4b
label: Zorro_Test
thingTypeUID: http:url
configuration:
  authMode: BASIC
  ignoreSSLErrors: false
  baseURL: https://www.radiomasterrc.eu/shop/transmitters/zorro/radiomaster-zorro/
  delay: 0
  stateMethod: GET
  refresh: 3600
  commandMethod: GET
  timeout: 3000
  bufferSize: 2048
channels:
  - id: "8767890076"
    channelTypeUID: http:string
    label: Zorro_Test_01
    description: ""
    configuration: {}

Unfortunately not working…

OH3: HTTP-Binding / XPATH - no values - #15 by Dave_Baldwin is exactly the problem i have…

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.