mirror of
https://github.com/karl0ss/AnotterKiosk.git
synced 2025-07-28 03:00:16 +01:00
add hyperion.ng support
This commit is contained in:
parent
deebd533ce
commit
d755794ecf
@ -61,3 +61,4 @@ arm_boost=1
|
||||
|
||||
[all]
|
||||
avoid_warnings=1
|
||||
dtparam=spi=on
|
20
kiosk_skeleton/etc/hyperion/hyperion.config.json
Normal file
20
kiosk_skeleton/etc/hyperion/hyperion.config.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"device" :
|
||||
{
|
||||
"name" : "MyPi",
|
||||
"type" : "ws281x",
|
||||
"leds" : 50,
|
||||
"colorOrder" : "grb",
|
||||
"gpio" : 18,
|
||||
"freq" : 800000,
|
||||
"dmanum" : 5
|
||||
},
|
||||
|
||||
"grabber-framebuffer" :
|
||||
{
|
||||
"width" : 64,
|
||||
"height" : 64,
|
||||
"frequency_Hz" : 10.0,
|
||||
"priority" : 890
|
||||
}
|
||||
}
|
16
kiosk_skeleton/etc/systemd/system/hyperion.service
Normal file
16
kiosk_skeleton/etc/systemd/system/hyperion.service
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Hyperion ambient light systemd service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/hyperiond
|
||||
WorkingDirectory=/usr/share/hyperion/bin
|
||||
User=root
|
||||
Group=root
|
||||
TimeoutStopSec=5
|
||||
KillMode=mixed
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -12,3 +12,10 @@ APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Option
|
||||
# be less tested as the currently shipping kernel in the Raspberry Pi images.
|
||||
apt install -y rpi-update
|
||||
SKIP_CHECK_PARTITION=1 SKIP_WARNING=1 rpi-update
|
||||
|
||||
# Install Hyperion.ng
|
||||
wget -qO- https://apt.hyperion-project.org/hyperion.pub | gpg --dearmor -o /usr/share/keyrings/hyperion.pub
|
||||
echo "deb [signed-by=/usr/share/keyrings/hyperion.pub] https://apt.hyperion-project.org/ bookworm main" > /etc/apt/sources.list.d/hyperion.list
|
||||
apt update
|
||||
apt install -y hyperion
|
||||
systemctl enable hyperion.service
|
Loading…
x
Reference in New Issue
Block a user