Skip to content

llego/farstuns-ansikte

Repository files navigation

Farstuns ansikte

Demo demo

Links

Steps

  • Install driver for Hyperpixel screen, instruction on pimoroni website, link above
  • sudo apt install imv python3-mqtt-paho
    • Won't work with mqtt-paho version 2.0. Only works with 1.6.)
  • Create services
    • sudo nano /lib/systemd/system/face-get-image.service
    • sudo nano /lib/systemd/system/face-refresh-screen.service

face-get-image.service

[Unit]
Description=Get image from double take mqtt and API
After=network.target

[Service]
Type=simple
ExecStart=/bin/python /home/llego/farstuns-ansikte/get-image.py
Restart=on-failure
RestartSec = 5
TimeoutStartSec = infinity
User=llego
Group=llego

[Install]
WantedBy=multi-user.target

face-refresh-screen.service

[Unit]
Description=Farstuns ansikte refresh screen
Wants=graphical.target
After=graphical.target

[Service]
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/llego/.Xauthority
Environment=XDG_RUNTIME_DIR=/run/user/1000
Type=simple
ExecStart=/bin/bash /home/llego/farstuns-ansikte/refresh-screen.sh
Restart=always
User=llego
Group=llego

[Install]
WantedBy=graphical.target

Enable and start services

sudo systemctl enable face-get-image.service --now
sudo systemctl enable face-refresh-screen.service --now

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published