@Moacir-Vilela-Sêga good. Sorry I didn't get back to you but I did test it and it was still working for me.
-
RE: [FIXED]
-
RE: Trigger a command with a Shortcut via Siri
Nice @gajahduduk. I'm glad you got it working. Thanks for sharing your use-case.
-
RE: Trigger a command with a Shortcut via Siri
@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"}
-
Trigger your commands in VR with Immersive Home
This screenshot doesn't show the room I could see while in VR. Apparently the Quest filters that out of screenshots.
I placed a switch in my room and now I can turn it on in VR to run Calculator on my "NewLaptop" computer via TRIGGERcmd.
It's pretty cool, but it needs work. It's opensource. I downloaded it for free and installed it with SideQuest, but you can also install it from the Meta Quest app store for $5. It reads your devices from your Home Assistant server.
-
RE: Crashing & translocation & ARM
@gajahduduk, that's great. Thank you for testing it and letting me know.
-
RE: TriggerCMD não carrega a tela de comandos
@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
-
RE: Alexa Plus
@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.
-
RE: Trigger a command with a Shortcut via Siri
@gajahduduk said in Trigger a command with a Shortcut via Siri:
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{} ~/.TRIGGERcmdData/sendresult.sh {}
Can you help me get started? I tried your command it doesn't seem to work. Is there something I need to do in the Music app first?
russ@macbook-air ~ % 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' 60:64: execution error: Can’t make name of «class pTrk» of application "Music" into type Unicode text. (-1700)
-
RE: Alexa Plus
That's interesting @gajahduduk. I'll need to do some research. I didn't know about this issue until you mentioned it here, so thank you for telling me.
As always, I recommend you switch to the TRIGGERcmd Smart Home skill unless you have a specific use-case for the Trigger Command skill.
-
RE: TRIGGERcmd with Smarthings using Schema Cloud Connector
@Cristian-Dindinelli, yes so far I haven't been able to get it working after the recent change Samsung made.