Hi Folks,
I’m running Hyperion on my Vero4k but sometimes I want to switch off the effect for some reasons.
I grabbed myself some info for this at this site: How to: turn Hyperion on/off using your TV remote. | nadnerb.co.uk
This is focused towards a raspberry pi installment but I rewrote the script to my best knowledge to my Vero4k.
Unfortunately the Vero4k apperently goes in Black Screen and won’t react to anything anymore.
Has maybe someone a hint for me where I messed up?
My Script:
#!/bin/bash
if [
sudo systemctl status hyperion.service | grep running | wc -l
= 1 ]
then
curl -v -H “Accept: application/json” -H “Content-type: application/json” -X POST -d ‘{“id”:1,“jsonrpc”:“2.0”,“method”:“GUI.ShowNotification”,“params”:{“title”:“Hyperion”,“message”:“Aus”,“image”:“/home/osmc/Pictures/hyperion.png”}}’ http://127.0.0.1:8080/jsonrpc
sudo systemctl stop hyperion.serviceelse
curl -v -H “Accept: application/json” -H “Content-type: application/json” -X POST -d ‘{“id”:1,“jsonrpc”:“2.0”,“method”:“GUI.ShowNotification”,“params”:{“title”:“Hyperion”,“message”:“An”,“image”:“/home/osmc/Pictures/hyperion.png”}}’ http://127.0.0.1:8080/jsonrpc
sudo systemctl start hyperion.service
fi
I got the keymap under
/home/osmc/.kodi/userdata/keymaps
created with an Kodi addon.
The keymapping is like this (file is named gen.xml, the addon made it like so, maybe this is the fault?)
It seems that the blue key is not the for my remote.
If someone has a hint for me, that’d be great
Cheers
quintz