Open Specific Netflix Movie with Alexa
-
Tks @Russ ,
The command in node runs very well, but when i try to run in trigger cmd in my windows doenst run, when i try to run by the website, it shows me it did, but it didn't. -
@Felipe-Guedes, what is your command? And does that same command work if you run it in a Windows cmd prompt?
-
Yes my command runs very well.
-
@Felipe-Guedes, it works from the cmd prompt but not from TRIGGERcmd? If so, maybe in your cmd window you're running it from the directory where the script resides, so the problem with running it via TRIGGERcmd is that the working directory is not where the javascript file is. In which case, you could either create a batch file that changes the working dir to that folder before running the node command, or it might be adequate to specify the full path to the .js file as part of your command like this:
node c:\scripts\scriptdir\script.js
-
Yes, i know that.
Thats my configuration:
{
"trigger": "abrir google",
"command": "node C:\Users\Artista\Documents\node_modules\selenium-webdriver\exemple\google.js",
"ground": "foreground",
"voice": "abrir google",
"voiceReply": "",
"allowParams": "true"
}And the full path:
When i run directly in cmd, runs very well like i said, but in trggercmd no.
-
@Felipe-Guedes, thanks for that info. That helps.
I'm still thinking it's a problem with the working directory. Node knows how to find module dependencies based on the working directory. Would you mind trying this?
Create a script called c:\scripts\google.bat with these contents:
cd /d C:\Users\Artista\Documents\node_modules\selenium-webdriver\exemple node google.js
Then make this your triggercmd command: c:\scripts\google.bat
-
Perfect, now i can execute the command in trigger cmd and i have other problem hhahahahah.
When i say - "Alexa, Execute comando" -> "Execute automacao com parametro boss baby" -> She don't recognize my command. Isn't an exemple with parameters in portuguese.
Help me, we almost there ! -
@Felipe-Guedes Otherwise, is this configuration set maximized chrome.
var chrome = require("selenium-webdriver/chrome"); /** * Set chrome command line options/switches */ var chromeOptions = new chrome.Options(); chromeOptions.addArguments("test-type"); chromeOptions.addArguments("start-maximized"); chromeOptions.addArguments("--js-flags=--expose-gc"); chromeOptions.addArguments("--enable-precise-memory-info"); chromeOptions.addArguments("--disable-popup-blocking"); chromeOptions.addArguments("--disable-default-apps"); chromeOptions.addArguments("--disable-infobars"); var driver = new Builder() .forBrowser('chrome') .setChromeOptions(chromeOptions) .build();
I'm still searching how to set full screen in video, and how to stop and play.
i'll post here when i find -
@Felipe-Guedes, does this work?
Alexa, pergunte Execute Comando execute automacao com o parâmetro boss baby.
I think I need to fix the portuguese text on the voice command cheat sheet page.
EDIT: I updated that voice command cheat sheet page. I hope that works better.
-
@Russ it's doesn't work.
No problem -
@Felipe-Guedes, what does Alexa say back to you?
-
@Russ I try to say in this order:
Alexa, Abrir Execute Comando Alexa, Execute automação com parâmetro boss baby Alexa says: Diga algo como execute a calculadora no laptop, você também pode dizer para se já estiver terminado.
Other way:
Alexa, pergunte Execute Comando executar automação com o parâmetro X. Alexa says: Diga algo como execute a calculadora no laptop, você também pode dizer para se já estiver terminado.
-
Thank you @Felipe-Guedes! That helps. I found and fixed one problem so far:
I said, "Alexa, pergunte Execute Comando executar calculadora." and Alexa sent this to my server, which is wrong. The value should have been calculadora, not comando calculadora.
"name": "Trigger", "value": "comando calculadora",
I've had this problem before. Alexa sends extra words in the trigger field. I fixed that, but I'm not sure that's the problem you were having.
After that it worked for me. I said, "Alexa, pergunte Execute Comando executar automação com o parâmetro boss baby" and it ran my command and passed "bos baby" as the parameter.
This is my test command:
Will you please test again and tell me if that helped?
-
i need to update something?
-
@Felipe-Guedes, no, I updated the code on the server to handle the problem when Alexa sends comando with the trigger word. I'm hoping that solves the problem you're having.
-
When i said the command like you said, alexa anwser me a helper to execute the command.
-
@Felipe-Guedes, are you saying Alexa answered this way again?
Diga algo como execute a calculadora no laptop, você também pode dizer para se já estiver terminado.
Also, if you go to https://alexa.amazon.com/ you can see the words Alexa thinks you said. Can you copy/paste that here?
This is what mine showed:
-
Sorry, i don't see this msg.
Yes, Alexa answer exactly this.Diga algo como execute a calculadora no laptop, você também pode dizer para se já estiver terminado.
-
@Felipe-Guedes, does this site work in Brazil or is this just the english or US version of Alexa web?
https://alexa.amazon.com/spa/index.html#cards
I was hoping you could use that site because it's helpful to know what Alexa is hearing.Also, if this is too much to ask, no problem, but would you mind sending me a recording of yourself saying, this?
Alexa, pergunte Execute Comando executar automação com o parâmetro bos baby.
I might be able to use the recording to "train" Alexa to hear it correctly.Thank you for your patience.
-
its that !