def d_cdPrev(packet): if not AIRPLAY: pB_audio.previous() writeCurrentTrack() WRITER.writeBusPacket('c8', '80', [ '23', '42', '32', '1e' ]) #clear IKEConsole LCD of messages before filling it with MPD info _displayTrackInfo()
def GET(self): getData = web.input(_method='get') if (getData.type == "add"): filePath = getData.path pB_audio.addSong(filePath) if (getData.type == "play"): filePath = getData.path pB_audio.playSong(filePath) if (getData.type == "remove"): filePath = getData.path pB_audio.removeSong(filePath) if (getData.type == "pause"): status = pB_audio.getInfo(currentTrackID) if status['status']['state'] == "stop": pB_audio.play() else: pB_audio.pause() if (getData.type == "next"): pB_audio.next() if (getData.type == "previous"): pB_audio.previous()
def d_cdPrev(packet): pB_audio.previous() writeCurrentTrack() _displayTrackInfo()
def d_cdPrev(packet): if not AIRPLAY: pB_audio.previous() writeCurrentTrack() pB_display.cleardisplay(): _displayTrackInfo()
def d_cdPrev(packet): if not BLUETOOTH: toDisplay = pB_audio.previous() pB_display.setQue(toDisplay)