Smart Camera ESP32
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
Loading...
Searching...
No Matches
update_index_html Namespace Reference

Functions

 update_index_html (source, target, env)
 

Detailed Description

@file update_web_ui.py
@brief PlatformIO Build Hook for Automated Web UI Compression.

This script runs automatically before the ELF binary is linked. It performs 
the following workflow:
1. Locates the source 'web_ui.html' file outside the firmware source tree.
2. Compresses the HTML/CSS/JS content using Gzip to minimize Flash usage.
3. Generates a C++ compatible byte array and updates 'index_html.h'.
4. Injects the new byte array and updated length constant using Regex.

This ensures that any changes made to the Web UI are reflected in the 
firmware without manual hex-conversion or copy-pasting.