mirror of https://github.com/arendst/Tasmota.git
Updated Sonoff DIY (markdown)
parent
4dd836993c
commit
3ece7b2554
|
@ -84,6 +84,8 @@ We've found here our ID is **1000988699**
|
||||||
$ shasum -a 256 sonoff-basic.bin
|
$ shasum -a 256 sonoff-basic.bin
|
||||||
1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9
|
1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9
|
||||||
~~~~
|
~~~~
|
||||||
|
Our SHA256 sum is **1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9**
|
||||||
|
|
||||||
|
|
||||||
### Flash and confirm
|
### Flash and confirm
|
||||||
- Test with /zeroconf/info POST:
|
- Test with /zeroconf/info POST:
|
||||||
|
@ -91,12 +93,12 @@ $ shasum -a 256 sonoff-basic.bin
|
||||||
$ curl http://192.168.1.164:8081/zeroconf/info -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
$ curl http://192.168.1.164:8081/zeroconf/info -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
||||||
{"seq":2,"error":0,"data":"{\"switch\":\"off\",\"startup\":\"off\",\"pulse\":\"off\",\"pulseWidth\":500,\"ssid\":\"sonoffDiy\",\"otaUnlock\":false}"}
|
{"seq":2,"error":0,"data":"{\"switch\":\"off\",\"startup\":\"off\",\"pulse\":\"off\",\"pulseWidth\":500,\"ssid\":\"sonoffDiy\",\"otaUnlock\":false}"}
|
||||||
~~~~
|
~~~~
|
||||||
- Unlock OTA updates
|
- Unlock OTA updates at /zeroconf/ota_unlock
|
||||||
~~~~
|
~~~~
|
||||||
$ curl http://192.168.1.164:8081/zeroconf/ota_unlock -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
$ curl http://192.168.1.164:8081/zeroconf/ota_unlock -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
||||||
{"seq":2,"error":0}
|
{"seq":2,"error":0}
|
||||||
~~~~
|
~~~~
|
||||||
- Flash firmware
|
- Flash firmware at /zeroconf/ota_flash
|
||||||
~~~~
|
~~~~
|
||||||
$ curl http://192.168.1.164:8081/zeroconf/ota_flash -XPOST --data '{"deviceid":"1000988699","data":{"downloadUrl": "http://192.168.1.80/sonoff-basic.bin", "sha256sum": "1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9"} }'
|
$ curl http://192.168.1.164:8081/zeroconf/ota_flash -XPOST --data '{"deviceid":"1000988699","data":{"downloadUrl": "http://192.168.1.80/sonoff-basic.bin", "sha256sum": "1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9"} }'
|
||||||
{"seq":2,"error":0}
|
{"seq":2,"error":0}
|
||||||
|
|
Loading…
Reference in New Issue