How rufusshrestha/izone works
iZone CLI Controller provides command-line and local web control of Airstream iZone systems. The main workflow is user command → CLI dispatch → system, zone, or schedule operations → HTTP requests to the controller, with responses formatted for the user. A local web server provides a separate UI/API path, with password and session handling; service installation and local configuration support those entry points. The README also documents Coolbreeze, ventilation, and advanced configuration capabilities. Relationships reflect shown calls, source-index references, or README documentation; unsampled wiring is omitted.
Main entry points: main.rs CLI dispatch · api.rs Controller API · web.rs Web server and API · system.rs System controls
Components 15
CLI workflow
- CLI dispatch
src/main.rs
Controller operations
- System controls
src/commands/system.rs - Zone controls
src/commands/zones.rs - Schedules
src/commands/schedules.rs - Controller API
src/api.rs
Web control
- Web server and API
src/web.rs - Web interface
src/web_ui.html - Password handling
src/web_auth.rs - Service management
src/web_install.rs
Configuration and security
- Response models
src/models.rs - Formatting helpers
src/helpers.rs - IP and zones
src/constants.rs
Other components
- CLI user
- iZone controller
- Web user
Connections 23
- CLI user → CLI dispatch: runs commands
README.md - CLI dispatch → System controls: dispatches controls
src/main.rs - CLI dispatch → Zone controls: dispatches zone actions
src/main.rs - CLI dispatch → Schedules: dispatches schedules
src/main.rs - CLI dispatch → Web server and API: starts web mode
src/main.rs - System controls → Controller API: sends requests
src/commands/system.rs - Zone controls → Controller API: queries controller
src/commands/zones.rs - Schedules → Controller API: manages schedules
src/commands/schedules.rs - Controller API → iZone controller: sends HTTP requests
src/api.rs - Web server and API → Controller API: queries and commands
src/web.rs - Web user → Web server and API: uses web controls
README.md - Web server and API → Web interface: serves interface
- Web server and API → Password handling: checks sessions
src/web.rs - Service management → Password handling: resets credentials
src/web_install.rs - CLI dispatch → Service management: manages service
src/main.rs - CLI dispatch → IP and zones: loads settings
src/main.rs - Controller API → IP and zones: uses controller address
src/api.rs - System controls → Formatting helpers: formats output
src/commands/system.rs - Zone controls → Formatting helpers: formats output
src/commands/zones.rs - Schedules → Formatting helpers: formats output
src/commands/schedules.rs - System controls → Response models: uses response types
src/commands/system.rs - Zone controls → Response models: uses response types
src/commands/zones.rs - Schedules → Response models: uses schedule types
src/commands/schedules.rs