https://github.com/olekspickle/pv-simulator
Simulate power levels with solar panel
https://github.com/olekspickle/pv-simulator
Last synced: 2 months ago
JSON representation
Simulate power levels with solar panel
- Host: GitHub
- URL: https://github.com/olekspickle/pv-simulator
- Owner: olekspickle
- Created: 2022-11-18T17:12:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-23T15:41:15.000Z (6 months ago)
- Last Synced: 2025-03-17T19:02:34.832Z (2 months ago)
- Language: Rust
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pv-simulator
## Overview
The idea is to simulate **PV generator** values interaction of Solar panels
and building consumption measured by a Meter.Consuption is measured by **meter** and then added to RabbitMQ instance.
From the rmq instance **PV generator** then takes values of a meter
and outputs summarized values.The simulation should record each second with the meter values 0-9000 Watts.
The end result of a simulation is a CSV file.
## How to run
Run `start.sh` to start RabbitMQ container and run prebuilt release binary or
manually run commands:1. Run rabbitmq:
```bash
docker compose up
```2. Run the app:
```bash
RUST_LOG=info cargo run
```