Skip to content

just-kile/magic-mirror

Repository files navigation

Magic Mirror

Architecture

Architecture Diagram

Run

  • SSh to PI
  • Start vnc server vncserver
  • Switch to Python env workon cv

Switch Display

via ssh

xrandr -display :0 --output HDMI-1 --rotate left

automatic

https://askubuntu.com/a/885247

# create /etc/xdg/autostart/setscreen.desktop
[Desktop Entry]
Name=Set Screen Rotation
Exec=/bin/bash -c "sleep 10 && xrandr --output HDMI-1 --rotate left"
Type=Application
chromium-browser http://localhost:3000 --auto-open-devtools-for-tabs

Bullseye setup

Buster Setup

sudo raspi-config Interface Options -> activate camera Display Options -> disable underscan Display Options -> disable Screen blanking

Hide Mouse

https://blog.gordonturner.com/2020/06/30/raspberry-pi-full-screen-browser-2020-05-27-raspios-buster/

sudo apt-get install -y unclutter x11-xserver-utils
mkdir -p ~/.config/lxsession/LXDE-pi
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi
sudo nano .config/lxsession/LXDE-pi/autostart

Docker

Install

sudo apt update
sudo apt upgrade

## Install Docker. Raspian doesn't support repository install
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

## Allow non-root
sudo usermod -aG docker $USER
newgrp docker 

## Testing
docker run hello-world

Building

https://github.com/bastilimbach/docker-MagicMirror https://forum.magicmirror.builders/topic/6345/facial-recognition-module-step-by-step-guide https://github.com/nischi/MMM-Face-Reco-DNN https://www.losant.com/blog/how-to-access-the-raspberry-pi-camera-in-docker

Starting

export DISPLAY=:0 && chromium http://localhost -start-fullscreen
docker exec -it magic_mirror /bin/bash

# Test 
/opt/vc/bin/raspistill -o output.jpg

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published