No description
- Python 70.2%
- HTML 19.4%
- Nix 9%
- Shell 1.4%
| deploy | ||
| src/solar | ||
| .gitignore | ||
| .python-version | ||
| conf.toml | ||
| flake.lock | ||
| flake.nix | ||
| install.sh | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Data Collection and Visualization for a Solaranlage
Usage
This project consists of four parts, that can be enabled/disabled via conf.toml.
- collector: Collects the values of the specified topics and stores them in the database.
- display: Visualizes the specified topics on a simple display.
- webapp: Hosts a simple webapp to visualize the data in the database.
- fetch_all_topics: A tool to create a
topics.jsonwith all available topics + some info about them.
Deployment
Install via script
cd path/to/solar # go to project
./install.sh
Manual
curl -LsSf https://astral.sh/uv/install.sh | sh # install uv package manager for python
cd path/to/solar # go to project
uv sync # install dependencies
cp "./deploy/solar.service" "$HOME/.config/systemd/user/" # create systemd service
systemctl --user daemon-reload
systemctl --user enable solar
systemctl --user start solar # enable and start service
Configuration
cd path/to/solar # go to project
nano conf.toml # edit config file
systemctl --user restart solar # restart systemd service