Moode Audio Player for Raspberry Pi

Hi Tim,

Both screen update and actual volume as Frank wrote.
But here is a strange thing:
Volume up/down where at first unresponsive also. After clicking on them a few dozen times, all controls were responsive.
I rebooted, and was able to reproduce.
Rebooted again and the controls were responsive right away.
Now I am trying to get them to be unresponsive again to continue testing.
Hope this might help troubleshooting.

Stavros

Hi Stavros,

Generally symptoms like these where UI is unresponsive, hangs, etc are due to things external to Moode software like bad sd card, power supply, etc.

Btw what mode Pi are u using and what client Browser and OS?

-Tim
 
Hi Stavros,

Generally symptoms like these where UI is unresponsive, hangs, etc are due to things external to Moode software like bad sd card, power supply, etc.

Btw what mode Pi are u using and what client Browser and OS?

-Tim

Hi Tim,

Thanks for your support. I will check, starting with power supply.
It is moode 3.6 on rpi 2. Tests were done with Windows 7 and Chrome browser.

Stavros
 
Code:
[Unit]
Description=Spotify Connect
After=network-online.target
[Service]
Type=idle
User=root
ExecStart=[B]/root/librespot[/B] --name SpotifyConnect --cache /tmp --bitrate 320 --backend alsa --device hw:0 > /dev/null 2>&1
Restart=always
RestartSec=10
StartLimitInterval=30
StartLimitBurst=20
[Install]
WantedBy=multi-user.target
/root/librespot is proberbly not the location where you unzipped librespot. Check where you did and change the location in the service accordingly.

Greetings,

Martin
 
Hi Tim,

Thanks for your support. I will check, starting with power supply.
It is moode 3.6 on rpi 2. Tests were done with Windows 7 and Chrome browser.

Stavros

For me: rpi 2, on OSX El Captain with safari and chrome
And tested on windows 10 notebook, the same slow response.

I have 7 different sd cards tested, al the same slow response.
Image Moode 3.6 and earlyer downloaded on different computers, al the same slow response.
Moode 2.7 is fine working.

Gr Frank :scratch:
 
I don't want to screw it up again, so I'll ask before trying...
I have to install nano, right? So, will this work in the Moode-pi?

Code:
sudo apt-get install nano

Run that, and then follow Tim's steps?



I reformatted and re-imaged the sdcard this evening. Expanded the partition. All seemed fine. I copied the troublesome Yo Yo Ma tracks to the sdcard and updated MPD. They appeared and played just fine, accent aigu and all. I copied some more folders full of tracks that weren't recognized in Moode before, and they showed up and played fine. But then...

I proceeded to copy some more stuff over. It seems if I try to copy more than about 4 or 5 folders at a time, something goes wrong and a folder will not appear in the Browse and Library panels, even though it's on the sdcard in the correct location. It doesn't matter what kind of characters are in the title, or what bit-depth/sample rate the FLAC files are.

I did notice that the first time I ran Configure > Update MPD, the update was over quickly and the 'Updating' with spinning arrows returned to 'Browse' after about 10 second. But then after a few updates, the Update+spinning arrows is stuck, and will loop forever until shutdown. Is that significant?

Does this sound like a flaky sdcard causing problems?

--

Nano is part of the standard build. Just exec 'sudo nano filename ' and you should be in - there are hints on screen for saving, searching, etc.

Can't confirm or deny the likelihood of SD card being at fault, but when you do have a slow or dodgy card, all manner of odd behaviour occurs 🙂 Prolly worth swapping with a name-brand class 10 card to see.

Good to see the accented file names aren't a problem - I wasn't sure that it was, but worth a crack.
 
For me: rpi 2, on OSX El Captain with safari and chrome
And tested on windows 10 notebook, the same slow response.

I have 7 different sd cards tested, al the same slow response.
Image Moode 3.6 and earlyer downloaded on different computers, al the same slow response.
Moode 2.7 is fine working.

Gr Frank :scratch:

Hi Frank,

I'd suggest starting from scratch.

- Download fresh zip
- Make fresh SD Card
- Start with only the Pi and no audio device attached
- Connect only ethernet cable

I'd also run a 30 sec ping test from client PC or Mac to Pi and examine the ping stats for anything unusual for example >0% packet loss, dropped packets, really long round trip times.

If you know a little Linux then open an ssh terminal and examine output from cmds below for anything suspicious.

dmesg
cat /var/log/syslog
cat /var/log/mpd/mpd.log
cat /var/log/moode.log

-Tim
 
Hi,
I'm noobs of linux. So, someone please let me know how to install librespot to moode audio 3.6 with SSH command. I know the 100% volume issue of librespot, but I wanna try it.
It is basically what Lazerharp already pointed out in post #6259.

So, just SSH into Moode. Open a terminal.

Code:
ssh pi@<your-moode-ip-address>
You will be prompted to give the pi's password, that's 'raspberry'
Code:
pi@<your-moode-ip-address> 's password: raspberry

Make a directory to store Librespot
Code:
mkdir librespot
Go into the new directory
Code:
cd librespot
Download the newest version of Librespot into this directory
Code:
wget [url]https://github.com/herrernst/librespot/releases/download/v20170413-d95c0b3/librespot-linux-armhf-raspberry_pi.zip[/url]
Unzip Librespot
Code:
unzip librespot-linux-armhf-raspberry_pi.zip

Now we have to create a service.
Code:
sudo su
The rest is copy paste writing from Rene Bouwmeester from the ROON forum.
Create the service definition:
Code:
nano /etc/systemd/system/spotify-connect.service
Paste the following into the empty file, where '/home/pi/librespot/' is our location of Librespot and 'MoodeLibre' your name on how you want the service to show up in Spotify:
Code:
[Unit]
Description=Spotify Connect
After=network-online.target
[Service]
Type=idle
User=root
ExecStart=/home/pi/librespot/librespot --name MoodeLibre --cache /tmp --bitrate 320 --backend alsa --device hw:0 > /dev/null 2>&1
Restart=always
RestartSec=10
StartLimitInterval=30
StartLimitBurst=20
[Install]
WantedBy=multi-user.target
Save with CTRL-X, Y (and 'enter')

Reload daemons:
Code:
systemctl daemon-reload
Enable your new service:
Code:
systemctl enable spotify-connect.service
Enable and activate your new service:
Code:
systemctl start spotify-connect.service

Greetings,

Martin
 
Librespot

Hi,
I gave librespot a try, installed it according to the above instructions (thanks) and can see it in Spotify which seems to indicate that its working 🙂

When it is selected in Spotify (computer or phone), no sound can be heard. Are there some other configurations to be made ?

Thank's
 

Attachments

  • Screen Shot 2017-04-29 at 13.35.24.png
    Screen Shot 2017-04-29 at 13.35.24.png
    37.3 KB · Views: 490
Last edited:
Hi,
I gave librespot a try, installed it according to the above instructions (thanks) and can see it in Spotify which seems to indicate that its working 🙂

When it is selected in Spotify (computer or phone), no sound can be heard. Are there some other configurations to be made ?

Thank's

Are you using USB DAC by any chance? Try to put --device plughw:0 instead of --device hw:0 (assuming that your audio device is numbered as :0). Some DACs (and audio interfaces in general) moan about the 44000/16-bit direct sample rate and hw:0 will enforce the sample rate as per stream, as part of direct hardware access policy. In essence, plughw:0 will apply necessary input format conversions for the DAC (assuming 24/32bit depth rate).

If stream is playing, try to run from the shell:

cat /proc/asound/card1/pcm0p/sub0/hw_params

It should show something similar to this (if S32 conversion is needed):

access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)