From 799976eea396143efb7b91904d84561b24b57377 Mon Sep 17 00:00:00 2001 From: Michael Ingraham <34340210+meingraham@users.noreply.github.com> Date: Tue, 20 Aug 2019 10:11:42 -0400 Subject: [PATCH] Updated Sonoff DIY (markdown) --- Sonoff-DIY.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Sonoff-DIY.md b/Sonoff-DIY.md index ff91a29d..aeaef042 100644 --- a/Sonoff-DIY.md +++ b/Sonoff-DIY.md @@ -77,13 +77,16 @@ This procedure is recommended for MacOS. ### Flash the firmware and confirm - Test with /zeroconf/info POST: >$ curl http://_\_: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 at /zeroconf/ota_unlock >$ curl http://_\_:8081/zeroconf/ota_unlock -XPOST --data '{"deviceid":"1000988699","data":{} }' - _**{"seq":2,"error":0}**_ + > + >_**{"seq":2,"error":0}**_ - Flash firmware at /zeroconf/ota_flash >$ curl http://_\_:8081/zeroconf/ota_flash -XPOST --data '{"deviceid":"1000988699","data":{"downloadUrl": "http://_\_/sonoff-basic.bin", "sha256sum": "1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9"} }' - _**{"seq":2,"error":0}**_ + > + >_**{"seq":2,"error":0}**_ - Ping the device for about 30 seconds until it has rebooted