add hyperion.ng support

This commit is contained in:
Karl 2025-07-18 10:20:48 +01:00
parent deebd533ce
commit d755794ecf
4 changed files with 46 additions and 2 deletions

View File

@ -61,3 +61,4 @@ arm_boost=1
[all]
avoid_warnings=1
dtparam=spi=on

View 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
}
}

View 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

View File

@ -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