Moode Audio Player for Raspberry Pi

I wonder of it is possible to run moode or volumio or something like that on an android phone. I just cant find an emulator or something to run a linux image file. I want to use an old samsung s3 (Thompson dac) as a media player in bedroom. Would be a great repurpose, I think.


Poslano z mojega LG-D855 z uporabo Tapatalk
 
Hi Ian,
thanks for that but its still not working for me. There must be some sort of configuration issue?
I don't understand it as the BBC stations added and played ok

Hi,

Direct stream link can be found by downloading the stations playlist file and then examining its contents. See example below

Here is link to playlist file from earlier post. Note I've put a space between http: and // to prevent the links from being tagged by the forum software as url's

http: //network.absoluteradio.co.uk/core/audio/oggflac/live.pls?service=ar

-Tim

Example:

pi@rp1:~ $ wget http: //network.absoluteradio.co.uk/core/audio/oggflac/live.pls?service=ar
--2016-09-25 08:47:26-- http: //network.absoluteradio.co.uk/core/audio/oggflac/live.pls?service=ar
Resolving network.absoluteradio.co.uk (network.absoluteradio.co.uk)... 52.210.91.221, 52.209.65.202, 54.171.126.86
Connecting to network.absoluteradio.co.uk (network.absoluteradio.co.uk)|52.210.91.221|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 133 [audio/x-scpls]
Saving to: ‘live.pls?service=ar’

live.pls?service=ar 100%[====================================================================>] 133 --.-KB/s in 0s

2016-09-25 08:47:26 (2.39 MB/s) - ‘live.pls?service=ar’ saved [133/133]

pi@rp1:~ $ cat live.pls?service=ar
[playlist]
numberofentries=1
File1=http: //icecast.timlradio.co.uk/nonuk.ogg
Title1=Absolute Radio - Discover Real Music
Length1=-1
pi@rp1:~ $
 
Hi,

Direct stream link can be found by downloading the stations playlist file and then examining its contents. See example below

Here is link to playlist file from earlier post. Note I've put a space between http: and // to prevent the links from being tagged by the forum software as url's

http: //network.absoluteradio.co.uk/core/audio/oggflac/live.pls?service=ar

-Tim

Example:

pi@rp1:~ $ wget http: //network.absoluteradio.co.uk/core/audio/oggflac/live.pls?service=ar
--2016-09-25 08:47:26-- http: //network.absoluteradio.co.uk/core/audio/oggflac/live.pls?service=ar
Resolving network.absoluteradio.co.uk (network.absoluteradio.co.uk)... 52.210.91.221, 52.209.65.202, 54.171.126.86
Connecting to network.absoluteradio.co.uk (network.absoluteradio.co.uk)|52.210.91.221|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 133 [audio/x-scpls]
Saving to: ‘live.pls?service=ar’

live.pls?service=ar 100%[====================================================================>] 133 --.-KB/s in 0s

2016-09-25 08:47:26 (2.39 MB/s) - ‘live.pls?service=ar’ saved [133/133]

pi@rp1:~ $ cat live.pls?service=ar
[playlist]
numberofentries=1
File1=http: //icecast.timlradio.co.uk/nonuk.ogg
Title1=Absolute Radio - Discover Real Music
Length1=-1
pi@rp1:~ $

Thanks Tim but still no joy. I used the link you gave
http: //network.absoluteradio.co.uk/core/audio/oggflac/live.pls?service=ar
and removed the space.
Same issue.

I found all the streams available here
Listen Links for Absolute Radio Services

They all work in VLC media player except the last one (Ogg FLAC ~1Mb)
I'd like the best quality stream that I can find but cant get any of them playing in moode! is there some configuration issue I've not ticked or something?
btw i'm using Pi3 and Pi-DAC+ from IQaudIO
 
Last edited:
Thanks Tim but still no joy. I used the link you gave
http: //network.absoluteradio.co.uk/core/audio/oggflac/live.pls?service=ar
and removed the space.
Same issue.

I found all the streams available here
Listen Links for Absolute Radio Services

They all work in VLC media player except the last one (Ogg FLAC ~1Mb)
I'd like the best quality stream that I can find but cant get any of them playing in moode! is there some configuration issue I've not ticked or something?
btw i'm using Pi3 and Pi-DAC+ from IQaudIO

Hi,

I didn't test the stream link in the example I posted but that is the process I generally use to derive direct stream links.

The hard part is finding the correct pls file for the station.

-Tim
 
I experienced the same problem with 2.7. I believe it's browser specific. The SSID I specified has 5 characters. When using Chrome it kept showing the error message: "Please match the requested format."

I swapped over to Internet Explorer and it was no problem setting the SSID. Once it was set, I could go back using Chrome again with no problem.

Chrome version: Version 53.0.2785.116 m (on Windows 7)

I can confirm this issue on Chrome version 53.0.2785.116 (64-bit) on linux. Cannot configure WiFi in Chrome because MoOde will not accept any SSID. Firefox worked fine.

I haven't yet removed pattern requirements in /var/www/templates/net-config.html, but something is definitely amiss if other browsers are working fine and Chrome can't.
 
Hi,

I didn't test the stream link in the example I posted but that is the process I generally use to derive direct stream links.

The hard part is finding the correct pls file for the station.

-Tim

Does MoOde support .pls URLs? I haven't been able to get them to work properly.

For example, the .pls URL for "Left Coast 70s" 128kbps AAC is

https://somafm.com/seventies130.pls

but if I attempt to use it as a radio URL it doesn't work. The playback screen keeps counting the time from the previous working url (?) but there is only silence. Both of the direct streams found in the pls work fine:

http://ice1.somafm.com/seventies-128-aac
http://ice2.somafm.com/seventies-128-aac


As you might expect, SomaFM prefers users to use the pls urls because they are permanent.

Also, when adding new stations it would be nice to have an extra field for a cover image url, I guess it would be treated as an override for streams that already provide an image. The 2 direct streams noted above don't seem to include an image, but SomaFM does provide image URLs for all stations.
 
Does MoOde support .pls URLs? I haven't been able to get them to work properly.

For example, the .pls URL for "Left Coast 70s" 128kbps AAC is

https://somafm.com/seventies130.pls

but if I attempt to use it as a radio URL it doesn't work. The playback screen keeps counting the time from the previous working url (?) but there is only silence. Both of the direct streams found in the pls work fine:

http://ice1.somafm.com/seventies-128-aac
http://ice2.somafm.com/seventies-128-aac


As you might expect, SomaFM prefers users to use the pls urls because they are permanent.

Also, when adding new stations it would be nice to have an extra field for a cover image url, I guess it would be treated as an override for streams that already provide an image. The 2 direct streams noted above don't seem to include an image, but SomaFM does provide image URLs for all stations.

Hi,

The radio station feature in Moode uses a sql table keyed by the direct stream url and it provides an automatic stream link updater that queries the stations permalink (pls file) to see if the stream url has changed. The Soma FM stations and a few others are coded to use the updater.

-Tim
 
A few of my folders show up with a question mark at the end of the title. They play OK when the USB drive is locally attached, but these folders don't show up at all in the NAS database. Any idea what is going on here and how to correct it please?

John

Hi,

Do u mean that the actual folder name has a question mark character at the end for example ...Music/AC-AC/Back In Black?

-Tim
 
Hi,

Do u mean that the actual folder name has a question mark character at the end for example ...Music/AC-AC/Back In Black?

-Tim

Yes, for example in the folder JAZZ the sub-folder JAZZ SL-TE shows up as JAZZ SL-TE? in the browser if the drive is locally attached.
(The ? has a rectangular box around it)
That sub-folder does not show up at all in the NAS database.
EDIT: If I use Firefox instead of Safari the rectangular box has four tiny characters in it- looks like F, O and something else.
John
 
Last edited:
Yes, for example in the folder JAZZ the sub-folder JAZZ SL-TE shows up as JAZZ SL-TE? in the browser if the drive is locally attached.
(The ? has a rectangular box around it)
That sub-folder does not show up at all in the NAS database.

John

Hi John,

The folder names probably have non-printable characters at the end which are being displayed as [?]. I'd suggest the following:

1) Remove the NAS config in Moode
2) Create new folders
3) Copy contents of old folders to new
4) Delete old folders and contents
5) Create the NAS config again

-Tim
 
Hi Tim,
Lately got moode up and running with no problem whatsoever.
Love this approach "less is moore", and still average Joe can set it up without having two master degrees in codewriting:)
a couple of questions:
i use PI3, IQAudio digiamp+ as a sound device, rotary enc for volume
1) actually i'm happy with this feature, just to know if it's normal or maybe a problem of encoder: with every "click" of encoder volume setting is changed by 4units
2) would be good to have mute function working as toggle, i use encoder with push switch, at the moment amp is muted as long as i keep switch pushed
3) amp's mute state is not shown on GUI


oh well, i would also like to have some local radio stations on list, but i'll give a try to add these by myself first, don't think there are millions of estonian-speaking moode users out there:p

with best, Margus
 
Hi Tim,
Lately got moode up and running with no problem whatsoever.
Love this approach "less is moore", and still average Joe can set it up without having two master degrees in codewriting:)
a couple of questions:
i use PI3, IQAudio digiamp+ as a sound device, rotary enc for volume
1) actually i'm happy with this feature, just to know if it's normal or maybe a problem of encoder: with every "click" of encoder volume setting is changed by 4units
2) would be good to have mute function working as toggle, i use encoder with push switch, at the moment amp is muted as long as i keep switch pushed
3) amp's mute state is not shown on GUI


oh well, i would also like to have some local radio stations on list, but i'll give a try to add these by myself first, don't think there are millions of estonian-speaking moode users out there:p

with best, Margus

Hi Margus,

The rotary encoder driver can be tuned to a particulr encoder by specifying some args when it is started. This can be tested via command line.

1) In System config, turn off the Rotary Encoder
2) ssh pi@moode (pwd = raspberry)
3) /usr/local/bin/rotenc delay_value accel_thres volume_step debug_print

Below are descriptions of each arg and its default value.

/* input args
argv[1] delay_value = number of milliseconds delay for each iteration of the while(1) loop
argv[2] accel_thres = if diff betw current and last encoder position exceeds this value then increase volume step
argv[3] volume_step = number to increment volume knob by for a single step
argv[4] DEBUG_PRINT = print messages 1, no messages 0
*/

int delay_value = 150; /* defaults */
int accel_thres = 3;
int volume_step = 4;
int DEBUG_PRINT = 0;

For your encoder you can either reduce volume_step or increase accel_thres. For example

/usr/local/bin/rotenc 150 3 1 1

Then nano /var/www/worker.php and search for case 'rotaryenc' and change the launch string to include the args except specify 0 as the last arg so debug_print is turned off.

case 'rotaryenc':
$cmd = $_SESSION['w_queueargs'] == 1 ? '/usr/local/bin/rotenc 150 3 1 0 > /dev/null 2>&1 &' : 'killall /usr/local/bin/rotenc > /dev/null 2>&1 &';
sysCmd($cmd);
break;

Regards,
Tim
 
Hi,

The radio station feature in Moode uses a sql table keyed by the direct stream url and it provides an automatic stream link updater that queries the stations permalink (pls file) to see if the stream url has changed. The Soma FM stations and a few others are coded to use the updater.

-Tim

But you're speaking about the SomaFM stations pre-loaded into MoOde aren't you? While I appreciate that they've been included, they are the 128kbps mp3 streams and I'd rather use the better quality AAC streams. Also, a handful of the stations offer mp3 streams higher than 128kbps, some as high as 320.

Isn't there a way for MoOde to properly parse a .pls URL for user added stations, even if it only grabbed the first stream?
 
But you're speaking about the SomaFM stations pre-loaded into MoOde aren't you? While I appreciate that they've been included, they are the 128kbps mp3 streams and I'd rather use the better quality AAC streams. Also, a handful of the stations offer mp3 streams higher than 128kbps, some as high as 320.

Isn't there a way for MoOde to properly parse a .pls URL for user added stations, even if it only grabbed the first stream?

Hi,

Yes the pre-loaded stations. If u want to use different stream urls for the preloaded stations then u would need to update the .pls files and the associated entries in the cfg_radio sql table.

If u know some Linux send me email and I'll explain how to do this.

-Tim