[RPi] Hyperion.NG under OSMC (english)
Step 1: Activate SPI
Step 2: Install dependencies
Step 3: Compile and install Hyperion.NG
Step 4: Run Hyperion as a service
Connect with Putty to your RPi and enter the following command:
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:
edit: You can also go to My OSMC → Pi Config → Hardware Support → Enable SPI Support
The dependencies are installed via the following commands in Putty:
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
To compile and install Hyperion.NG, run this one-liners in Putty and cook your best tea or coffee.
wget -qO- https://raw.githubusercontent.com/hyperion-project/hyperion.ng/master/bin/compile.sh | sh -s hyperion Release install
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/
sudo nano /lib/systemd/system/hyperion.service
… and insert the following content in it.
Description=Hyperion ambient light systemd service
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.
sudo systemctl daemon-reload
sudo systemctl enable hyperion.service
sudo systemctl start hyperion.service