Please tell me the recipe when you want to open a specific URL by command
-
Dear MagicMirror fans, let me know. If you want to open a specific URL page for a command using EXT-Browse with MMM-GoogleAssistant, how should you describe it in the recipe?
-
@pangeafor Hello. I don’t think you need a recipe to open a website. Just say to Jarvis to open “name of website” but bugsounet is the one to give you targeted answer. Check this in case it helps you.
-
@Anthony
I’m sorry, I will edit the question. Of course, you can talk to Jarvis and find a page, but if you want Jarvis to open a “specific page” that is not common and has a low ranking in search results, you can do it somewhere. , it means that you have to specify the URL of the page. -
@pangeafor I understand. In this case maybe this can help from the wiki:
This kind of recipe but not sure. I am not a developerresponseHooks: { "FOUND_YOUTUBE": { where: "links", pattern: "https:\/\/m\.youtube\.com\/watch\\?v=(.+)$", command: "PLAY_YOUTUBE" } }, commands: { "PLAY_YOUTUBE": { moduleExec:{ module: "MMM-GoogleAssistant", exec: (module, param, from)=>{ module.sendNotification("PLAY_THIS_VIDEO", {type:"id", id:param[1]}) // notification to send with param } } }, }
But still bugsounet will give you a valid answer.
-
@Anthony
Thank you for your advice. If I want to open a specific URL with EXT-Browser instead of Youtube, what should I change? -
@pangeafor The one I send you is an example. You must modify it to your needs. I imagine that you have to use the EXT_BROWSER-OPEN notification in the recipe. As I told you I am not a developer so I cannot help you more. Although check this topic because I guess it is the same thing you want. Have patience and bugsounet will reply.
-
@Anthony
I am grateful that you gave me various advices. thank you very much. I’m not a developer either, so I’m walking while looking for various hints. -
Hi,
Something like this:
var recipe = { transcriptionHooks: { "WEB_DISPLAY": { pattern: "bugsounet wiki website", command: "WEB_DISPLAY" } }, commands: { "WEB_DISPLAY": { notificationExec: { notification: "EXT_BROWSER-OPEN", payload: (params) => { return "https://wiki.bugsounet.fr" } }, soundExec: { chime: "open" }, displayResponse: false } } } exports.recipe = recipe
-
@bugsounet
The recipe you advised worked! Thanks for always helping me out. It’s solid advice.