Hi,
ich habe noch einen Bug entdeckt. Die URL wird abgespielt, aber dennoch eine Warnung geworfen.
Error
Logik:
evtl. kannst du auch so eine sendMSG-Methode im Plugin bereitstellen.
gruss Buffi
ich habe noch einen Bug entdeckt. Die URL wird abgespielt, aber dennoch eine Warnung geworfen.
Error
Code:
2014-02-22 20:28:56 WARNING Sonos Could not send sonos notification: speaker/rincon_000e5886437201400/play_uri/set/http%3A%2F%2F192.168.0.11%2Fmp3%2Fwelcome.mp3. Error: ''
Code:
def playMSG (sh, logger, item, url, volume):
vol = item.volume()
item.volume(volume)
item.play_uri(url)
h,m,s=str(item.track_duration()).split(":")
sek = int(h)*3600+int(m)*60+int(s)+2
time.sleep (sek)
item.stop(1)
if cmd == 'Sonos aus':
logger.info("Sonos aus")
for item in sh.match_items('sonos.*.stop'):
item(1)
elif cmd == 'welcome':
playMSG (sh, logger, sh.sonos.kueche, '[URL]http://192.168.0.11/mp3/welcome.mp3[/URL]', 40)
gruss Buffi




Kommentar