How frankcrispin/casa_termostato works
This is a browser-based smart-home simulation: users inspect a 3D house and adjust room and simulation controls; a Python server advances the home model and returns state to the interface. The model covers occupancy routines, comfort learning, heating and cooling, air quality, alerts, and history. The excerpts show the server routes and 3D interactions, but not the full page or all state-refresh wiring, so those relationships are kept narrow.
Main entry points: app.py Home state · casa3d.js 3D house view · index.html Web page · OrbitControls.js Orbit controls
Components 12
3D interface
- Web page
index.html - 3D house view
static/casa3d.js
HTTP server
- HTTP routes
app.py - Simulation loop
app.py
Home simulation
- Home state
app.py - Occupancy routines
app.py - Comfort learning
app.py - Thermal and air model
app.py - Alerts and history
app.py
Rendering dependencies
- Orbit controls
static/OrbitControls.js - Three.js
Other components
- Home user
Connections 15
- Home user → Web page: uses
- HTTP routes → Web page: serves
app.py - Web page → 3D house view: hosts
- 3D house view → Orbit controls: imports
static/casa3d.js - 3D house view → Three.js: imports
static/casa3d.js - Orbit controls → Three.js: imports
static/OrbitControls.js - Home user → 3D house view: interacts
static/casa3d.js - 3D house view → HTTP routes: posts controls
static/casa3d.js - HTTP routes → Home state: updates
app.py - HTTP routes → Home state: returns state
app.py - Simulation loop → Home state: advances
app.py - Home state → Occupancy routines: applies
app.py - Home state → Comfort learning: trains and consults
app.py - Home state → Thermal and air model: simulates
app.py - Home state → Alerts and history: records and checks
app.py