diff --git a/docs/Sonoff-DIY.md b/docs/Sonoff-DIY.md index 3f5aca29ca..2e6f00c8f2 100644 --- a/docs/Sonoff-DIY.md +++ b/docs/Sonoff-DIY.md @@ -38,6 +38,12 @@ With curl: curl -XPOST --header "Content-Type: application/json" --data-raw '{"deviceid": "", "data": {}}' http://$SONOFF_IP:8081/zeroconf/info ``` +!!! note +`$SONOFF_IP` must be defined with the IP or FQDN of the intended Sonoff device before running the `curl` command. Example: +```sh +SONOFF_IP="10.0.0.2" +``` +
Or with the Rester browser extension: Install **Rester** extension in Chrome or Firefox or any other preferred tool to perform REST API operations. @@ -97,6 +103,12 @@ There are a number of [reported](https://github.com/itead/Sonoff_Devices_DIY_Too curl -XPOST --data "{\"deviceid\":\"\",\"data\":{\"downloadUrl\": \"http://sonoff-ota.aelius.com/tasmota-latest-lite.bin\", \"sha256sum\": \"$HASH\"} }" http://$SONOFF_IP:8081/zeroconf/ota_flash ``` +!!! note +`$HASH` must be defined with the `sha256sum` of the intended firmware file (the `.bin` file) before running the `curl` command. Example: +```sh +HASH="f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2" +``` + You're now ready to [configure tasmota](https://tasmota.github.io/docs/Getting-Started/#using-web-ui).