Hi!
I am using Runeaudio 0.3 on a Raspberry Pi model B rev 2. I'm working on a python script to be able to control playback from physical buttons. mpc is working fine, but i have some questions regarding spop control.
How do I control spop from within a python script? Suppose i can start the spop interface with
os.system('telnet localhost 6602')
but I don't see how I would be able to run any commands in that spop environment directly from the python script. Is there a command line alternative?
Playback of playlists with
play pl
works fine, but when I try to access a playlist via its URI with
uplay URI
I get the error {"error":"invalid argument (should be a Spotify URI)"}. I use the alphanumeric part of the URI, like for example 6w1flrevUNvTMovb1mpsM0 but with no success.
I swith between backends using
curl http://127.0.0.1/command/?switchplayer=Spotify
and
curl http://127.0.0.1/command/?switchplayer=MPD
, respectively.