How raymundosoto/sistemas_inteligentes_hogar_inteligente works
1. This repository is a small two-part smart-home prototype: a Python web application for the user interface and an ESP32-C3 firmware project for the device side.
2. The top-level app.py is the main application entry point on the software side. The presence of templates/ and static/ strongly suggests a Flask-style server that renders HTML server-side and serves CSS/assets.
3. templates/index.html is the primary UI page. It is the browser-facing control/dashboard layer where the user interacts with the system.
4. static/style.css provides the presentation layer for that UI. It is a separate front-end asset, but still delivered by the Python web app rather than a separate front-end build toolchain.
5. ESP32_C3_app/servidor_esp32_app.ino is the embedded firmware project for the ESP32-C3. This is the hardware boundary of the system and likely contains the microcontroller logic that handles connectivity and device control.
6. The architecture therefore has two runtime environments:
- a Python process serving the web UI
- an ESP32-C3 running Arduino-style firmware on the device
These are separate deployables with different lifecycles.
7. The expected data flow is user/browser → Python web app → ESP32 device, with the UI acting as the control surface and the ESP32 acting as the actuator/sensor endpoint. Depending on the firmware, the ESP32 may also expose its own HTTP endpoints or receive commands from the server over the network.
8. There is no sign of a database, message broker, or cloud integration in the file tree. That implies a lightweight, direct-interaction architecture rather than a multi-service backend.
9. The README.md is minimal, so the repo does not document a larger platform around this code. The architecture is therefore best understood as a local smart-home demo or lab practice project.
10. For an architecture diagram, the key boundaries are:
- Browser/UI layer
- Python web server layer
- Wi-Fi/network boundary
- ESP32-C3 embedded device layer
- optional physical home device/sensor/actuator layer behind the ESP32
11. The main technology choices that matter architecturally are Python for the web backend, HTML/CSS for the UI, and Arduino firmware for the ESP32-C3. Those choices imply a simple, device-centric control system rather than a large distributed application.
Main entry points: app.py App server · servidor_esp32_app.ino ESP32 firmware · index.html Home page · style.css Styles
Components 7
Browser UI
User-facing control surface and rendered web assets.
Python App
Server-side web application that renders the UI and coordinates device control.
- App server · Main application entry point for the web UI and device coordination.
app.py
ESP32-C3
Embedded firmware boundary and physical device side.
- ESP32 firmware · Embedded ESP32-C3 application that handles device-side behavior.
ESP32_C3_app/servidor_esp32_app.ino - Home device · Physical smart-home hardware controlled or observed by the ESP32.
Other components
- Wi-Fi link · Communication path between the web app and the embedded device.
Connections 8
- Browser → App server: uses · The browser opens the web app and sends user actions.
- App server → Home page: renders · The server renders the primary HTML page.
- App server → Styles: serves · The server delivers the stylesheet with the page.
- App server → Wi-Fi link: sends commands · The Python app communicates device commands over the network.
- Wi-Fi link → ESP32 firmware: reaches · Wireless traffic reaches the ESP32-C3 firmware.
- ESP32 firmware → Home device: controls · Firmware drives or reads the attached home hardware.
- Home device → ESP32 firmware: feedback · Sensors or device state flow back to the firmware.
- Browser → Home page: views · The user sees the rendered dashboard page.