<?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[Hear stock quotes from Google Assistant or Alexa]]></title><description><![CDATA[<p dir="auto">This Powershell script calls the API and sends the result back to TRIGGERcmd so Alexa or Google Assistant can speak the price.</p>
<p dir="auto">The "demo" API key can only lookup Microsoft, so you'll want to get a free API key from <a href="https://www.alphavantage.co" rel="nofollow ugc">https://www.alphavantage.co</a> to lookup your own stocks.</p>
<p dir="auto">I added this as an example in Browse Examples in the GUI editor.<br />
This only works on Windows, but let me know if you want me to do a Mac or Linux version of this script.</p>
<pre><code>$symbol="MSFT"
$apikey="demo"
$resource="https://www.alphavantage.co/query?function=GLOBAL_QUOTE&amp;symbol=$symbol&amp;apikey=$apikey"
$response=Invoke-RestMethod -Method Get -Uri $resource
$price=$response.'Global Quote'.'05. price'
$cmd="$env:USERPROFILE\.TRIGGERcmdData\sendresult.bat"
cmd /c $cmd $price
</code></pre>
<p dir="auto">Configure the <strong>Voice Reply</strong> field like this:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1574297202082-241c0cb1-bdda-4832-9ddc-a48f4f466af2-image.png" alt="241c0cb1-bdda-4832-9ddc-a48f4f466af2-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">There are a few other data points besides just price at this endpoint:<br />
<a href="https://www.alphavantage.co/query?function=GLOBAL_QUOTE&amp;symbol=MSFT&amp;apikey=demo" rel="nofollow ugc">https://www.alphavantage.co/query?function=GLOBAL_QUOTE&amp;symbol=MSFT&amp;apikey=demo</a></p>
]]></description><link>https://www.triggercmd.com/forum/topic/562/hear-stock-quotes-from-google-assistant-or-alexa</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 00:16:05 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/562.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Nov 2019 00:39:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hear stock quotes from Google Assistant or Alexa on Fri, 22 Nov 2024 14:04:23 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> Many thanks. Unfortunately I don't own an Alexa so I'm going to need to find an alternative. I can get GH to speak custom phrases on command using  "assistant.command.Broadcast" with Google's Web based Automations script editor but that is just a fixed phrase.  Guess I'm going back to Gemini for more ideas! Good to see TC still going strong - I first used it 5 years ago!</p>
]]></description><link>https://www.triggercmd.com/forum/post/8323</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8323</guid><dc:creator><![CDATA[Colin M]]></dc:creator><pubDate>Fri, 22 Nov 2024 14:04:23 GMT</pubDate></item><item><title><![CDATA[Reply to Hear stock quotes from Google Assistant or Alexa on Fri, 22 Nov 2024 13:09:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/24054">@Colin-M</a> Google's removal of the conversational Google action removed the voice reply capability for Google Home, but you could still do it with the Alexa Triggercmd skill.</p>
]]></description><link>https://www.triggercmd.com/forum/post/8322</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8322</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 22 Nov 2024 13:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to Hear stock quotes from Google Assistant or Alexa on Fri, 22 Nov 2024 11:41:26 GMT]]></title><description><![CDATA[<p dir="auto">I'm trying to use TC to run a Python script that generates and returns a text phrase that I then want Google Home to speak. I was hoping this could be done using "Voice Reply" section in GUI editor - I have it set to (without quotes)  "The script response is {{result}}" but this is not working - no response at all from GH. Thought I could test the voice reply using this Stock quotes example but doesn't appear to be in "Browse Examples". Is this functionality still available for GH or has the removal of "Conversational skills" by google removed it?</p>
]]></description><link>https://www.triggercmd.com/forum/post/8321</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8321</guid><dc:creator><![CDATA[Colin M]]></dc:creator><pubDate>Fri, 22 Nov 2024 11:41:26 GMT</pubDate></item></channel></rss>