Description:
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.
Download:
MMM-MplayerRadio
[card:Tom-Hirschberger/MMM-MplayerRadio]
Version 0.1.3
- the vlcWrapper.bash and vlcPaWrapper.bash scripts now stop vlc with a kill followed by a kill -9 after one second delay. The processes did not stop with the current versions of vlc otherwise.
Version 0.1.2
- the
streamlinkwrapper supports additional custom arguments like thevlcwrappers now
Version 0.1.1
- the
vlcWrapper.bashandvlcPaWrapper.bashnow support a variable count of custom options that can be added after the stream url. The options will be added directly to thevlccommand line i.e. to disable certificate verification.
Version 0.1.0
- it is possible to display the current stream information if
vlcis used now. Use the providedvlcWrapper.bashscript to startvlcwith the options needed. - modified the
vlcPaWrapper.bashscript to use the additional options needed to startvlcwith enabled stream information support. - updated the options and URLs in the readme
Version 0.0.14
- added a new wrapper called
vlcPaWrapper.bashwhich usesvlcto play a stream but sets the audio ofvlcwithpa_volumeto a configurable value before
Version 0.0.13
- The module now waits for the old process to stop before it starts the new one during station changes which is essential for the
xmms2andHiFiBerryOSwrapper. - During a station change the module does not signal a stop of the old station and the start of the new station but only the station change to the frontend now. This is to reduce flickering.
- The wrapper of
HiFiBerryOSis now more robust if the station gets changed or if the playback gets stopped at theHiFiBerryOSinterface
Version 0.0.12
- fixed wrong state (playing/stopped) if
customCommandis used and the wrapper/program stops
Version 0.0.11
- All CSS classes are prefixed with the module name now
- A new wrapper script is included to control a remote HiFiBerryOS instance via ssh
Version 0.0.10
- added a new wrapper script (streamlinkWrapper.bash) which can be used to play streams that do not send continuously
Version 0.0.9
This now Version 0.0.9 provides:
- fixed the stations not being stopped if the module gets stopped (i.e. if the mirror gets stopped)
Version 0.0.8
This new Version 0.0.8 provides:
- Fixed a bug which caused the module to ignore the initStation parameter at the first RADIO_PLAY notification
Version 0.0.7
This new Version 0.0.7 provides:
- Fixed a bug which caused the module to be not loaded if only one station is used
Version 0.0.6
This new Version 0.0.6 provides:
- the stations now get displayed correctly if scroll is disabled and there are less stations than needed (count of stations before the current station, the current station and the count of stations to display after)
Version 0.0.5
This new Version 0.0.5 provides:
- The module got a total redesign. Instead of old styling with a table a new flexbox layout is used which makes it possible to do a lot more customization via css.
- There is a new option which can be used to display more than one station before and after the currently active one.
- There is a new option to enable scrolling (if active all stations will be displayed in a scrollable container).
- If scrolling is active a new option can be enabled to focus the currently active station even if it has been changed by notification.
- The streamInfo line can be hidden with a config option new.
- The initial state feature (yellow radio instead of stations) has been removed.
As there are a lot of problems with mplayer at the moment i strongly suggest to use the customCommand feature to play the stations with vlc. See the readme for details!
Version 0.0.4
- The flickering has been reduced massively.
Version 0.0.3
- 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
Version 0.0.2
- added buttons to increase/decrease the volume (send notification to MMM-Volume)
Version 0.0.1
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
Screenshots




