Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ hvx Public

HVX - Building Performance on Existing Building

License

bruadam/hvx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

HVX CLI - Indoor Environmental Quality & Energy Analytics

A comprehensive command-line tool for analyzing Indoor Environmental Quality (IEQ) and energy efficiency data in buildings. HVX provides an interactive workflow that guides you through data loading, standards selection, hierarchical analysis, and professional report generation.

Features

  • 🎯 Interactive Workflow - Guided step-by-step analysis process
  • πŸ“Š Hierarchical Analysis - Portfolio, building, level, and room-level insights
  • πŸ“‹ Standards Compliance - EN16798-1, BR18, Danish Guidelines, and more
  • πŸ“ˆ Rich Visualizations - Extensible chart library with multiple chart types
  • πŸ“„ Professional Reports - HTML and PDF reports with customizable templates
  • 🏒 Multi-Building Support - Analyze entire building portfolios
  • πŸ” Data Quality Metrics - Comprehensive data validation and quality scoring
  • 🎯 Smart Recommendations - AI-powered improvement suggestions
  • πŸ”Œ Extensible - JSON-first architecture for easy integration

Quick Start

# Clone repository
git clone https://github.com/bruadam/hvx.git
cd hvx

# Install
pip install -e .

# Start interactive IEQ analysis
hvx ieq start

# Or start with a specific data directory
hvx ieq start --directory data/samples/sample-extensive-data

Installation

From Source

# Clone repository
git clone https://github.com/bruadam/hvx.git
cd hvx

# Install in development mode
pip install -e .

# Verify installation
hvx --version

Requirements

  • Python 3.9+
  • See setup.py for full dependencies

Documentation

πŸ“š Complete CLI Documentation

πŸ“– Additional Resources

Command Overview

Indoor Environmental Quality (IEQ)

hvx ieq start                          # Start interactive IEQ analysis workflow
hvx ieq start --directory <path>       # Start with specific data directory
hvx ieq start --auto                   # Run with default settings (non-interactive)
hvx ieq info                           # Show IEQ terminology and concepts

Energy Efficiency

hvx energy                             # Energy analysis commands (coming soon)

Settings & Configuration

hvx settings                           # Manage HVX settings and configurations

Interactive Workflow

HVX provides a guided, step-by-step workflow for IEQ analysis:

# Start the interactive workflow
hvx ieq start

The workflow guides you through:

  1. Load Building Data - Point to your data directory containing building sensor data
  2. Select Building Type - Office, school, residential, healthcare, or mixed
  3. Choose Standards - Select compliance standards (EN16798-1, BR18, Danish Guidelines)
  4. Process Analytics - Automated hierarchical analysis at portfolio, building, level, and room levels
  5. Explore Results - Interactive exploration of analysis results and metrics
  6. Generate Reports - Create professional HTML/PDF reports using templates
  7. Export Data - Save analytics data in various formats (JSON, Excel, CSV, Markdown)

For automation or scripting:

# Run with defaults (no prompts)
hvx ieq start --directory data/my-buildings --auto

# Start from a specific directory
hvx ieq start --directory data/samples/sample-extensive-data

Data Format

Directory Structure (for portfolio analysis)

data/
└── buildings/
    β”œβ”€β”€ building-1/
    β”‚   β”œβ”€β”€ climate/
    β”‚   β”‚   └── climate-data.csv
    β”‚   └── sensors/
    β”‚       β”œβ”€β”€ room1.csv
    β”‚       └── room2.csv
    └── building-2/
        └── sensors/
            └── room1.csv

CSV Format

All CSV files require:

  • timestamp column in ISO 8601 format
  • Sensor columns: temperature, co2, humidity, occupancy, etc.
timestamp,temperature,co2,humidity,occupancy
2024-01-01 00:00:00,20.5,450,55,0
2024-01-01 01:00:00,20.3,430,54,0

See Data Commands Documentation for detailed format requirements.

Architecture

Analysis Pipeline

Directory Structure β†’ Data Loader β†’ Dataset (Pickle)
                                      ↓
                                   Analysis Engine
                                      ↓
                              Hierarchical Results (JSON)
                                      ↓
                            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                         Reports            Dashboards

Output Structure

output/
β”œβ”€β”€ dataset.pkl              # Loaded data
β”œβ”€β”€ dataset.json            # Data summary
β”œβ”€β”€ analysis/               # Analysis results
β”‚   β”œβ”€β”€ portfolio.json
β”‚   β”œβ”€β”€ buildings/*.json
β”‚   β”œβ”€β”€ levels/*.json
β”‚   └── rooms/*.json
β”œβ”€β”€ charts/                 # Generated charts
└── reports/                # PDF reports

Configuration

Standards and Tests

HVX includes built-in support for multiple IEQ standards:

  • EN16798-1 - European standard for indoor environmental parameters (Categories I-IV)
  • BR18 - Danish Building Regulations 2018
  • Danish Guidelines - Danish indoor climate guidelines

Standards are configured during the interactive workflow or can be customized in:

  • src/core/analytics/ieq/config/standards/ - Standard definitions (EN16798-1, BR18, Danish Guidelines)
  • config/report_templates/ - Report templates (building_detailed.yaml, portfolio_summary.yaml)

See the interactive workflow documentation for configuration details.

Development

Running Tests

# Run test workflow
./tests/test_hvx_workflow.sh

# Run specific tests
pytest tests/

Project Structure

analytics/
β”œβ”€β”€ src/                    # Source code
β”‚   β”œβ”€β”€ cli/               # CLI commands
β”‚   β”œβ”€β”€ core/              # Core analytics engine
β”‚   β”œβ”€β”€ models/            # Data models
β”‚   β”œβ”€β”€ services/          # Service layer
β”‚   β”œβ”€β”€ graphs/            # Chart library
β”‚   └── reporting/         # Report templates
β”œβ”€β”€ config/                # Configuration files
β”œβ”€β”€ docs/                  # Documentation
β”œβ”€β”€ tests/                 # Test files
└── output/               # Generated outputs

Examples

Complete Analysis Example

# Start interactive workflow
hvx ieq start --directory data/samples/sample-extensive-data

# The interactive workflow will guide you through:
# 1. Confirming data directory and loading buildings
# 2. Selecting building type (office, school, etc.)
# 3. Choosing applicable standards (EN16798-1, BR18, etc.)
# 4. Running hierarchical analysis
# 5. Exploring results
# 6. Generating reports
# 7. Exporting data

Automated Analysis

# Run with defaults (non-interactive)
hvx ieq start --directory data/samples/sample-extensive-data --auto

# Results will be saved to:
# - output/analysis/ - Analysis results (JSON)
# - output/reports/ - Generated reports (HTML/PDF)

Get IEQ Information

# Show IEQ terminology and concepts
hvx ieq info

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

GNU General Public License v3.0 - See LICENSE for details

Support

Acknowledgments

Built for facility management and building performance analysis. Open source, transparent, and extensible.

Releases

No releases published

Packages

No packages published