zvldz / mgl03_fw

Xiaomi Gateway v3 firmwares and update manuals
228 stars 42 forks source link

workaround wget/curl issues #20

Open gartz opened 1 year ago

gartz commented 1 year ago

I was trying to follow the tutorial to update my gateway, but I found a problem.

When running the commands, the network would not find the files to be downloaded, I don't know why, but it would try to use IPv6 instead of IPv4 and say that the network is unavailable.

From the gateway telnet I could ping and do HTTP requests to the Home Assistant.

My workaround solution was to enable the www folder in the /config of the Home Assistant, then download the script to that folder, then use wget http://<hass_ip_address>:8123/local/mgl03_update.sh then execute the script.

This way it worked for me.

Thanks for the wonderful work, I hope this instruction can contribute to anyone that is having the same issue as I was.

brainiac19 commented 1 year ago

I ended up creating an apache server with docker. Hope this helps docker ppl. BTW I guess manually nslookup for ipv4 address should work as well.