The services need to run in a virtual environment on the Raspberry Pi.
-
Install the required packages from
apt
:sudo apt install python3-venv python3-pip sudo apt install --upgrade python3-setuptools
-
Clone the repo from github:
git clone https://github.com/jmgrady/rpi-setup
-
Create the virtual environment and install CircuitPython:
cd hw-services ./new-venv
A reboot will probably be required when complete.
-
Synchronized the venv with the pinned drivers:
./update-venv
If
requirements.in
has been modified or to update the versions of the python dependencies, runupdate-venv
with thebuild
option. This will first updaterequirements.txt
with the new module requirements.
To setup the Display IP service, run:
ansible-playbook install-display-ip.yaml --limit <IP of RPi>, -K
To setup the Temperature Logger service, run:
ansible-playbook install-temp-logger.yaml --limit <IP of RPi>, -K
- There must be a comma after the IP address of the Raspberry Pi so that Ansible does not interpret the IP address as a hostname.