updated readme

This commit is contained in:
2023-07-30 17:57:03 +02:00
parent 65f8d8567e
commit 2008e054db
3 changed files with 10 additions and 8 deletions

View File

@@ -7,16 +7,19 @@ Linux packages (apt)
Python3 packages (pip3)
> adafruit-circuitpython-dht mh-z19
The setup script installs these for you.
The setup script installs the python packages for you, you will have to install the apt packages yourself.
## Setup
1. Pull the repository.
1. Clone the repository.
1. Fill out your specific config options in `./server/.env`
1. Ensure `./server/scripts/climate-pinger.py` has the correct pin for your adafruit-dht22 device and/or edit the script for your specific setup.
1. Run `./setup.sh` as administrator
1. Run `sudo apt-get install python3 libgpiod2 npm mariadb-server`
1. Run `sh ./setup.sh` as user for the server
1. Make sure the server user has access to MySQL/MariaDB, and is in the groups `gpio` and `dialout`.
1. Start the server:
> npm start
1. Have fun!
## Usage