Skip to content

HW-PiCollector is an open-source project that captures energy data using Raspberry Pi and HomeWizard sensors. This system efficiently syncs data to a Cassandra database, enabling smart metering and analysis. πŸ™πŸ’»

License

Notifications You must be signed in to change notification settings

PRATIK123213/HW-PiCollector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

HW-PiCollector 🌍⚑

HW-PiCollector License Stars Forks

HW-PiCollector is a lightweight and modular data collection system for residential energy monitoring. It leverages HomeWizard devices (P1 and kWh 1/3-phase meters) connected to a Raspberry Pi, collecting electricity consumption and production data in real-time.

Table of Contents

Features

  • Real-Time Data Collection: Collects electricity consumption and production data instantly.
  • Modular Design: Easily extendable to include more sensors or devices.
  • HomeWizard Compatibility: Works seamlessly with HomeWizard P1 and kWh meters.
  • Raspberry Pi Integration: Designed to run on Raspberry Pi, making it affordable and accessible.
  • Data Visualization: Offers tools to visualize your energy usage and production.

Installation

To install HW-PiCollector, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/PRATIK123213/HW-PiCollector.git
    cd HW-PiCollector
  2. Install Dependencies:

    Use Ansible to set up the required dependencies.

    ansible-playbook setup.yml
  3. Configure Your Devices:

    Ensure your HomeWizard devices are connected and configured properly.

Usage

To start collecting data, run the following command:

python main.py

This will initiate the data collection process. You can check the logs for any errors or issues.

Configuration

The configuration file is located in the config directory. You can edit config.yaml to set your device parameters and data storage options.

Example Configuration

homewizard:
  device_id: "YOUR_DEVICE_ID"
  api_key: "YOUR_API_KEY"

storage:
  type: "cassandra"
  host: "localhost"
  port: 9042

Data Storage

HW-PiCollector supports various data storage options. By default, it uses Cassandra for time-series data. You can configure this in the config.yaml file.

Setting Up Cassandra

To set up Cassandra, follow these steps:

  1. Install Cassandra:

    sudo apt-get install cassandra
  2. Start Cassandra:

    sudo service cassandra start
  3. Create Keyspace:

    Connect to Cassandra and create a keyspace for storing data.

    CREATE KEYSPACE energy_data WITH REPLICATION = { 'class': 'SimpleStrategy', 'replication_factor': 1 };

Monitoring and Visualization

To visualize your energy data, you can use Grafana or any other visualization tool compatible with your data storage solution.

Setting Up Grafana

  1. Install Grafana:

    sudo apt-get install grafana
  2. Start Grafana:

    sudo service grafana-server start
  3. Access Grafana:

    Open your browser and go to http://localhost:3000. Use the default login credentials to access the dashboard.

  4. Add Data Source:

    Configure Grafana to connect to your Cassandra database.

Contributing

We welcome contributions! If you want to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push to your fork and create a pull request.

License

HW-PiCollector is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or issues, please reach out to the maintainer:

Releases

You can find the latest releases and download the necessary files from the Releases section. Make sure to download and execute the files as needed.

Conclusion

HW-PiCollector offers a robust solution for monitoring energy usage in residential settings. With its modular design and real-time data collection, it empowers users to make informed decisions about their energy consumption. We encourage you to explore the features and contribute to the project. Thank you for your interest!

About

HW-PiCollector is an open-source project that captures energy data using Raspberry Pi and HomeWizard sensors. This system efficiently syncs data to a Cassandra database, enabling smart metering and analysis. πŸ™πŸ’»

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages