Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

        def loadPlaylist():
    sysCmd('mpc clear')    
    sysCmd('mpc load radio.pls')
        


src/m/e/mephisto_ii-HEAD/radio_rest.py   mephisto_ii(Download)
def radioControl(action):
    if(action ==  'load'):
        mpc.loadPlaylist()
    else:
        mpc.sysCmd('mpc ' + action)

src/m/e/mephisto_ii-HEAD/radio_control.py   mephisto_ii(Download)
    def stationButtonPressed(self):
        stationSelected = GPIO.input(ROTARY_PIN_BUTTON)
        if(stationSelected and self.lastLedPos != self.ledPos):
            self.lastLedPos = self.ledPos
            mpc.loadPlaylist()

src/m/e/mephisto_ii-HEAD/server.py   mephisto_ii(Download)
 
# Start mpc/mpd
mpc.loadPlaylist()
mpc.sysCmd('mpc play')