boblemaire / IoTaWatt

IoTaWatt Open WiFi Electric Energy Monitor
https://iotawatt.com
GNU General Public License v3.0
639 stars 177 forks source link

upgrading firmware on device with no internet access #334

Closed craftyguy closed 1 year ago

craftyguy commented 1 year ago

for various reasons, I have my iotawatt on a network that is completely isolated from the internet, so the firmware update mechanism that fetches/flashes firmware updates obviously doesn't work. is there a way to push firmware to it without giving it access to the internet? I'm able to connect a laptop to the same wifi network it is on, I just didn't see any obvious way to upload any updates, either through the web UI or some other API.

craftyguy commented 1 year ago

I found this set of instructions (https://community.iotawatt.com/t/manual-firmware-update/2502/7), and followed it but ran into some problems:

1) the file manager requires external resources from cloudflare's CDN, so it won't load on a network that is not connected to the internet. I was able to get around it by connecting to the internet, fetching the resource on my laptop, and reconnected to the isolated network the iotawatt is on

2) I get this error when i tell it to update to 02_07_05: Release file not validated.

I downloaded the firmware.bin from here, and renamed it to 02_07_05.bin before uploading it to /download on the device: https://github.com/boblemaire/IoTaWatt/releases/tag/02_07_05

boblemaire commented 1 year ago

The firmware release packet is at https://iotawatt.com/firmware/bin/02_07_05.bin

craftyguy commented 1 year ago

@boblemaire thank you, it worked perfectly!

would you accept a patch that adds this proceedure to the iotawatt documentation?