Example #1
0
def d_cdNext(packet):
    if not AIRPLAY:
        pB_audio.next()
        writeCurrentTrack()
        WRITER.writeBusPacket('c8', '80', [
            '23', '42', '32', '1e'
        ])  #clear IKEConsole LCD of messages before filling it with MPD info
        _displayTrackInfo()
Example #2
0
def d_cdChange4(packet):
  logging.info("Running Custom 4")
  status = pB_audio.getInfo()
  if ('track' in status):
    trackStatus = status['track']
    if trackStatus:
      if ('album' in trackStatus):
          pB_audio.playSong(pB_audio.getNextAlbum(status['track']['album']))
          writeCurrentTrack()
          _displayTrackInfo()
      else:
           pB_audio.next()
           writeCurrentTrack()
           _displayTrackInfo()
Example #3
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()
Example #4
0
def d_cdNext(packet):
    pB_audio.next()
    writeCurrentTrack()
    _displayTrackInfo()
Example #5
0
def d_cdNext(packet):
  pB_audio.next()
  writeCurrentTrack()
  _displayTrackInfo()
Example #6
0
def d_cdNext(packet):
  if not AIRPLAY:
    pB_audio.next()
    writeCurrentTrack()
    pB_display.cleardisplay():
    _displayTrackInfo()
Example #7
0
def d_cdNext(packet):
    if not BLUETOOTH:
        toDisplay = pB_audio.next()
        pB_display.setQue(toDisplay)