Primo commit: Modbus logger con API e frontend

This commit is contained in:
IU2EUG committed 2025-09-06 20:49:49 +01:00
commit 48a6aee18f
10 files changed
+782

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# Modbus Logger (SDM230) + Web UI
- API FastAPI su `/api/...`
- Frontend web statico servito su `/` dalla cartella `web/`
- Log su SQLite `readings.db`
## Avvio
```bash
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python main.py
```
Apri il browser su `http://<IP_PI>:8000/`.
## Config
Vedi `config.yaml` (parametri seriali e registri).
## Service (systemd)
Aggiorna `modbus-logger.service` per puntare al venv.