-
Install Docker on the Raspberry Pi.
-
Ideally, connect the official Raspberry Pi Camera Module and configure it. Alternatively, every USB webcam should work.
-
Build the Docker image or pull the ready to run image from Docker Hub:
# build: docker build -t philenius/ahci-smart-mirror-project:arm-raspi-v2 -f DockerfileRaspberryPi . # or pull: docker pull philenius/ahci-smart-mirror-project:arm-raspi-v2
-
Copy the startup script
start-smart-mirror
to/home/pi/
. This startup script starts the Docker container and opens Chromium with every reboot of the Raspberry Pi. -
Add a cronjob to execute the startup script on every system reboot.
crontab -e
Add the following line:
@reboot DISPLAY=:0 /home/pi/start-smart-mirror.sh > /home/pi/cron.log 2>&1
docker build -t ahci .
cd ./app/
docker run -p 8080:8080 -v $(pwd):/usr/src/app ahci
-
Install Python 3.7.5 and Pip (or simply install Anaconda).
-
Install all dependencies:
cd ./app/ pip install -r requirements.txt
-
Run your app:
export AHCI_DEV=true \ AHCI_PORT=8080 \ AHCI_USE_RELOADER=true python main.py
Or simply run the start.sh script
-
See 1. at For bash
-
See 2. at For bash
# within the app directory $env:AHCI_DEV=$true $env:AHCI_PORT=8080 $env:AHCI_USE_RELOADER=$true python main.py
Or simply run the start.ps1 script
- All SVG graphics were edited with Gravit Designer.
- Attention: the SVG graphics were manually edited after exporting them from Gravit Designer in order to integrate fonts. This steps is required because the fonts used inside the SVG files do not represent standard fonts and are therefore not installed on most systems.
- Color Palette:
- Bright green:
#40e5ad
- Dark green:
#19bfa9
- Bright red:
#e4281d
- Dark red:
#b5060d
- Bright green: