Raspberry Pi: Volumio, a new Music Player (and it works out-the-box!).

18

January 30, 2014 by aubreykloppers

PLEASE REFER TO:

https://aubreykloppers.wordpress.com/2018/01/08/volumio-2-and-adafruit-piplate-face/

FOR THE LATEST RELEASE!

The start of 2014 has been a busy one for me,with all the 2013 outstanding projects and problems before people return from the holidays and then the rush and onset of work with the returning hordes.  That said, I started an awesome little project with “volumio”, so with no further adieu:

VOLUMIO:

background (Now with even better background services!):

“volumio” is the migration of the “RaspyFi” project, as a matter of fact, when you go to the “RaspyFi” web-page, a pop-up comes up to inform you of “volumio”.

20140203_114729[1]

installation:

  • get it from http://volumio.com (As of this writing in Beta 1.1 – WAY MORE STABLE than RaspyFi.)
  • Standard Download and extract to an IMG file and burn with “Win32 Disk Imager”.
  • DHCP on eth0 is the standard.
  • Network is VERY stable.
  • ssh is enabled by default.
  • Set output of audio to Analog:

   amixer cset numid=3 N
   where the N parameter means the following:
   0=auto, 1=analog, 2=hdmi.
   Therefore, to force the Raspberry Pi to use the analog output:

amixer cset numid=3 1

  • I then (with “raspi-config”) Change my Keyboard and Location to suit my environment.

fun things – PiFace:

     Add at the end:

vi /etc/modules
i2c-bcm2708
i2c-dev

     Then install the PiFace libraries:

apt-get update;apt-get install git python-smbus i2c-tools python-dev python-rpi.gpio (52MB – 37.4MB download)
git clone https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git

     Then Set Up the LCD PiFace:

The following code is a modification of the code written by R.U.Serius from Sweden.  I have adjusted the code to rather use:

  • Presentation of play mode (playing/paused/stopped), Artist and Song name scrolling on line 1
  • The elapsed song time, total song time and percentage of song played on line 2.
  • Left button: Skip back
  • Right button: Skip forward
  • Up button: Volume UP
  • Down button: Volume DOWN
  • Select button: Toggle Play/Pause

One of the things I have noticed, if you get to the last item of your playlist and hit the “Skip Forward” button, the radio stops.   All you have to do is hit the “Select” button and it will start again with the very first item in the playlist.

NOTE: Major changes in LCD code.  Now in a downloadable ZIP file with a SERVICES option to stop/start.

The code available here: https://www.dropbox.com/s/iqoyy5lm2tik1my/LCD%20Python%20Script.zip

Save this code to: /home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCDPlate/ 
Please read the included README.txt file…

Note: to restart the service: “/etc/init.d/start_lcdSongInfo.sh restart”

fun things – Radio Stations:

Ok, here are some fun things to do.  Get some radio stations and place it into your WebRadio directory with the:

mk-radio.sh script:
Get it now, from: https://www.dropbox.com/s/xp9k3guc6z83v22/mk-radio.sh

  • Move all the default playlists to a new directory called “Original”
  • Rip all sky.fm radio streams and place it in a new directory called “Sky.FM”
  • Rip all di.fm radio streams and place it in a new directory called “Di.FM”

Nice one to get you up and running on the internet with Radio streaming.  All you have to do is put the script in your /home/pi directory and run it.

troubleshooting:

If your gui becomes unresponsive, have a look at :
http://www.raspyfi.com/forum/raspyfi-in … fi/page-2/

From a user:
I had the same problem yesterday and I try :
sudo /etc/init.d/mpd stop
cd /var/lib/mpd
ls /var/lib/mpd
rm -i state

and reboot

18 thoughts on “Raspberry Pi: Volumio, a new Music Player (and it works out-the-box!).

  1. glenn says:

    Can i install volumio only on the raspbian linu

    Like

  2. ebsy says:

    Nice! I plan on getting a piface in the near future so this is just the ticket. Came here from the Volumio forum by the way.

    For the other commenters there’s a tutorial on my site for installing Volumio on piano Linux. No reason why it shouldn’t work on all distros either!

    Like

  3. ebsy says:

    Nice! I plan on getting a piface in the near future so this is just the ticket. Came here from the Volumio forum by the way.

    For the other commenters there’s a tutorial on my site http://typingoutloud.org for installing Volumio on pibang Linux. No reason why it shouldn’t work on all distros either!

    Like

  4. Hi, could you recommend where to buy Rasberry Pi from online in South Africa? I am in Cape Town.

    Like

  5. Aurelien says:

    Hi,
    Thanks for that excellent idea, it’s exactly what I was looking for!
    However, I’ve not been able to run the PiFace part: no display at all with the Adafruit’ I2c LCD Pi Plate…
    In addition (and sorry for that: I’m really new in Linux), I’ve not understood how to install the “mk-radio.sh” file. and how to setup the LCD PiFace
    Maybe could you help me by adding some informations in your tutorial?
    Many thanks by advance, that’s the project I was looking for so long time! 🙂
    Regards
    Aurelien

    Like

  6. Golfonauta says:

    You already have in volumio some network shares, one of them is a folder where the radio stations reside, you can drag & drop the radio stations there.

    Then from Volumio just refresh the folder.

    Regards

    Like

  7. Philip Van Cleven says:

    Hello

    very nice tutorial. I do have a question : I am running a headless volumio (1.1 beta) with Hifiberry on top of it . It is working great!
    I wanted to put an adafruit display (as you did) but I read somewhere that when loading the PiFace software, some libraries are overwritten and the hifiberry does not function anymore … any experience with this combination ? The HifiBerry is a great little DA converter and it really makes a difference in sound quality !

    any suggestions/experience ?

    Like

  8. Manuel says:

    whats on the display when volumino is used as airplay receiver?

    Like

  9. Stefan says:

    Somehow I got a problem with the lcdSongInfo.sh. I got the following output:

    root@volumio:/etc/init.d# sh lcdSongInfo.sh
    : not found.sh: 2: lcdSongInfo.sh:
    : not found.sh: 12: lcdSongInfo.sh:
    : not found.sh: 17: lcdSongInfo.sh:
    : not found.sh: 21: lcdSongInfo.sh:
    : not found.sh: 24: lcdSongInfo.sh:
    lcdSongInfo.sh: 25: .: Can’t open /lib/lsb/init-functions

    I had to convert it with the dos2unix tool to get it working. Now it works very well.
    Greetings
    Stefan

    Like

  10. Sujoy says:

    How does volumio knows to play web radio? Can this be used to play songs on a NAS?

    Like

  11. You will find it in your WEB interface (WEBRADIO), you will also be able to load your own playlists from your choice of radiostations. I have an extract of the SKY.FM and DI.FM sites if you want…

    Like

  12. Stephen Neal says:

    Hi Aubrey. Tried following your guide with Volumio 1.5 but the python-rpi.GPIO bit fails. I’ve tried adding additional repos but to no avail. Any hints gratefully received.

    Like

  13. Kevin Murray says:

    Hi Aubrey
    I am using Volumio 1.5 with Digiberry and your lcdSongInfo.py script instructing a 20×4 Adafruit RGB LCD. It is working very well!
    I have one favour to ask. When there is no song playing, the display defaults to the bottom line of the LCD showing the inactive timer ” –:– [ –:– “. I am no coder, so I would be REALLY grateful if you could provide me with a version of the script that will display four text lines (of my choice) when Volumio is not playing a song. I hope this request is an easy one for you! Kind regards, Kevin.

    Like

Leave a comment

counter for wordpress