X-Git-Url: http://git.rohieb.name/stratum0-wiki.git/blobdiff_plain/8ce2cb1030ae11ed00a1cd5af712aaf56dfc1736..00383786a9b1fec29a1427bb6b4c52ec6cbd12c9:/Infodisplay.mw diff --git a/Infodisplay.mw b/Infodisplay.mw index 94b2c9e29..3e2310773 100644 --- a/Infodisplay.mw +++ b/Infodisplay.mw @@ -23,19 +23,34 @@ Auf dem Infodisplay stehen relevante Informationen zur Verfügung: * Visualisiert Stromverbrauch und Netzwerkdinge im Spacenetz * IRC-Channel -Das ganze ist derzeit auf Full-HD optimiert. Da die Software auf einer [http://infodisplay.local:8000 Webseite] basiert (im Fullscreen angezeigt, aus dem Space-Netz erreichbar), ist sie theoretisch auf auf mehreren Displays deploybar. +Das ganze ist derzeit auf Full-HD optimiert. Da die Software auf einer [http://infodisplay.local:8000 Webseite] basiert (im Fullscreen angezeigt, aus dem Space-Netz erreichbar), ist sie theoretisch auf mehreren Displays deploybar. == Setup == Raspbian auf Raspberry Pi installieren. Dann: Pakete installieren: - sudo apt install git firefox-esr xserver-xorg-legacy xserver-xorg x11-xserver-utils cec-utils python3-rpi.gpio nodejs-legacy npm xinit + sudo apt -y install git firefox-esr xserver-xorg-legacy xserver-xorg x11-xserver-utils python3-rpi.gpio xinit libicu-dev unattended-upgrades cmake libp8-platform-dev libudev-dev # oder auch 'firefox', je nach Verfügbarkeit +Libcec mit RPI build system fix bauen: + git clone https://github.com/Emantor/libcec + cd libcec && mkdir build && cd build + cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib .. + +Darauf achten das nach dem cmake die Zeile + -- Raspberry Pi support: yes +auf yes steht. Dann: + make + sudo make install + sudo ldconfig + s0infodisplay macht lokal einen HTTP-Server und baut die HTML-Seite: git clone https://gitli.stratum0.org/kasalehlia/s0infodisplay/ cd s0infodisplay/ - npm install + virtualenv env + source env/bin/activate + pip install -r requirements.txt + python3 main.py infopoint-html startet einen Firefox im Vollbild: cd @@ -45,7 +60,7 @@ infopoint-html startet einen Firefox im Vollbild: echo 'URL="http://localhost:8000/"' | sudo tee /etc/default/infopoint-html systemd-logind session activation für den X-Server umgehen: - echo "allowed_users = anybody" | sudo tee /etc/X11/Xwrapper.config + sudo dpkg-reconfigure xserver-xorg-legacy # hier dann die dritte Option, "Anybody", auswählen systemd-Services installieren: sudo cp s0infodisplay/s0infodisplay.service s0infodisplay/pirscreencontrol.service infopoint-html/infopoint-html.service /etc/systemd/system/ @@ -53,3 +68,8 @@ systemd-Services installieren: sudo systemctl enable s0infodisplay.service sudo systemctl enable infopoint-html.service sudo systemctl enable pirscreencontrol.service + +=== Troubleshooting === +* Wenn das Display mit einem schwarzen Rahmen angezeigt wird + sudo raspi-config + -> 7 Advanced Options -> A2 Overscan ->