<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Feedback on triggers]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a> First, I love what you did, it's answering a lot of needs, thank you for your contribution!<br />
I want to know if I can / will be able to get alexa to draw output of some shell script that I can ask her to run remotely, for example:<br />
Alexa, ask triggercmd to run backup<br />
and when backup script is finished, she will say the exit code or exit command like:<br />
"Backup successful!"<br />
or:<br />
"Backup failed!"<br />
Is it possible? Will it be?</p>
<p dir="auto">Thank you!!</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2015/feedback-on-triggers</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 02:02:24 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/2015.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Jan 2022 18:25:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Feedback on triggers on Sat, 29 Jan 2022 15:27:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/13853">@tal-sabadia</a>, there is a way to get a simple "failed" or "succeeded" voice response for a long script run or a script that you trigger manually.</p>
<ul>
<li>1: It requires creating two TRIGGER.cmd dummy scripts (dummy1 &amp; dummy2) that simply echo "OK" when ran from command line.</li>
<li>2: At the end of the backup script have them triggered (using the tcmd tool found here <a href="https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now">https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now</a>) based 1 on a fail and other on a succeed result.</li>
<li>3: In Alexa routines create two, one for dummy1 that Alexa says something like, "Trigger C M D reports script succeeded"<br />
The other for dummy2 that Alexa says something like, "Trigger C M D reports script failed"</li>
</ul>
<p dir="auto">This way you can use the same routines and dummy scripts for several different long running scripts and even for scripts that aren't started by TRIGGERcmd</p>
]]></description><link>https://www.triggercmd.com/forum/post/5448</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5448</guid><dc:creator><![CDATA[tuicemen]]></dc:creator><pubDate>Sat, 29 Jan 2022 15:27:46 GMT</pubDate></item><item><title><![CDATA[Reply to Feedback on triggers on Thu, 27 Jan 2022 12:11:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a>, I did know the smarthome skill wouldn't  work for this. But didn't  realize I could have Alexa or Google respond to a script ran manualy with a TRIGGERcmd call inside to enable a voice responce. This is cool and has me thinking of some new Ideas.</p>
]]></description><link>https://www.triggercmd.com/forum/post/5424</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5424</guid><dc:creator><![CDATA[tuicemen]]></dc:creator><pubDate>Thu, 27 Jan 2022 12:11:04 GMT</pubDate></item><item><title><![CDATA[Reply to Feedback on triggers on Sat, 12 Feb 2022 15:13:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/13853">@tal-sabadia</a> and <a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/13362">@tuicemen</a> , fyi, <strong>the voiceReply</strong> field only works with the TRIGGERcmd and TRIGGER command skills, not the TRIGGERcmd Smart Home skill.</p>
<p dir="auto">So if your backup is really quick, it will work.  You need to run the SendResult.bat or <a href="http://SendResult.sh" rel="nofollow ugc">SendResult.sh</a> script from the script your command ran within about 6 seconds.  That's about all Google Assistant and Alexa allow for a reply to a voice command.</p>
<p dir="auto">This is a little complicated, but it would work:</p>
<ol>
<li>At the end of your backup script, write the result to a file saying "succeeded" or "failed".</li>
<li>After that, the same script would run another TRIGGERcmd command using curl or the <a href="https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now">tcmd</a> tool that does nothing (just have it run echo), but it's <a href="https://www.triggercmd.com/forum/topic/1844/run-an-alexa-routine-when-a-command-runs">tied to an Alexa routine</a>.</li>
<li>The Alexa routine's action would run a third triggercmd command with <strong>result</strong> in the voice field using a <strong>custom action</strong> that says, "ask TRIGGER C M D to run result".<br />
<img src="/forum/assets/uploads/files/1643243938428-9d2da38a-9de1-46ed-b0c3-6d2389870ab1-image.png" alt="9d2da38a-9de1-46ed-b0c3-6d2389870ab1-image.png" class=" img-fluid img-markdown" /></li>
<li>The command with result as its voice word will run a script that reads the file your backup script wrote, then either run <strong>~/.TRIGGERcmdData/sendresult.sh succeeded</strong> or <strong>~/.TRIGGERcmdData/sendresult.sh failed</strong> depending on what it finds in that file.</li>
<li>Your Alexa will say, "The backup succeeded" if you have this in your Voice Reply field and the backup succeeded.  {{result}} is a placeholder for what you send back with the <a href="http://sendresult.sh" rel="nofollow ugc">sendresult.sh</a> script.<br />
<img src="/forum/assets/uploads/files/1643244745111-7f90b479-fb86-4187-9ed9-255047ef4b13-image.png" alt="7f90b479-fb86-4187-9ed9-255047ef4b13-image.png" class=" img-fluid img-markdown" /></li>
</ol>
<p dir="auto">Notice too I picked my Office Alexa as the one that will say the result of the backup.</p>
<p dir="auto">You'll need the TRIGGERcmd skill enabled for this to work.  Or enable the TRIGGER command skill and substitute "ask TRIGGER C M D to run result" above with "ask trigger command to run result".</p>
]]></description><link>https://www.triggercmd.com/forum/post/5414</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5414</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 12 Feb 2022 15:13:35 GMT</pubDate></item><item><title><![CDATA[Reply to Feedback on triggers on Wed, 26 Jan 2022 21:07:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/13853">@tal-sabadia</a>  I made a couple of scripts which reply back results to Alexa if triggered from Alexa.</p>
<p dir="auto">If you wish to trigger without Alexa and get Alexa to reply when it is finished you'd need something like <a href="https://voicemonkey.io/" rel="nofollow ugc">https://voicemonkey.io/</a><br />
TRIGGERcmd can't currently do this..</p>
]]></description><link>https://www.triggercmd.com/forum/post/5412</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5412</guid><dc:creator><![CDATA[tuicemen]]></dc:creator><pubDate>Wed, 26 Jan 2022 21:07:34 GMT</pubDate></item><item><title><![CDATA[Reply to Feedback on triggers on Wed, 26 Jan 2022 19:53:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/13362">@tuicemen</a> Thanks for replying so fast!<br />
Well, it's not just about backup. That was just an example.<br />
I'm talking on Amazon Echo 4th, not Raspberry Pi.<br />
I just want to receive feedback off of what I'm running, the exit code or some echo command.</p>
<p dir="auto">For example, if I'm doing it without alexa, say running a simple script of echo "hello", I want to know if that was successful or make alexa say "X was done successfuly" or not if it didn't, know what I mean?</p>
]]></description><link>https://www.triggercmd.com/forum/post/5411</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5411</guid><dc:creator><![CDATA[tal sabadia]]></dc:creator><pubDate>Wed, 26 Jan 2022 19:53:10 GMT</pubDate></item><item><title><![CDATA[Reply to Feedback on triggers on Wed, 26 Jan 2022 18:44:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/13853">@tal-sabadia</a>, This is possible now using "voiceReply": in your commands.json file. There are a few examples in the Raspberry pi Example commands.<br />
How well it would work for a backup I'm not sure.</p>
]]></description><link>https://www.triggercmd.com/forum/post/5410</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5410</guid><dc:creator><![CDATA[tuicemen]]></dc:creator><pubDate>Wed, 26 Jan 2022 18:44:16 GMT</pubDate></item></channel></rss>