Release Audio Profiles (for Kodi 18 and later)
Hi,

I solved my problem with a python file executed in the callbacks addon (when playback started or resumed).
Something like this :

import xbmc
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup (26, GPIO.OUT) # pin 37 sortie pour relay
GPIO.setup (14, GPIO.OUT) # pin 8 sortie pour led bp

path = xbmc.getInfoLabel('Player.Folderpath')
if "Musique" in path or "musicales" in path:
    GPIO.output(26, GPIO.HIGH)
    GPIO.output(14, GPIO.HIGH)
else:
    GPIO.output(26, GPIO.LOW)
    GPIO.output(14, GPIO.LOW)

Possible to test the streaming too : is_internetstream = xbmc.getCondVisibility('Player.IsInternetStream') # (returns TRUE or FALSE)

I think it would be great to have this possibility in the audio profiles addon, for the ones who want to turn on/off lights, amps ...

Alex.
Reply


Messages In This Thread
RE: Audio Profiles (for Kodi 18 and later) - by Alex_1977 - 2022-11-03, 09:52
Logout Mark Read Team Forum Stats Members Help
Audio Profiles (for Kodi 18 and later)0