Hello,
I want to modify hyperion for see effect when music is playing.
Hyperion is hable to detect when kodi play music.
I want, when kodi play music, to set a visual effect (the same of the boot for example).
Where I can modify the source code for do that ?
Thanks !
Effect when music is playing
- sylvaing26
- Erledigt
-
-
-
Many thanks !
I have to modify this line and recompile hyperio or I can modify direclty on my Pi ?
Where is it ?If I add : _hyperion->setEffect("Rainbow mood", 1, ""); after line 123
and : _hyperion->allChannelsCleared(); after line 128 -
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
Alles anzeigenimport 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')
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!