for create a radiolink for MMM-GoogleAssistant you need 2 things:
you can understand that i can't do it for all countries ...
I do it for my country (France)
then let you search with your favorite search engine
You have to create your own recipe !, I will help you to create it...
GoogleAssistant have a very good functionality... search what you have said and do something
We will use this function.
sample with one radio station (French radio Chérie FM
)
Don't worry, i will explain
var recipe = {
transcriptionHooks: {
"cheriefm": {
pattern: "mets chérie fm",
command: "cheriefm"
},
},
commands: {
"cheriefm": {
functionExec: {
exec: () => {
this.radioCommand({
img: "https://www.hbca07.fr/media/uploaded/sites/5499/partenaire/583038d328d24_slidercheriefm.jpg",
link: "https://scdn.nrjaudio.fm/fr/30201/mp3_128.mp3?origine=EXT&cdn_path=audio_lbs9"
})
}
},
}
}
exports.recipe = recipe
Explain
you can see 2 blocks in recipe:
transcriptionHooks
: it's the vocal search blockcommands
: command to execute"cheriefm": {
: identification name of the search, there i named this search cheriefm
(the name of the radio station)pattern: "mets chérie fm",
: pattern feature is the EXACT vocal search for execute a commandjarvis, mets chérie fm
command: "cheriefm"
: name of the command to execute in the commands block
cheriefm
so ... not complex !
lets continue avec commands block
there is very easy !
"cheriefm": {
: just report the command name that you have defined in transcriptionHooks
hum ... you said to me ... i have the streaming link and the logo ...
this is the place to paste it !
ExtRadio.js
in ~/MagicMirror/modules/MMM-GoogleAssistant/recipes
directory recipes: [ "ExtRadio.js"],
if you have already a recipes configuration just add it
recipes: [ "my_prefered_recipes.js", "ExtRadio.js"],
and restart your mirror !