Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Sonoff-DIY.md #1104

Merged
merged 1 commit into from
Nov 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/Sonoff-DIY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

<details>
<summary> Or with the Rester browser extension:</summary>
Install **Rester** extension in Chrome or Firefox or any other preferred tool to perform REST API operations.
Expand Down Expand Up @@ -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).

<!--
Expand Down