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 0000000..d180f4b Binary files /dev/null and b/requirements.txt differ