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

SendResult.bat - command_id

General Discussion
3
14
894
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.
  • A
    aaaaa12345 @aaaaa12345
    last edited by Jul 11, 2022, 8:02 PM

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • A
      aaaaa12345
      last edited by Jul 12, 2022, 1:46 PM

      [Solved]

      A 1 Reply Last reply Jul 13, 2022, 3:07 PM Reply Quote 0
      • A
        aaaaa12345 @aaaaa12345
        last edited by aaaaa12345 Jul 13, 2022, 3:11 PM Jul 13, 2022, 3:07 PM

        OK, meanwhile I'm able to change a trigger on-the-fly, so it can be used in cases where an ad-hoc 'voiceReply' timed out.

        Here a trigger is simply running a dummy command* and will respond with the dynamically changed 'voiceReply'-statement.
        The concept of this workaround isn't that complicated:
        a) identifying a trigger in the JSON file that should be changed
        b) changing its respective element(s)
        c) update the JSON file at the server
        Next time you ask that respective trigger it'll answer you with that dynamically updated response.

        Yep, you can change a command as well to your liking.
        The code should be available within the next days, provided at the AutoHotkey-Forum. Stay tuned 👨🌾

        BTW, if you know how to "force" Alexa to respond without being requested (TTS?) I'm all 👂🏻's

        R 1 Reply Last reply Jul 13, 2022, 5:52 PM Reply Quote 0
        • R
          Russ @aaaaa12345
          last edited by Jul 13, 2022, 5:52 PM

          @aaaaa12345, that's an interesting idea. I never thought of modifying the commands.json file to get a different voice reply. I put a couple other ideas in this thread:

          https://www.triggercmd.com/forum/topic/2241/delayed-response

          Russell VanderMey

          A 1 Reply Last reply Jul 14, 2022, 12:13 PM Reply Quote 0
          • A
            aaaaa12345 @Russ
            last edited by aaaaa12345 Jul 14, 2022, 1:07 PM Jul 14, 2022, 12:13 PM

            @Russ
            is there a chance to identify if the current user has subscribed using an API call?

            Bo

            BTW, regarding the NotifyMe-skill (mentioned above)...

            "There is no (current) way to make Alexa blurt out notifications without prompting -- you must ask her why she chimed. Amazon probably designed notifications this way so you are alerted to them even if you are out of the room when they arrive, much like the light on an answering machine lights up to let you know you have messages pending.

            If you want a skill that can make Alexa speak out without prompting, check out our Virtual Buttons skill"

            https://www.patreon.com/VirtualButtons

            HTH

            R 1 Reply Last reply Jul 16, 2022, 12:17 AM Reply Quote 0
            • A
              aaaaa12345
              last edited by aaaaa12345 Jul 14, 2022, 2:29 PM Jul 14, 2022, 2:24 PM

              From what I saw Amazon allows to drop a max of 5 notifications within 5 minutes. So any attempt to auto-update a trigger providing info at a faster pace that way, nope. JFTR.

              Question: Is there any known 'number of character limitation' for the 'voiceReply' key/element/control??

              R 1 Reply Last reply Jul 15, 2022, 11:52 PM Reply Quote 0
              • R
                Russ @aaaaa12345
                last edited by Jul 15, 2022, 11:52 PM

                @aaaaa12345, I don't know. I haven't tested the limit, but I did test this and it worked:

                I was thinking I would have stopped by now. Nope. How about I try to repleat it? this is a super long thing to say. I am Alexa, and this is a long thing for me to say. I think I might stop talking any time now. Some how I'm still talking. Imagine that. Can you believe it? I was thinking I would have stopped by now. Nope. How about I try to repleat it? I was thinking I would have stopped by now. Nope. How about I try to repleat it? this is a super long thing to say. I am Alexa, and this is a long thing for me to say. I think I might stop talking any time now. Some how I'm still talking. Imagine that. Can you believe it? I was thinking I would have stopped by now. Nope. How about I try to repleat it? result is {{result}} I was thinking I would have stopped by now. Nope. How about I try to repleat it? this is a super long thing to say. I am Alexa, and this is a long thing for me to say. I think I might stop talking any time now. Some how I'm still talking. Imagine that. Can you believe it? I was thinking I would have stopped by now. Nope. How about I try to repleat it? I was thinking I would have stopped by now. Nope. How about I try to repleat it? this is a super long thing to say. I am Alexa, and this is a long thing for me to say. I think I might stop talking any time now. Some how I'm still talking. Imagine that. Can you believe it? I was thinking I would have stopped by now. Nope. How about I try to repleat it? result is {{result}}

                Russell VanderMey

                1 Reply Last reply Reply Quote 0
                • R
                  Russ @aaaaa12345
                  last edited by Russ Jul 16, 2022, 12:17 AM Jul 16, 2022, 12:17 AM

                  @aaaaa12345, if you query your computer it will return your user too.

                  curl https://www.triggercmd.com/api/command/list?computer_id=(your computer id)&token=(your token)

                  The user object has a status property. If it's 2 you're subscribed. If it's 0 you're not.

                  Russell VanderMey

                  A 1 Reply Last reply Jul 16, 2022, 11:04 PM Reply Quote 0
                  • A
                    aaaaa12345 @Russ
                    last edited by aaaaa12345 Jul 16, 2022, 11:07 PM Jul 16, 2022, 11:04 PM

                    @Russ
                    Thx, got it. 👍

                    A 1 Reply Last reply Jul 19, 2022, 10:48 AM Reply Quote 0
                    • A
                      aaaaa12345 @aaaaa12345
                      last edited by aaaaa12345 Jul 19, 2022, 10:49 AM Jul 19, 2022, 10:48 AM

                      OK, Voice Monkey offers to trigger an instantaneously Echo Dot announcement via an Alexa Routine (I'd guess that's what TC is doing as well, acting as a switch/doorbell?). I'm using that to hand over whatever processing outcome (as text) to a specific VM monkey that will announce it ad-hoc (without needing to be requested first). VM's API is using a simple GET statement.
                      "The Announcer"-script is hosted here at the AutoHotkey forum.

                      VM's API offers a bunch of options/parameters like audio/video/img*/url/... I've tried it successfully with DropBox/...

                      * so you can play a song, while pushing its cover to your Echo Show (or FireTablet in "Show"-mode).

                      Have phun 🙂

                      A 1 Reply Last reply Jul 27, 2022, 7:39 PM Reply Quote 0
                      • A
                        aaaaa12345 @aaaaa12345
                        last edited by Jul 27, 2022, 7:39 PM

                        ...but unfortunately, Amazon has set up restrictions:

                        "Response length – The combined total time for the entire audio response generated from the components cannot be more than 240 seconds."

                        BUT...

                        "Our API throttling limits will allow up to 30 calls within a 60 second window…anything above that will block subsequent requests for the next 15 minutes."

                        So, no creating a music box isn't really doable - a text reader/TTS no problem!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post