From 49e52d9613df81995a1148f09e40bb8cb6cf27c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20S=C3=B6derberg?= Date: Sun, 29 Mar 2026 12:45:37 +0200 Subject: [PATCH] Updated README and added requirements.txt --- README.md | 18 ++++++++++++------ requirements.txt | Bin 0 -> 110 bytes 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index aff9b27..4a7968a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ Code for the indoor Weather Station +## Step 0: Copy file to Raspberry Pi and setup + +`scp -r [!.]* weather@weatherstation:~/weather-station` + +Create the `.env` and the .venv for python and install the requirements + ## Step 1: Install and Pass the "Variable" Move the template file to the system folder and reload the daemon: @@ -15,14 +21,14 @@ Move the template file to the system folder and reload the daemon: Now, when you enable and start the service, you **append your actual username** right after the `@` symbol. -If your username was `pi-user`: +If your username was `weather`: * **Enable it to start on boot:** - `sudo systemctl enable weather-station@pi-user.service` + `sudo systemctl enable weather-station@weather.service` * **Start the script right now:** - `sudo systemctl start weather-station@pi-user.service` + `sudo systemctl start weather-station@weather.service` --- @@ -30,12 +36,12 @@ If your username was `pi-user`: * **To see if it's running:** - `sudo systemctl status weather-station@pi-user.service` + `sudo systemctl status weather-station@weather.service` * **To read the live console output (like seeing the print statements):** - `sudo journalctl -u weather-station@pi-user.service -f` + `sudo journalctl -u weather-station@weather.service -f` *(Press `Ctrl+C` to exit the log view)* * **To manually restart it (if you update your code):** - `sudo systemctl restart weather-station@pi-user.service` + `sudo systemctl restart weather-station@weather.service` diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..d180f4b91c5e865102af454bba535a007e67c399 GIT binary patch literal 110 zcmXZUNeX~45Jb_x7CefFQX?b~HL;`KUM(6oJv@qfpTJIIVdJ8wBQdj5$hsz%!bntV dkXL2fuSuCKzx_YdQ8_hD33D@bMM;on?GM~o6x;v+ literal 0 HcmV?d00001