curl befehl für get Jalousie position

Begonnen von Jochen0x90h, 13 November 2017, 20:46:43

Vorheriges Thema - Nächstes Thema

Jochen0x90h

Hallo,
Meine erste Testinstallation besteht aus einem Z-Wave-Stick an MacOS und einem Fibaro Roller Shutter 2. Jalousie ansteuern habe ich per curl hinbekommen, Position abfragen jedoch nur mit der Weboberfläche: get Jalousie position liefert z.b. position:Blind 58 Slat 50. Wie fragt man die Position per curl ab?

z.B. liefert curl -s -D - "http://localhost:8083/fhem?XHR=1&fwcsrf=$TOKEN&cmd=get+Jalousie+position"

folgende Header:
HTTP/1.1 200 OK
Content-Length: 0
X-FHEM-csrfToken: csrf_107363287796777
Content-Type: text/plain; charset=UTF-8

Ich hätte erwartet, dass im Content die Antwort steht, Content-Length ist aber 0. Im Chrome Debugger ist Content-Length jedoch 20.

amenomade

Also, nicht mit + sondern mit Leerzeichen (bzw. urlencoded = %20)
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Jochen0x90h

Hat leider keinen effekt (+ ist äquivalent zu %20)

curl -s -D - "http://localhost:8083/fhem?XHR=1&fwcsrf=$TOKEN&cmd=get%20Jalousie%20position"
HTTP/1.1 200 OK
Content-Length: 0

dev0

Wenn im log kein Hinweis zu finden ist (public ip, falscher token, ...), dann den verbose level mit "attr TYPE=FHEMWEB verbose 5" erhöhen und noch mal gucken.

Jochen0x90h

So sieht es im Log aus. Vielleicht hat "device gone" was zu bedeuten?

2017.11.15 21:12:46 3: ZWave get Jalousie position
2017.11.15 21:12:46 4: WEB: /fhem?XHR=1&fwcsrf=csrf_107363287796777&cmd=get%20Jalousie%20position / RL:0 / text/plain; charset=UTF-8 /  /
2017.11.15 21:12:46 3: WEB_127.0.0.1_54259 asyncOutput: device gone, output was: position:Blind 58 Slat 50