EXT‐RadioPlayer - bugsounet/MMM-Bugsounet GitHub Wiki

EXT-RadioPlayer is a plugin to play radio station on MagicMirror²

This module is an Extented plugins for MMM-Bugsounet

This module need EXT-VLCServer plugin for playing any radio station

Screenshot

Installation

Execute npm run setup:EXT-RadioPlayer in the MMM-Bugsounet's folder.

cd ~/MagicMirror/modules/MMM-Bugsounet
npm run setup:EXT-RadioPlayer

Configuration

To display the module insert it in the config.js file.

{
  module: 'MMM-Bugsounet/EXTs/EXT-RadioPlayer',
  position: 'top_right',
  animateIn: "flipInX",
  animateOut: "flipOutX",
  config: {
    debug: false,
    minVolume: 30,
    maxVolume: 75,
    streams: "streamsConfig.json"
  }
},

Configuration options

Description of config feature

Option Description Type default
debug Optional Enable Log level Boolean false
minVolume Volume to set when assistant speaking (in %) Number 30
maxVolume Volume to set when radio playing (in %) Number 75
streams  Prefered radio list streams file String  "streamsConfig.json"

French Radio

Un total de 21 radios ont été pré-configurés dans le fichier streamsConfig.fr.json

Pour appliquer cette liste, utilisez ceci dans votre configuration:

streams: "streamsConfig.fr.json"

Italian Radio

This recipe have 9 pre-configured radio in streamsConfig.it.json

  • Radio kiss kiss
  • Radio 101
  • radio italia
  • Radio 105
  • rtl
  • radio dj

For apply radio list, use this in your configuration:

streams: "streamsConfig.it.json"

other Language

  • Just check streamsConfig.XX.json file (XX is language)
  • Create your own streamsConfig file from other language

TelegramBot commands:

Needed configured streamsConfig file

  • /Radio <name>: Will start wanted radio station or the last radio when no name given
  • /RadioNext: Will start next radio of the list
  • /RadioPrevious: will start previous radio of the list
  • /RadioList: will display all available radio

Developers

This module can received notification:

  • Bugsounet_RADIO-STOP: Will stop current radio
  • Bugsounet_RADIO-PLAY: Start radio name from the streams config file
  • Bugsounet_RADIO-NEXT: Play next radio of the streams config file
  • Bugsounet_RADIO-PREVIOUS: Play previous radio of the streams config file
  • Bugsounet_RADIO-PLAY: Play radio with sended radio name in param

This module can send notification:

  • Bugsounet_RADIO-CHANNELS: Send Radio channels available
⚠️ **GitHub.com Fallback** ⚠️