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.
- Features
- Installation
- Usage
- Configuration
- Data Storage
- Monitoring and Visualization
- Contributing
- License
- Contact
- Releases
- 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.
To install HW-PiCollector, follow these steps:
-
Clone the Repository:
git clone https://github.com/PRATIK123213/HW-PiCollector.git cd HW-PiCollector -
Install Dependencies:
Use Ansible to set up the required dependencies.
ansible-playbook setup.yml
-
Configure Your Devices:
Ensure your HomeWizard devices are connected and configured properly.
To start collecting data, run the following command:
python main.pyThis will initiate the data collection process. You can check the logs for any errors or issues.
The configuration file is located in the config directory. You can edit config.yaml to set your device parameters and data storage options.
homewizard:
device_id: "YOUR_DEVICE_ID"
api_key: "YOUR_API_KEY"
storage:
type: "cassandra"
host: "localhost"
port: 9042HW-PiCollector supports various data storage options. By default, it uses Cassandra for time-series data. You can configure this in the config.yaml file.
To set up Cassandra, follow these steps:
-
Install Cassandra:
sudo apt-get install cassandra
-
Start Cassandra:
sudo service cassandra start
-
Create Keyspace:
Connect to Cassandra and create a keyspace for storing data.
CREATE KEYSPACE energy_data WITH REPLICATION = { 'class': 'SimpleStrategy', 'replication_factor': 1 };
To visualize your energy data, you can use Grafana or any other visualization tool compatible with your data storage solution.
-
Install Grafana:
sudo apt-get install grafana
-
Start Grafana:
sudo service grafana-server start
-
Access Grafana:
Open your browser and go to
http://localhost:3000. Use the default login credentials to access the dashboard. -
Add Data Source:
Configure Grafana to connect to your Cassandra database.
We welcome contributions! If you want to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push to your fork and create a pull request.
HW-PiCollector is licensed under the MIT License. See the LICENSE file for details.
For any questions or issues, please reach out to the maintainer:
- Name: Pratik
- Email: pratik@example.com
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.
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!