Hi,
finally, to preserve hyperion's updates, I've found this solution :
create a autoexec.py file in /home/pi/.kodi/userdata with this content
The hyperion service doesn't listen music playing.
Code
import xbmc,xbmcgui
import subprocess,os
EFFET = 0
os.system('/usr/share/hyperion/bin/hyperion-remote --clear')
while(1):
if xbmc.Player().isPlaying():
if xbmc.Player().isPlayingAudio():
xbmc.log("#EFFET AUDIO ON#",level=xbmc.LOGNOTICE)
if EFFET == 0 :
EFFET = 1
os.system('/usr/share/hyperion/bin/hyperion-remote --effect "Full color mood blobs"')
else:
if EFFET == 1 :
xbmc.log("#EFFET AUDIO OFF#",level=xbmc.LOGNOTICE)
EFFET = 0
os.system('/usr/share/hyperion/bin/hyperion-remote --clear')
else:
if EFFET == 1 :
EFFET = 0
os.system('/usr/share/hyperion/bin/hyperion-remote --clear')
Alles anzeigen