EXT-RadioPlayer is a plugin to play radio station on MagicMirror
This module is an Extented plugins for
MMM-GoogleAssistant
This module need
EXT-VLCServer
plugin for playing any radio station
Execute npm run install:EXT-RadioPlayer
in the MMM-GoogleAssistant's folder.
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run install:EXT-RadioPlayer
To display the module insert it in the config.js file.
{
module: 'MMM-GoogleAssistant/EXTs/EXT-RadioPlayer',
position: 'top_right',
animateIn: "flipInX",
animateOut: "flipOutX",
config: {
debug: false,
minVolume: 30,
maxVolume: 75,
streams: "streamsConfig.json"
}
},
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" |
Afin de simplifier la configuration au maximum, un recipe
a été créé.
Il suffit simplement de l'ajouter à la configuration de GoogleAssistant
Ce recipe
se nomme: EXT-RadioPlayer.fr.js
Pour l'ajouter, editer la configuration de MMM-GoogleAssistant
dans votre fichier config.js
exemple:
{
module: "MMM-GoogleAssistant",
...
config: {
...
recipes: [
"../EXTs/EXT-RadioPlayer/recipe/EXT-RadioPlayer.fr.js",
]
...
Dans le cas où vous avez déjà d'autres recipes
:
exemple:
{
module: "MMM-GoogleAssistant",
...
config: {
...
recipes: [
"../EXTs/EXT-RadioPlayer/recipe/EXT-RadioPlayer.fr.js",
"Un_autre_recipe.js"
]
...
Une fois le recipe
installé, il faudra bien sur redémarrer MagicMirror
Activez votre assistant avec votre keyword
préféré et dites par exemple:
Mets Chérie FM
L'assistant envoie les données nécessaires et se connectera à la radio demandé.
Prepared recipes for Italian users, you can use EXT-RadioPlayer.it.js
recipe
This recipe have 9 pre-configured radio
For sample, if you want radio kiss kiss
Jarvis ... metti radio kiss kiss
You can also make an streams file with all prefered radio streams
See streamsConfig.XX.json
file sample (XX is designed for language)
And report it into your config file in streams
feature
Note: All Prepared recipes use now prepared streams file !
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 radioThis module can received notification:
EXT_RADIO-STOP
: Will stop current radioEXT_RADIO-PLAY
: Start radio name
from the streams config fileEXT_RADIO-NEXT
: Play next radio of the streams config fileEXT_RADIO-PREVIOUS
: Play previous radio of the streams config fileEXT_RADIO-START
: Start radio with sended params (img: image logo of the radio
, link: Radio station stream link
)cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run update
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run remove:EXT-RadioPlayer