Release Audio Profiles (for Kodi 18 and later)
(2022-11-03, 09:52)Alex_1977 Wrote: 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.

Would be also great to run script auto on change of profile to change between different bluetooth speakers..let's say between soundbar and audio system...
Reply


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