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()
Beispiel #2
0
  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()
Beispiel #3
0
def d_cdPrev(packet):
    pB_audio.previous()
    writeCurrentTrack()
    _displayTrackInfo()
Beispiel #4
0
def d_cdPrev(packet):
  pB_audio.previous()
  writeCurrentTrack()
  _displayTrackInfo()
Beispiel #5
0
def d_cdPrev(packet):
  if not AIRPLAY:
    pB_audio.previous()
    writeCurrentTrack()
    pB_display.cleardisplay():
    _displayTrackInfo()
Beispiel #6
0
def d_cdPrev(packet):
    if not BLUETOOTH:
        toDisplay = pB_audio.previous()
        pB_display.setQue(toDisplay)