• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Open Specific Netflix Movie with Alexa

Windows
8
40
10.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    Felipe Guedes
    last edited by Jul 5, 2020, 3:56 PM

    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:
    c6a209ef-d18f-43ce-a0b0-2ac841491e9d-image.png

    When i run directly in cmd, runs very well like i said, but in trggercmd no.

    R 1 Reply Last reply Jul 7, 2020, 12:21 AM Reply Quote 0
    • R
      Russ @Felipe Guedes
      last edited by Jul 7, 2020, 12:21 AM

      @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

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • F
        Felipe Guedes
        last edited by Jul 7, 2020, 11:46 PM

        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 !

        1 Reply Last reply Reply Quote 0
        • F
          Felipe Guedes @Felipe Guedes
          last edited by Jul 8, 2020, 12:02 AM

          @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

          R 1 Reply Last reply Jul 8, 2020, 9:40 PM Reply Quote 0
          • R
            Russ @Felipe Guedes
            last edited by Russ Jul 8, 2020, 10:00 PM Jul 8, 2020, 9:40 PM

            @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.

            Russell VanderMey

            F 1 Reply Last reply Jul 9, 2020, 9:24 PM Reply Quote 0
            • F
              Felipe Guedes @Russ
              last edited by Jul 9, 2020, 9:24 PM

              @Russ it's doesn't work.
              No problem

              R 1 Reply Last reply Jul 9, 2020, 10:28 PM Reply Quote 0
              • R
                Russ @Felipe Guedes
                last edited by Jul 9, 2020, 10:28 PM

                @Felipe-Guedes, what does Alexa say back to you?

                Russell VanderMey

                F 1 Reply Last reply Jul 10, 2020, 11:30 PM Reply Quote 0
                • F
                  Felipe Guedes @Russ
                  last edited by Jul 10, 2020, 11:30 PM

                  @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.
                  
                  R 1 Reply Last reply Jul 10, 2020, 11:36 PM Reply Quote 0
                  • R
                    Russ @Felipe Guedes
                    last edited by Russ Jul 11, 2020, 10:10 PM Jul 10, 2020, 11:36 PM

                    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.

                    c1b06f06-51f3-4d66-a701-584834ba1358-image.png

                    This is my test command:

                    8ad7e2ef-e4fe-4da7-96e6-15c56d392f17-image.png

                    Will you please test again and tell me if that helped?

                    Russell VanderMey

                    1 Reply Last reply Reply Quote 0
                    • F
                      Felipe Guedes
                      last edited by Jul 12, 2020, 9:28 PM

                      i need to update something?

                      R 1 Reply Last reply Jul 12, 2020, 10:26 PM Reply Quote 0
                      • R
                        Russ @Felipe Guedes
                        last edited by Russ Jul 12, 2020, 10:27 PM Jul 12, 2020, 10:26 PM

                        @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.

                        Russell VanderMey

                        1 Reply Last reply Reply Quote 0
                        • F
                          Felipe Guedes
                          last edited by Jul 14, 2020, 1:35 AM

                          When i said the command like you said, alexa anwser me a helper to execute the command.

                          R 1 Reply Last reply Jul 14, 2020, 11:30 PM Reply Quote 0
                          • R
                            Russ @Felipe Guedes
                            last edited by Russ Jul 14, 2020, 11:30 PM Jul 14, 2020, 11:30 PM

                            @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:

                            ec4ad4f7-5cd4-42b8-a9aa-669b820f6932-image.png

                            Russell VanderMey

                            1 Reply Last reply Reply Quote 0
                            • F
                              Felipe Guedes
                              last edited by Aug 1, 2020, 9:04 PM

                              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.

                              R 1 Reply Last reply Aug 1, 2020, 10:07 PM Reply Quote 0
                              • R
                                Russ @Felipe Guedes
                                last edited by Russ Aug 1, 2020, 10:09 PM Aug 1, 2020, 10:07 PM

                                @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.

                                Russell VanderMey

                                F 1 Reply Last reply Oct 22, 2020, 8:24 PM Reply Quote 0
                                • F
                                  Felipe Guedes
                                  last edited by Aug 2, 2020, 11:08 PM

                                  its that !
                                  alexa.PNG

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    Felipe Guedes @Russ
                                    last edited by Oct 22, 2020, 8:24 PM

                                    @Russ How i send you my voice record?

                                    R 1 Reply Last reply Oct 23, 2020, 12:35 AM Reply Quote 0
                                    • R
                                      Russ @Felipe Guedes
                                      last edited by Oct 23, 2020, 12:35 AM

                                      @Felipe-Guedes, you could use one device, like your computer to play it using that play button: 1f596754-56ea-4a76-a7f5-92de54da7f62-image.png ... and use another device, like your phone to record it.

                                      Russell VanderMey

                                      AdalbertoA 1 Reply Last reply Oct 25, 2020, 11:23 PM Reply Quote 0
                                      • AdalbertoA
                                        Adalberto @Russ
                                        last edited by Adalberto Oct 26, 2020, 9:49 AM Oct 25, 2020, 11:23 PM

                                        @Russ Hello, Russ. I didn't get lucky with this javascript here and I have created my own using Python + Selenium. It actually does the same thing. Opens the browser, inserts the credentials, searchs for the movie (parameter), plays it and puts it on fullscreen. If someone is interested, I can share the code.

                                        But actually, my reply is about the way we talk to Alexa to run the script. I'm from Brazil as well... When I'm using "Execute comando" it doesn't feel natural. Most of it is because the "pergunte" in the beginning. Something more like "Alexa, Execute Comando YYYY com parâmetro XXXX" would feel better.

                                        The "execute comando" needs to be part of the phrase and not the name of the service to feel more natural.

                                        André Ricardo da CostaA 1 Reply Last reply Oct 26, 2020, 1:42 AM Reply Quote 0
                                        • André Ricardo da CostaA
                                          André Ricardo da Costa @Adalberto
                                          last edited by Oct 26, 2020, 1:42 AM

                                          @Adalberto eu tenho interesse em testar esse código de puder compartilhar amigo. Muito obrigado.

                                          AdalbertoA 1 Reply Last reply Oct 26, 2020, 11:42 AM Reply Quote 0
                                          • First post
                                            Last post