Code: Select all
IP:8083/smarthome/#/?login=admin&password=admin
Code: Select all
root@raspberrypi:~# /usr/bin/curl http://192.168.1.3:8083/smarthome/\#/?login=admin\&password=admin -si -v 2>&1|head -20
* About to connect() to 192.168.1.3 port 8083 (#0)
* Trying 192.168.1.3...
* connected
* Connected to 192.168.1.3 (192.168.1.3) port 8083 (#0)
> GET /smarthome/ HTTP/1.1
> User-Agent: curl/7.26.0
> Host: 192.168.1.3:8083
> Accept: */*
>
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Date: Sun, 16 Aug 2015 16:47:14 GMT
< Last-Modified: Sun, 28 Jun 2015 20:58:13 GMT
< Etag: "55905fe5.5454"
< Content-Type: text/html
< Content-Length: 5454
< Connection: keep-alive
< Accept-Ranges: bytes
How do I authenticate in a non-browser environment? 2.0.1 broke my Amazon Echo integration, where it would run on command:
Code: Select all
#!/bin/bash
curl http://192.168.1.3:8083/ZAutomation/api/v1/devices/LightScene_29/command/on
sleep 120
curl http://192.168.1.3:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_45-0-98/command/close
curl http://192.168.1.3:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_53-0-98/command/close