I use an HifiBerry DAC+ on my mirror to play Spotify and Radio.
The aim of this module is to provide a simple mechanism to play online radios on the mirror and switch between different stations.
Because my wife and i like different stations i added profile support as well.
The module can be controlled either by notifications or touch.
It uses the Raspian “mplayer” to play “m3u” playlist files my favorite webpage of online radios (http://www.surfmusik.de/) provides. But you can use any m3u file you like.
- it is possible to configure a custom script to play the stations. This way it is possible to use in example xmms2 instead of mplayer
- added an autoplay feature. Simply add the index of the station you want to start automatically after the module started to the new config option “autoplay”. The index starts with 0.
- reduced the flickering caused by station and profile changes
- added buttons to increase/decrease the volume (send notification to MMM-Volume)
The initial release provides the following features
- Using multiple stations and add an logo for each one
- The stations can be switched by notification or touch
- Stations either can have no profile (valid for all profiles) or an profile string
Your module looks very great, smith notification and profil change ! Can you re-upload the pictures to see it ?
Hi, great if you like it.
What exactly do you mean. Currently there are a lot of problems with the forum. Are the screenshots not visible or do you like to have an different one?
@wishmaster270 yes, screenshoots were not visible, but now, it’s good … may be a bug…
@wishmaster270 Wow this looks great, I like it. But can i have a request please?
Can you try to make a version with xmms2 player ?. I want to use this to listening aacp or mp3 radio stream and mplayer is so slowly I push button to start and he start playing radio after nearly one minute. And if you can implement a volume graph and volume control will be great.
normally mplayer is very fast. Can you try to reduce the caching with the “mplayerCache” option either for one station or globally for all. The default value is 512 and may be a little high.
There already exists an module to control the volume MMM-Volume which i use in my setup.
@wishmaster270 ok i will try to modify caching to see what happend.
And about the volume yes i know that module but i have a touchscreen and can be better if i have a buttons for volume in same module from where i start listening.
@electros I will check if I can include two control buttons to increase/decrease the volume by sending notifications to MMM-Volume.
I tried this link on the command line:
mplayer -cache 256 -playlist http://www.surfmusik.de/m3u/magicfm,14949.m3u
Mplayer complains that the station is to slow. It doesn’t even start playing in my case.
It looks like mplayer has some known problems with aac.
But you are right. If i use xmms2 it works.
The problem is, that xmms2 uses a totally different interface.
But also some good news. I released a new version 0.0.2 which adds two volume buttons.