diff --git a/pio-tools/post_esp32.py b/pio-tools/post_esp32.py index 3678cbf85..276b0c3ec 100644 --- a/pio-tools/post_esp32.py +++ b/pio-tools/post_esp32.py @@ -54,6 +54,14 @@ def esp32_build_filesystem(fs_size): for file in files: if "no_files" in file: continue + if "http" and "://" in file: + response = requests.get(file) + if response.ok: + target = join(filesystem_dir,file.split(os.path.sep)[-1]) + open(target, "wb").write(response.content) + else: + print("Failed to download: ",file) + continue shutil.copy(file, filesystem_dir) if not os.listdir(filesystem_dir): print("No files added -> will NOT create littlefs.bin and NOT overwrite fs partition!") diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index 90d13b59c..3fe8dbb14 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -19,6 +19,7 @@ build_flags = ${env:tasmota32_base.build_flags} -D FIRMWARE_TASM ; example for custom file upload in Tasmota Filesystem ; custom_files_upload = ${env:tasmota32_base.custom_files_upload} ; tasmota/berry/modules/Partition_wizard.tapp +; https://github.com/tasmota/autoconf/raw/main/esp32s3/DevKitC-1.autoconf ; *** Debug version used for PlatformIO Home Project Inspection [env:tasmota-debug]