OK

Wir verwenden Cookies, um Inhalte und Anzeigen zu personalisieren, Funktionen für soziale Medien anbieten zu können und die Zugriffe auf unsere Website zu analysieren. Außerdem geben wir Informationen zu Ihrer Nutzung unserer Website an unsere Partner für soziale Medien, Werbung und Analysen weiter. Details ansehen

picframe – install with pip env on raspberry pi bookworm

1 Star2 Stars3 Stars4 Stars5 Stars (2 Bewertung, Ø 5,00 von 5)
Loading...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#create new pyhton environment
python -m venv envpicframe
#switch to python environment
source envpicframe/bin/activate
# install picframe via pip
pip install picframe
#start picframe - will create default config
picframe -i .
# if this fails - try to install sdl2
sudo apt install libsdl2-dev -y
# and run picframe i . again - this will create picframe_data folder
#adjust config
sudo nano picframe_data/config/configuration.yaml
 
#run picframe and test config
 /usr/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml
 
#add autostart config
sudo nano /etc/systemd/system/picframe.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# picframe.service content
[Unit]
Description=Picframe autostart
After=multi-user.target
 
[Service]
Type=idle
 
User=root
ExecStart=/home/pi/envpicframe/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml
 
#Restart=always
 
[Install]
WantedBy=multi-user.target
1
2
3
4
#enable picframe service
sudo systemctl enable picframe.service
#start service
sudo systemctl start picframe.service

more is available here: https://github.com/helgeerbe/picframe/wiki/Getting-Started

Autor: Markus

Arbeitet im wunderschönen Augsburg. Spezialisiert auf die Bereiche Enterprise WebCMS, SEO und was sonst so anfällt :-)

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre, wie deine Kommentardaten verarbeitet werden.