9 lines
273 B
Bash
9 lines
273 B
Bash
# Install base OS (Debian) packages.
|
|
apt update && apt upgrade -y && apt install python3-dev python3-pip python3-psycopg2 libgpiod2 -y
|
|
|
|
# Install Python modules.
|
|
pip3 install RPi.GPIO psycopg2 adafruit-circuitpython-dht
|
|
|
|
# Start the python script.
|
|
/usr/bin/python3 main.py
|