Closed wrcrooks closed 2 months ago
#!/bin/bash
download_file() {
yymmdd="$1"
wget "http://api2.qcwxkjvip.com/download/ota/R02_V3.0/R02_3.00.17_$yymmdd.bin" -O "R02_3.00.17_$yymmdd.bin"
if [[ $? -ne 0 ]]; then
echo "Failed to download file $yymmdd"
fi
}
for (( day=1; day <= 366; day++ )); do
yymmdd=$(date -d "2024-01-01 + $((day-1)) days" +%y%m%d)
download_file "$yymmdd"
done
-Courtesy of Google Gemini
Then simply delete all the files with a size of 0 bytes and you should have one binary with a larger size. There's probably a wget flag to not create a file when a 404 is received but I didn't take it that far.
Closing this non-issue :+1:
Scraped the OTA site and got the latest firmware version URL if anyone wants it. I'm planning on immediate customization. https://api2.qcwxkjvip.com/download/ota/R02_V3.0/R02_3.00.17_240903.bin I'll upload my bash script for downloading too, if anyone is interested.