Now you can get the result of a remote command in your API response.
-
Here's a Youtube video to demonstrate: https://youtu.be/q0Uu4SNFKFY
You can use the https://www.triggercmd.com/api/run/triggerSave API or the tcmd tool to see the result of the remote command. The Youtube video shows me using the tcmd utility to call the API.
Send the result back to the server using the SendResult.bat (or .sh) script in the .TRIGGERcmdData subfolder of your user's home folder.
The script only has about 4 seconds to send the result.
The SendResult script has to run in the context of a running remote command - generally as the last command in a script.
Your command's "Voice Reply" field has to have {{result}} in it because that's the result's placeholder in the voiceReply field the API returns.
EDIT 6/18/22: You can no longer get the result via the /api/run/triggerSave api. You can only get it via Alexa or Google Assistant. If you want it back in the api response, let me know.
EDIT 9/15/23: Now you can get the result via the API again. Your response will look like this: Trigger sent. Result was: YourResult
-
R Russ referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login