[RPi] Hyperion.NG under OSMC (english)
Contents:
Step 1: Activate SPI
Step 2: Install dependencies
Step 3: Compile and install Hyperion.NG
Step 4: Run Hyperion as a service
Step 1:
Connect with Putty to your RPi and enter the following command:
Code:
sudo nano /boot/config.txt
Search for the line # dtparam = spi = on and remove the hash (hash) symbol in front of it.
Then save the file (Ctrl + o), quit nano (Ctrl + x) and restart your RPi with this command:
Code:
sudo reboot
edit: You can also go to My OSMC ā Pi Config ā Hardware Support ā Enable SPI Support
Activate SPI.
Step 2:
The dependencies are installed via the following commands in Putty:
Code:
sudo apt-get update sudo apt-get install git cmake build-essential qtbase5-dev libqt5serialport5-dev libusb-1.0-0-dev python3-dev libxrender-dev libavahi-core-dev libavahi-compat-libdnssd-dev libjpeg-dev libqt5sql5-sqlite rbp-userland-dev-osmc
Step 3:
To compile and install Hyperion.NG, run this one-liners in Putty and cook your best tea or coffee.
Code:
wget -qO- https://raw.githubusercontent.com/hyperion-project/hyperion.ng/master/bin/compile.sh | sh -s hyperion Release install
Step 4:
Youāve probably already drunk your hot drink?!?
Let us now turn to the automated execution (service) of Hyperion.NG.
With the following command (under Putty) you create a new file called hyperion.service under /lib/systemd/system/
Code:
sudo nano /lib/systemd/system/hyperion.service
ā¦ and insert the following content in it.
Code:
[Unit]
Description=Hyperion ambient light systemd service
After=network.target
[Service]
ExecStart=/usr/local/bin/hyperiond
WorkingDirectory=/usr/local/share/hyperion/bin
User=osmc
TimeoutStopSec=5
KillMode=mixed
Restart=on-failure
RestartSec=2
[Install]
WantedBy=multi-user.target
edit: do not forget to save (Ctrl + o) and finish (Ctrl + x) of nano.
Finally, restart the systemd service and activate / start the Hyperion.NG service.
Code:
sudo systemctl daemon-reload
sudo systemctl enable hyperion.service
sudo systemctl start hyperion.service
voilĆ