virtual http input

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Gast

    #1

    virtual http input

    Hi,

    I'm writing in English because my German is only good enough for me to be able to read (very slowly though), I hope you don't mind!

    I'm having some trouble with one virtual http input.
    I'm polling a page every minute, and the output is like this:

    {"version":1,"reqId":"1","result":"ok","error": "ui _alert_invalid","data": {},"state":1,"action":0,"cleaning": {"category":2,"mode":2,"modifier":1,"spotWidth" :0, "spotHeight":0},"details": {"isCharging":false,"isDocked":true,"isSchedule Ena bled":false,"dockHasBeenSeen":false,"charge":98}," availableCommands": {"start":true,"stop":false,"pause":false,"resum e": false,"goToBase":false},"availableServices": {"houseCleaning":"basic-1","spotCleaning":"basic-1","manualCleaning":"basic-1","easyConnect":"basic-1","schedule":"basic-1"},"meta": {"modelName":"BotVacConnected","firmware":"2.0. 0"} }
    As long as I request a number value, everything works fine.

    For example: "charge":\v gives me the number 98, which I can see in my user interface as 98% battery left.

    Now I'm stuck at getting a text value, I need the value listed after "error":"

    So in this case, I need ui_alert_invalid to be passed on to a "state" function block.

    No matter what I do, the output is always 0. I tried sending that string with a virtual text input to the state function block, and that works perfectly.
    So we know the state function block CAN receive text input, but it seems the virtual http input can not send them?

    If anyone could shed some light on this, that would be great!

    Wannes from Belgium.
  • romildo
    Lebende Foren Legende
    • 25.08.2015
    • 5144

    #2
    Ich denke das Thema wurde schon behandelt. Siehe hier.

    Bender
    Loxone http Eingang kann kein Text direkt weitergeben.
    lg Romildo

    Kommentar

    Lädt...