I try to build a small mpd-box with Raspberry Pi and Volumio.
A LCD is running (thanks to AndyPi) and I want to have some buttons to control mpd via mpc over GPIO.
Under older volumio versions it was running …
Now my problem is, that I cannot install
sudo apt-get install python-rpi.gpio
E: Unable to locate package python-rpi.gpio
E: Couldn't find any package by regex 'python-rpi.gpio'
sudo apt-get install python-dev
The following packages have unmet dependencies:
python-dev : Depends: python (= 2.7.3-4+deb7u1) but 2.7.5-5 is to be installed
Depends: python2.7-dev (>= 2.7.3-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
on raspberry add these line in your /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free r$
deb http://archive.raspbian.org/raspbian jessie main contrib non-free rpi
deb-src http://archive.raspbian.org/raspbian jessie main contrib non-free rpi
You have to do before installing most of package
Hello,
I did it like this:
change in /etc/apt/sources.list wheezy to jessie
sudo apt-get update
sudo apt-get install python-dev
Unfortunately I could not install gpio, so I got the gpio*.deb from the web and did:
sudo dpkg - i gpio???.deb
change in /etc/apt/sources.list jessie to wheezy
sudo apt-get update
My python gpio scripts are running now.
But there is a problem with the “mpc consume off” parameter.
It seems that this parameter is not persistent.
I set it in /etc/rc.local
su pi -c “mpc clear &”
su pi -c “mpc consume off &”
su pi -c “mpc load 1_Favoriten.pls &”
su pi -c “mpc repeat 1_Favoriten.pls &”
but the playlist is always empty after a few tracks …
This is a bug of current MPD version… Unfortunately it has consume mode on by default… I’m recompiling next version, expect to see it in next volumio version…