How zambiq1128-star/ac-energy-saving-system works
This is a terminal-based, multi-room AC energy and cost simulator. The user workflow starts in the menu, obtains hourly outdoor temperatures (online or fallback), manages room inputs, then runs 24-hour simulations and reviews per-room costs, the highest-cost room, and Comfort-versus-Saving comparisons. The calculation layer models room heat, AC power, energy, and cost. Connections reflect the shown calls and README-described capabilities; unsampled behavior is represented only where documented.
Main entry points: main.py Menu workflow · ruangan.py Room management · cuaca.py Hourly weather data · perhitungan.py Simulation dispatch
Components 13
Application flow
- Menu workflow
main.py
Inputs and weather
- Input validation
masukan.py - Weather setup
main.py - Hourly weather data
cuaca.py
Rooms and simulation
- Room management
ruangan.py - Simulation dispatch
perhitungan.py - Room heat and AC model
perhitungan.py - Temperature statistics
perhitungan.py - Cost and comparison
perhitungan.py
Terminal output
- Menus and room views
tampilan.py - Simulation and cost reports
tampilan.py
Other components
- User
- Open-Meteo
Connections 17
- User → Menu workflow: selects actions
README.md - Menu workflow → Weather setup: initializes weather
main.py - Weather setup → Hourly weather data: requests temperatures
main.py - Hourly weather data → Open-Meteo: queries forecast
cuaca.py - Weather setup → Input validation: collects fallback data
main.py - Weather setup → Hourly weather data: uses fallback temperatures
main.py - Menu workflow → Room management: manages rooms
main.py - Room management → Input validation: validates room fields
ruangan.py - Room management → Menus and room views: displays room data
ruangan.py - Menu workflow → Input validation: reads settings
main.py - Menu workflow → Simulation dispatch: runs room simulations
main.py - Simulation dispatch → Room heat and AC model: simulates each room
perhitungan.py - Room heat and AC model → Temperature statistics: summarizes temperatures
perhitungan.py - Menu workflow → Cost and comparison: finds highest cost
main.py - Menu workflow → Simulation dispatch: compares forced modes
main.py - Menu workflow → Menus and room views: shows menus and charts
main.py - Menu workflow → Simulation and cost reports: prints simulation results
main.py