Airport Dusseldorf - waiting time for security check

Across Germany and other European countries waiting times at airports security check are increasing due to labor shortage.

I thought it’s time to add the airports waiting time into OpenHAB. Maybe others get inspired to do the same for their local airport, if they publish this information.

Requirements:

  1. HTTP Binding
  2. JSON Path Transformation

Here is my thing:

configuration:
  authMode: BASIC
  ignoreSSLErrors: false
  headers:
    - X-Requested-With=XMLHttpRequest
  baseURL: https://www.dus.com/api/sitecore/flightapi/WaitingTimes?lang=de
  delay: 0
  stateMethod: GET
  refresh: 600
  commandMethod: GET
  timeout: 3000
  bufferSize: 2048
channels:
  - id: WaitingTimeGateA
    channelTypeUID: http:number
    label: Waiting Time Gate A
    description: ""
    configuration:
      mode: READONLY
      stateTransformation: JSONPATH:$.data[?(@.gateTerminal=='A')].waitingTime
      unit: min
  - id: WaitingTimeGateB
    channelTypeUID: http:number
    label: Waiting Time Gate B
    description: null
    configuration:
      mode: READONLY
      stateTransformation: JSONPATH:$.data[?(@.gateTerminal=='B')].waitingTime
      unit: min
  - id: WaitingTimeGateC
    channelTypeUID: http:number
    label: Waiting Time Gate C
    description: null
    configuration:
      mode: READONLY
      stateTransformation: JSONPATH:$.data[?(@.gateTerminal=='C')].waitingTime
      unit: min
3 Likes

i get this error:
Bad Request
reponse of “https://www.dus.com/api/sitecore/flightapi/WaitingTimes?lang=de
Does this still work?

Yes, it should still work. Please make sure to set the header correctly as per the example above.