Compare commits

...

3 Commits

Author SHA1 Message Date
f6c92c686b docs: update changelog for version 1.3.37
All checks were successful
Release Workflow / detect-provider (push) Successful in 3s
Release Workflow / github-release (push) Has been skipped
Release Workflow / gitea-release (push) Successful in 2m46s
2025-02-22 11:13:40 +01:00
b8db01529b docs: update webpages for version v1.3.37 2025-02-22 11:13:40 +01:00
55db6d76ab workflow: update ESP32-WROOM image header for SPIFFS binary creation 2025-02-22 11:13:07 +01:00
5 changed files with 24 additions and 13 deletions

View File

@ -40,9 +40,8 @@ jobs:
# Copy firmware binary # Copy firmware binary
cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/upgrade_filaman_firmware_v${VERSION}.bin cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/upgrade_filaman_firmware_v${VERSION}.bin
# Create SPIFFS binary with ESP32 image header # Create SPIFFS binary with ESP32-WROOM specific image header
# Create 16-byte ESP32 image header: (magic byte 0xE9, segment count 0x01, SPI mode DIO, SPI speed 40MHz, chip revision v3.1) echo -ne '\xE9\x01\x00\x00\x00\x00\x00\x00\x00\x30\x00\x00\x01\x03\x00\x00' > .pio/build/esp32dev/upgrade_filaman_website_v${VERSION}.bin
echo -ne '\xE9\x01\x00\x00\x46\x97\x00\x00\x00\x30\x00\x00\x03\x01\x00\x00' > .pio/build/esp32dev/upgrade_filaman_website_v${VERSION}.bin
# Append the actual SPIFFS data # Append the actual SPIFFS data
cat .pio/build/esp32dev/spiffs.bin >> .pio/build/esp32dev/upgrade_filaman_website_v${VERSION}.bin cat .pio/build/esp32dev/spiffs.bin >> .pio/build/esp32dev/upgrade_filaman_website_v${VERSION}.bin

View File

@ -47,9 +47,8 @@ jobs:
# Copy firmware binary # Copy firmware binary
cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/upgrade_filaman_firmware_v${VERSION}.bin cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/upgrade_filaman_firmware_v${VERSION}.bin
# Create SPIFFS binary with ESP32 image header # Create SPIFFS binary with ESP32-WROOM specific image header
# Create 16-byte ESP32 image header: (magic byte 0xE9, segment count 0x01, SPI mode DIO, SPI speed 40MHz, chip revision v3.1) echo -ne '\xE9\x01\x00\x00\x00\x00\x00\x00\x00\x30\x00\x00\x01\x03\x00\x00' > .pio/build/esp32dev/upgrade_filaman_website_v${VERSION}.bin
echo -ne '\xE9\x01\x00\x00\x46\x97\x00\x00\x00\x30\x00\x00\x03\x01\x00\x00' > .pio/build/esp32dev/upgrade_filaman_website_v${VERSION}.bin
# Append the actual SPIFFS data # Append the actual SPIFFS data
cat .pio/build/esp32dev/spiffs.bin >> .pio/build/esp32dev/upgrade_filaman_website_v${VERSION}.bin cat .pio/build/esp32dev/spiffs.bin >> .pio/build/esp32dev/upgrade_filaman_website_v${VERSION}.bin

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## [1.3.37] - 2025-02-22
### Changed
- update webpages for version v1.3.37
- workflow: update ESP32-WROOM image header for SPIFFS binary creation
## [1.3.36] - 2025-02-22 ## [1.3.36] - 2025-02-22
### Changed ### Changed
- update webpages for version v1.3.36 - update webpages for version v1.3.36

View File

@ -202,6 +202,16 @@
let response = this.responseText; let response = this.responseText;
try { try {
const jsonResponse = JSON.parse(response); const jsonResponse = JSON.parse(response);
// Handle progress updates
if (jsonResponse.progress !== undefined) {
const percent = jsonResponse.progress;
progress.style.width = percent + '%';
progress.textContent = Math.round(percent) + '%';
return;
}
// Handle success/error messages
response = jsonResponse.message; response = jsonResponse.message;
if (jsonResponse.restart) { if (jsonResponse.restart) {
@ -218,12 +228,9 @@
}, 1000); }, 1000);
} }
} catch (e) { } catch (e) {
if (!isNaN(response)) { console.error('JSON parse error:', e);
const percent = parseInt(response); status.textContent = 'Update failed: Invalid response from server';
progress.style.width = percent + '%'; status.classList.add('error');
progress.textContent = percent + '%';
return;
}
} }
status.textContent = response; status.textContent = response;

View File

@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[common] [common]
version = "1.3.36" version = "1.3.37"
#test #test