2024/01/31(Wed)古のRaspberry Piを使ったお手軽デジタルサイネージ

2024/01/31 0:41 Software::LinuxHardware::Raspberry Pi
LinuxGPIO102014Raspberry Pi 1B5-6使退

Raspi

使


SSH
AmazonGPIO



CGIcronmpg1233.5mm
PC
HTMLPerl

(X Window System)XFedora

Web
L

Raspi
TV

Raspberry Pi1B3W使30/kWh1651777
3W



 ScreenlyAnthias

WebScreenlyAnthias
ScreenlyOpen sourceScreenly OSEAnthiasOSS

Anthias

調Raspberry PiRaspberry Pi Imager使Raspberry Pi 1

Other specific-purpose OS > Anthias > Anthias (pi1)202212
screenly01.png
SDAnthias

Raspberry Pi OS

X Window SystemRaspi 110Raspberry Pi OS(Legacy, 32bit)

Raspberry Pi OSdesktop environmentRaspberry Pi OS (other)no desktop environment
$ bash <(curl -sL https://install-anthias.srly.io)

dockerSegmentation Fault
dockerARMv632bit CPU
CPUdocker

Screenly2024Raspberry Pi 1B

2022
Does latest Screenly OSE work on 2014 B+ V1.2 Pi? - Anthias Forum

2022dockerSegmentation Fault2018使
https://github.com/Screenly/Anthias/releases/tag/v0.142018-01-19-Screenly_OSE_4GB.zipSD
Usage32GBSD
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        30G  1.6G   27G   6% /
devtmpfs        182M     0  182M   0% /dev
tmpfs           186M     0  186M   0% /dev/shm
tmpfs           186M   21M  166M  11% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           186M     0  186M   0% /sys/fs/cgroup
/dev/mmcblk0p1   41M   21M   21M  51% /boot
tmpfs            38M     0   38M   0% /run/user/1000

Screenly

HTTPlistenRaspberry PiHDMIScreenlySSH

1. /SD
2. SDPC/boot/config.txt "hdmi_force_hotplug=1"
3. PCHDMIHDMI->VGA
# VGA変換するとHDMIのEDIDが正しく認識されないので無視
hdmi_ignore_edid=0xa5000080
# 解像度としてXGAになるようにしておく
hdmi_group=2
hdmi_mode=16
4. sudo raspi-config5 Inter
facing Options > P2 SSH > YesSSH Server


Web
$ sudo apt-get update && sudo install fonts-moto
mirrordirector.raspbian.or
gapt source
apt使URL退URL

$ sudo vi /etc/apt/sources.list
- deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
+ deb http://legacy.raspbian.org/raspbian/ stretch main contrib non-free rpi
$ sudo apt-get update && sudo install fonts-moto
fc-cache



Emergency modeEnterScreenly/boot/cmdline.txt"system.unit=kernel-network-.unit"
apt

EnterScreenlytty1
tty2Ctrl+Alt+F2tty2
$ sudo systemctl enable getty@tty2

Screenly

Screenly
URL
Google
screenly02.png
Start/EndOn


*1iframereloadweather.htmlJavaScript
User-Agent
Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/538.15 (KHTML, like Gecko) Version/8.0 Safari/538.15
"/home/pi/screenly/viewer.py"
uzbl-browseruzbl2016

 
*1 : 

FirefoxLinux


WebSelenium



X Windows System

async/await使Node.jsdnf installapt-get installselenium-drivernpm install

geckodrivergeckodriverPATHFirefox

target, output, interval調

headless1920x10801920x1196

XPathAJAXURL5

Ctrl+CSIGINTsystemdSIGTERMgeckodriverfirefoxsystemdexit30SIGABRT

systemdType=simple, KillMode=process, Restart=alwaysOK