Hello
Thanks for sharing 🙂
Hey guys,
i am trying to think how would a search browser recipe would work
is there a possibility to write a search google recipe through ext-browser?
i can see that ext-browser accepts only OPEN and CLOSE notifications but if we could also add a SEARCH notification to a new search section of the program.
In my head it is something like this i guess …
var recipe = { transcriptionHooks: { "BROWSERSEARCH": { pattern: "Search google for (.*)", command: "BROWSER_SEARCH" } }, commands: { "BROWSER_SEARCH": { functionExec: { exec: (params) => { this.sendNotification("EXT_BROWSER-OPEN", params[1]) }, payload: (params) => { return { urls: ["https://www.google.nl"] } }, exec: (params) => { this.sendNotification("EXT_BROWSER-SEARCH", params[1]) } }, soundExec: { chime: "open", }, displayResponse: true } } } exports.recipe = recipecould you help me make this work somehow?
Hello,
could you explain the difference for the GA V4?
current recipe won’t work :
for example how to open external link ?
Thank you!
Good Morning,
I state that its raspberry pi 3b+, I installed raspotify and is fully functional managing it from the smartphone with MMM-NowPlayingOnSpotify.
Today I have installed MMM-GoogleAssistant Light without problems, but some of the prepared recipes listed in the guide are not present in the directory.
There are only this:
MMM-MplayerRadio.js Reboot-Restart-Shutdown.js recipe.template.js ScreenManager.js with-MMM-Memo.js with-MMM-pages.js with-MMM-Selfieshot.js with-status.jsThe others are not there.
Where can I download them?
Thanks for the answers
Bye
Alessio
Hi, I made a recipe for Belgium (nl) radio stations.
Feel free to use. the logo’s are easy to find.
interesting stream links:
radio streams
Will this Radio Recipe work in RP3? Or can I do something to make it work with GA Light?
var recipe = {
transcriptionHooks: {
“tsf”: {
pattern: “abre tsf”,
command: “tsf”
},
“rfm”: {
pattern: “abre rfm”,
command: “rfm”
},
“smooth fm”: {
pattern: “abre smooth fm”,
command: “smooth fm”
},
“rádio comercial”: {
pattern: “abre rádio comercial”,
command: “rádio comercial”
},
“cidade fm”: {
pattern: “abre cidade fm”,
command: “cidade fm”
},
“antena 1”: {
pattern: “abre antena 1”,
command: “antena 1”
},
“antena 3”: {
pattern: “abre antena 3”,
command: “antena 3”
}
},
commands: {
“tsf”: {
functionExec: {
exec: () => {
this.radioCommand({
img: [‘modules/MMM-GoogleAssistant/resources/LogosRadios/tsf.svg’],
link: “https://tsfdirecto.tsf.pt/tsfdirecto.mp3”
})
}
},
soundExec: {
chime: “open”
}
},
“rfm”: {
functionExec: {
exec: () => {
this.radioCommand({
img: [‘modules/MMM-GoogleAssistant/resources/LogosRadios/rfm.png’],
link: “https://playerservices.streamtheworld.com/api/livestream-redirect/RFM.mp3”
})
}
},
soundExec: {
chime: “open”
}
},
“m80”: {
functionExec: {
exec: () => {
this.radioCommand({
img: [‘modules/MMM-GoogleAssistant/resources/LogosRadios/m80.png’],
link: “https://mcrscast.mcr.iol.pt/m80?.mp3”
})
}
},
soundExec: {
chime: “open”
}
},
“smooth fm”: {
functionExec: {
exec: () => {
this.radioCommand({
img: [‘modules/MMM-GoogleAssistant/resources/LogosRadios/smoothfm.png’],
link: “http://mcrscast.mcr.iol.pt/smoothfm”
})
}
},
soundExec: {
chime: “open”
}
},
“rádio comercial”: {
functionExec: {
exec: () => {
this.radioCommand({
img: [‘modules/MMM-GoogleAssistant/resources/LogosRadios/Comercial.png’],
link: “http://mcrscast1.mcr.iol.pt/comercial.mp3”
})
}
},
soundExec: {
chime: “open”
}
},
“antena 1”: {
functionExec: {
exec: () => {
this.radioCommand({
img: [‘modules/MMM-GoogleAssistant/resources/LogosRadios/Antena1.png’],
link: “http://radiocast.rtp.pt/antena180a.mp3”
})
}
},
soundExec: {
chime: “open”
}
},
“antena 3”: {
functionExec: {
exec: () => {
this.radioCommand({
img: [‘modules/MMM-GoogleAssistant/resources/LogosRadios/Antena3.png’],
link: “http://radiocast.rtp.pt/antena380a.mp3”
})
}
},
soundExec: {
chime: “open”
}
},
“cidade fm”: {
functionExec: {
exec: () => {
this.radioCommand({
img: [‘modules/MMM-GoogleAssistant/resources/LogosRadios/cidadefm.png’],
link: “http://mcrscast.mcr.iol.pt/cidadefm”
})
}
},
soundExec: {
chime: “open”
}
},
}
}
exports.recipe = recipe
I’m running a RP3 with an HDMI TV connecting cable but I’m unable to get the ScreenManager.js recipe working.
When I say my “pattern” it does shut the screen down for 2 seconds but it turns on again right away.
The opposite also don’t work, with the screen off, if I say Jarvis “pattern” he doesn’t turn the screen on.
Could this be because I’m using a TV instead of a computer monitor?
I was wondering if I can use something like tvservice -o instead of the “vcgencmd display_power 0” the recipe itself? But I have no idea how…
Thanks
Ok,
I have instaled the MMM-Selfieshot module,
I have changed the Pattern to my own language (Portuguese) in the with-MMM-Selfieshot.js inside the Recipes folder and changed the name to with-MMM-SelfieshotPT.js because of the updates.
Then, I put the name of the file the config.js in the recipes section like this:
recipes: [“ExtSpotifyPT.js”, “test.js”, “Reboot-Restart-ShutdownPT.js”, “ScreenManagerPT.js”, “with-MMM-SelfieshotPT.js”, “MMM-MplayerRadioPT.js”],
Do I need to make anything else to get a recipe to work?
Probably missing something very stupid because I read all over the wiki and I could not get any of them to work 😞
Thanks in advance
Bonjour,
j’ai installé le module radio, il fonctionne super bien.
mais j’aurais voulu rajouté une ou l’autre station radio.
quel lien je dois utiliser pour rajouter la radio. et tes images en png, ils sont sur un site a toi personnel? comment pourrais-je faire pour en ajouter moi? je pensais enregistrer l’image sur le Raspberry et aller le rechercher avec le lien. tu penses que ca fonctionnera?
merci d’avance
Hello,
in recipe, is it possible to make custom answer, make google read a text?
for example “who is the most beautiful” ==> Google respond saying “You” ^^
Thank you.
Similar to the Radio recipe functionality, is it possible to set one up to play a specific YouTube video upon command (using MMM-GA extension because of its better capability)?
If so, how should I modify the exec / command section?
"YouTube": { functionExec: { exec: () => { this.radioCommand({ link: "https://www.youtube.com/watch?v=sOnqjkJTMaA" }) } },In the ScreenManager recipe example, it uses vgencmd to turn on and off the screen. In MMM-GA, I can only use mode 4 (HDMI CEC) in config to turn off my screen. Vgencmd doesn’t work.
If I want to change the ScreenManager recipe, what exec command should I use instead of this?
shellExec: { exec: "vcgencmd display_power 0" }Thanks.
How do i use Reboot-Restart-Shutdown.js , ScreenManager.js recipe, i did add them both under GA assistant config file but what now ? when i ask jarvis “take A BREAK” it replies normally , neither it shutdown .
PLEASE HELP
please let me know ho to do it
thanks
Hi guys i wrote a Recpie but if i start MM Fatal error recepie ligtcontrol.py come on the display
i checked my recpie but cant finde the mistake can you guys spot it?
//Backgroundlightning v.1 var recipe = { transcriptionHooks: { "GA_GPIO_true": { pattern: "licht bitte ein", command: "GA_GPIO_true" }, "GA_GPIO_false": { pattern: "licht bitte aus", command: "GA_GPIO_false" }, }, commands: { "GA_GPIO_true": { soundExec: { chime: "open", }, shellExec: { exec: "/home/pi/MagicMirror/lighton.py" } }, "GA_GPIO_false": { soundExec: { chime: "close", }, shellExec: { exec: "/home/pi/MagicMirror/lightoff.py" } }, } } exports.recipe = recipe // Don't remove this line.Edit [@bugsounet]: add js code tag
So I have a question about your recipe.
Which by the way, works perfectly. I love this idea.
Just want to be more organized about this. That’s all
so I can see where the music came from
var recipe = {
transcriptionHooks: {
},
How would I go about getting GA to open a web page? how would I make recipes I know very little coding but I work things out do you have an example I can work off?
bonjour,
je partages avec vous un petit recipe qui permet de regardé la télé via un démodulateur satelite voir meme ip tv sur son miroir.
mettre son démodulateur en mode standby.
vous devez remplacer l’ip après http: par l’ip de votre démodulateur.
a tester avec des lignes iptv.
ceci est un exemple et il doit etre possible de l’amélioré.
n’oubliez pas de donné un nom au fichier et de l’indiqué dans la partie recipe de config.js.
bonne télé a tous.
Edit:
Change commentaire Change chime close par open sauf pour le killallHi,
Here is a recipe allowing you to change page, display a specific page, the hidden pages and stop the rotation with MMM-GA and MMM-Pages.
This recipe works with MMM-GA V2 and V3.
Copy / paste this code into a .JS file and modify it according to your wishes.
Save your recipe file, it should locate in recipes directory.
Then, you can configure your config.js
I thank Bugsounet, without its modules and tutorial I would not have been able to make this recipe.
Enjoy