TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • RussR

      Trigger a command with a Shortcut via Siri

      Mac
      • • • Russ
      5
      0
      Votes
      5
      Posts
      939
      Views

      RussR

      @gajahduduk, the sendresult.sh script is not executable by default, so you could probably solve it by running this:

      chmod +x ~/.TRIGGERcmdData/sendresult.sh

      Or make your command:

      osascript -e 'tell application "Music" to set result to "This song is " & name of current track & " by " & artist of current track & " on the " & year of current track & " album " & album of current track' | sed 's/^/"/;s/$/"/' | xargs -I{} bash ~/.TRIGGERcmdData/sendresult.sh {}

      If you run a command like this:

      curl 'https://TRIGGERcmd.com/api/run/trigger?computer=maclaptop&trigger=result&token=(your token)'

      ... and your command has {{result}} in the Voice Reply field, you'll get a response like this:

      {"message":"Trigger sent. Result was: YOURRESULT"}

      So your Shortcut will need to parse that message using "Get Dictionary Value".

      This post has some detail about it.

      EDIT: I changed that response to the following to make it easier to get the command's result.

      {"message":"Trigger sent. Result was: YOURRESULT", "result":"YOURRESULT"}
    • G

      Alexa Plus

      Alexa
      • • • gajahduduk
      4
      0
      Votes
      4
      Posts
      23
      Views

      RussR

      @gajahduduk, ok - you're right you do have to use one the Trigger Command, TC, or TRIGGERcmd skill to hear the result of your command.

      To answer your question about adding that to the new TRIGGERcmd Smart Home skill - no, it's not possible.

    • G

      Crashing & translocation & ARM

      Mac
      • • • gajahduduk
      9
      0
      Votes
      9
      Posts
      199
      Views

      RussR

      @gajahduduk, that's great. Thank you for testing it and letting me know.

    • Jordel MirandaJ

      TriggerCMD não carrega a tela de comandos

      Windows
      • • • Jordel Miranda
      2
      0
      Votes
      2
      Posts
      5
      Views

      RussR

      @Jordel-Miranda, I think you have something in your commands.json that's causing the issue. Please try renaming it. It's in this folder:

      C:\Users\(your user)\.TRIGGERcmdData
    • RussR

      Trigger your commands in VR with Immersive Home

      Home Assistant
      • • • Russ
      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied