njh / sonoff-ota-flash-cli

Bash script to perform an OTA (Over the Air) firmware update for Sonoff 'DIY Mode' device on the command line
http://sonoff-ota.aelius.com/
MIT License
134 stars 20 forks source link

manually call /zeroconf/ota_unlock #7

Closed jonascoenen005 closed 2 years ago

jonascoenen005 commented 2 years ago

Hello,

If i run the script, i'm getting the following error: Failed to create client object: Daemon not running

I'm running the Ubuntu app on windows installation.

Could you help me to see why this is happening? Thanks!

jonascoenen005 commented 2 years ago

Passing -i with the ip address seems to fix this issue!

jonascoenen005 commented 2 years ago

I had to manually call the http://ipaddress:8081/zeroconf/ota_unlock to unlock OTA, after that the script succeeded

njh commented 2 years ago

Sorry, I have never tried the script on Windows. To find the IP address automatically it needs the Avahai (Multicast DNS) daemon to be running (Linux). Or on Mac it uses the Mac OS Multicast DNS resolver.

Slightly odd that you had to run the OTA Unlock Manually but glad you got it working in the end.