デジタルサイネージをRaspberry Piで実現する「Screenly」というソフトウェアを見つけました。実際にScreenlyのOpen Source Edition (OSE) を導入して試してみます。
ssh
という名前のファイルを置きますpi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l GNU/Linux
pi@raspberrypi:~ $ free -m
total used free shared buff/cache available
Mem: 923 41 654 11 227 817
Swap: 99 0 99
sudo raspi-config nonint do_hostname 新ホスト名
sudo raspi-config nonint do_change_timezone Asia/Tokyo
sudo raspi-config nonint do_wifi_country JP
sudo raspi-config nonint do_overscan 1
sudo reboot # いったん再起動する
bash <(curl -sL https://www.screenly.io/install-ose.sh)
# 入力を求められるのでそれぞれ次のように回答します
Do you still want to continue? (y/N) => y
Which version/branch of Screenly OSE would you like to install: => 1
You selected: Production
Do you want Screenly OSE to manage your network? This is recommended for most users because this adds features to manage your network. (Y/n) => y
Would you like to perform a full system upgrade as well? (y/N) => y
n
と回答しますInstallation completed.
You need to reboot the system for the installation to complete. Would you like to reboot now? (y/N) => n
sudo apt install fonts-noto
sudo vi /boot/config.txt # ファイルの最後に次の1行を追記
display_hdmi_rotate=3 # 表示を左に90度回転
Screenly OSEを用いると、URL指定でのウェブページ (自動スクロールはせず固定)、画像、動画をコンテンツとして表示するデジタルサイネージを手早く構築できるとわかりました。
各コンテンツの表示時間や有効期間も定めることができ、学校や仕事場、店頭などに置くシンプルなサイネージとしてはなかなか有用です。また、ベースにはRaspberry Pi OSが動いているので、決まった時間にシャットダウンさせるなどLinux的な仕掛けも組み込めますし、応用幅は工夫次第だと思います。
Raspberry Pi 3 Model B+のOSとして「Raspberry Pi OS Lite (64-bit) Released: 2022-01-28」 (Legacyではない) を選択した場合に、Screenlyの導入は成功するのかどうか。
私の場合は次のように途中でomxplayer
が導入できない問題にぶち当たり、解決方法がわからず導入を断念しました。
pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.92-v8+ #1514 SMP PREEMPT Mon Jan 17 17:39:38 GMT 2022 aarch64 GNU/Linux
sudo apt install python3-pip git python-dev-is-python3 whois
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
bash <(curl -sL https://www.screenly.io/install-ose.sh)
Do you still want to continue? (y/N) => y
Which version/branch of Screenly OSE would you like to install: => 1
You selected: Production
Do you want Screenly OSE to manage your network? This is recommended for most users because this adds features to manage your network. (Y/n) => y
Would you like to perform a full system upgrade as well? (y/N) => y
TASK [system : Install Screenly dependencies] ******************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'omxplayer' is available"}