From 03940742d3a0ad775e943dfe3d45c19ce94f301b Mon Sep 17 00:00:00 2001 From: Felix Schneider Date: Sat, 23 Nov 2024 15:02:18 +0100 Subject: [PATCH] Remove solar forecast systemd files --- .gitignore | 4 ++-- README.md | 6 +----- ...-controller-just-solar-forecast.service.example | 14 -------------- ...ter-charge-controller-just-solar-forecast.timer | 10 ---------- 4 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 systemd/inverter-charge-controller-just-solar-forecast.service.example delete mode 100644 systemd/inverter-charge-controller-just-solar-forecast.timer diff --git a/.gitignore b/.gitignore index ab5c91a..f2c6823 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,6 @@ .idea **/__pycache__ .env -systemd/inverter-charge-controller.service -systemd/inverter-charge-controller-just-solar-forecast.service +!systemd/inverter-charge-controller.service +systemd/inverter-charge-controller* logs/ diff --git a/README.md b/README.md index 76f2b5a..6f41465 100644 --- a/README.md +++ b/README.md @@ -208,14 +208,10 @@ If you pass in `--solar-forecast` as an argument to `main.py` the programm just This can also be used to log the solar prediction after the sun has set to see how far off the solar prediction was and get a sense of how good the predication was (→ not as a *forecast* but as a *review*). To correctly display the log message use `--solar-review` in this case. -There is also a systemd configuration with a service and a timer that does the latter: daily at 11:00 PM log the solar *forecast* from the API. - #### Monitor solar forecast prediction and power buy -You can monitor how far the prediction of the solar forecast was off and how much power was bought with the script [solar_forecast_and_power_buy_logger.sh](solar_forecast_and_power_buy_logger.sh). +You can monitor how far the prediction of the solar forecast was off and how much power was bought with the script [solar_forecast_logger.sh](solar_forecast_logger.sh). It saves the following data: - ` of logs>/power_buy.log`: `\t\t` - ` of logs>/solar_forecast_difference.log`: `\t\t` - -This can automatically be run after the review of the solar forecast, see [systemd/inverter-charge-controller-just-solar-forecast.service](systemd/inverter-charge-controller-just-solar-forecast.service). diff --git a/systemd/inverter-charge-controller-just-solar-forecast.service.example b/systemd/inverter-charge-controller-just-solar-forecast.service.example deleted file mode 100644 index f82825f..0000000 --- a/systemd/inverter-charge-controller-just-solar-forecast.service.example +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description = "Software that logs the solar forecast of the day" -After=network-online.target -Wants=network-online.target - -[Service] -WorkingDirectory= # Change here -ExecStart=/.venv/bin/python3.11 /source/main.py --solar-review # Change here -ExecStopPost=/solar_forecast_and_power_buy_logger.sh # Change here -User= # Change here -StandardOutput=null - -[Install] -WantedBy=default.target diff --git a/systemd/inverter-charge-controller-just-solar-forecast.timer b/systemd/inverter-charge-controller-just-solar-forecast.timer deleted file mode 100644 index 43f5b3a..0000000 --- a/systemd/inverter-charge-controller-just-solar-forecast.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description = "Timer: Software that logs the solar forecast of the day" - -[Timer] -OnCalendar=Mon..Sun 23:00 -RandomizedDelaySec=0 -Persistent=true - -[Install] -WantedBy=timers.target