-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
After installing the hardware, you can start with setting up the software.
piTemp is written in Python 3. So, if you haven't already done, you have to install Python. As we'll use pip to install other dependencies, we have to install it too. On your Raspi use sudo apt-get install python3 python3-pip
.
piTemp stores it's sensor-configuration and all captured temperatures in a PostgreSQL database. If you want to store this data locally on your Raspi, you have to install PostgreSQL: sudo apt install postgresql libpq-dev
.
After installing PostgreSQL, you should also create a new user and database.
To get piTemp just clone the piTemp-Repo: git clone [email protected]:marcelb98/piTemp.git
. Change now to the new piTemp-directory.
Run sudo pip3 -r requirements.txt
to install all dependencies.
Run ./setup.py
to configure piTemp. This script will mainly save your database-configuration and create the tables for piTemp.
To save the current temperatures just run ./cron.py
. As the name says, this script is supposed to be run as a cronjob.
To start piTemp you have to run ./app.py
. After starting this script you can connect to piTemp on port 8080 over HTTP.
Click the gear-icon to manage your connected sensors.
On the left side you'll see all sensors connected to your Raspi. All sensors appearing on this side are physically connected to your system - which isn't implicating that they're configured. Click the small arrow to configure a sensor.
All configured sensors are listed on the right side. There you can see the name of the sensor and rename or delete the sensor. Keep in mind that deleting a sensor will also delete all saved temperatures measured by this sensor.