I've been trying to get a slider I have on my web server to control the volume of my Sonos.
Code: Select all
suffix = eg.event.suffix;
eg.globals.example='hejsan hoppsan';
try :
volume = int(suffix[suffix.find(".")+1:]);
except Exception:
volume = 0;
else:
eg.plugins.Sonos.VolumeSet(volume, 0)
eg.globals.masterVolumeStr = str(volume);Code: Select all
eg.plugins.Sonos.VolumeSet(volume, 0)I'm lacking "eg.plugins.Sonos.VolumeSet-SONOSPLAYERID(volume, 0)" here and can't figure out how to write it.
My examples are for the Sonos plugin - but my question is meant for all plugins - thanks in advance!