16
New Releases / Re: Major update ALPHA 2.3.0.1
« on: August 17, 2019, 03:53:57 PM »
oops. I'm not sure what happened there. I will take a look at this when I get home at the end of August.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.7-->
<command id="454" name="Search my list for {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>OSD.ShowText</cmdType>
<params>
<param>VC heard: {1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>PayloadXML.GetValue</cmdType>
<params>
<param>payloads\produce.xml</param>
<param>{1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="False">
<ifType>LastActionSuccess</ifType>
<ifParams>&&</ifParams>
<then>
<action>
<cmdType>OSD.AddText</cmdType>
<params>
<param>Found: {LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType>OSD.AddText</cmdType>
<params>
<param>{1} was not found in the Produce payload file</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<phrase>Search my list for</phrase>
<payloadDictation>payloadDictation: Regular</payloadDictation>
</command>
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.5-->
<command id="280" name="Today's forecast" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="You can paste the full scrape results into an online JSON viewer for help finding all the variables. list[0] contains today's data. list[1] would be tomorrow's etc.">
<action>
<cmdType>Scrape</cmdType>
<params>
<param>https://api.openweathermap.org/data/2.5/forecast?units=metric&lat=yourlatitude&lon=yourlongitude&APPID=yourapikeygoeshere&units=metric</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.SetVar</cmdType>
<params>
<param>forecast</param>
<param>{LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.ParseTokens</cmdType>
<params>
<param>Today's forecast calls for a high of {list[0].main.temp_max} degrees and {list[0].weather[0].description}.</param>
<param>{var.forecast}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.ShowText</cmdType>
<params>
<param>{LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.ParseTokens</cmdType>
<params>
<param>{list[0].wind.speed}</param>
<param>{var.forecast}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)<(B)</ifType>
<ifParams>10&&{LastResult}</ifParams>
<then>
<action>
<cmdType>OSD.AddText</cmdType>
<params>
<param>Expect winds of {LastResult} km/h</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<phrase>What's today's forecast</phrase>
</command>
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.5-->
<command id="283" name="Get 5-day forecast (location by lat,lon)" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Get your own api key at: https://openweathermap.org/
In your own apiKeys map, add an openWeather key with a value: APPID=YOUR_APIKEY
In Scrape action: Change the lat&long to your own real coordinates. units=metric can be changed to units=imperial">
<action>
<cmdType>Scrape</cmdType>
<params>
<param>https://api.openweathermap.org/data/2.5/forecast?{M:apiKeys.openWeather}&mode=xml&units=metric&lat=0&lon=-1</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.SetVar</cmdType>
<params>
<param>forecast</param>
<param>{LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<params>
<param><sun\srise.*?T(\d\d):(\d\d).*?T(\d\d):(\d\d)</param>
<param />
<param>{var.forecast}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>PY.ExecString</cmdType>
<params>
<param>result={Match.1.1}-5</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.SetVar</cmdType>
<params>
<param>sunrise</param>
<param>{LastResult}:{Match.1.2}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>PY.ExecString</cmdType>
<params>
<param>result={Match.1.3}-5</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.SetVar</cmdType>
<params>
<param>sunset</param>
<param>{LastResult}:{Match.1.4}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.ShowText</cmdType>
<params>
<param>Sunrise: {var.sunrise}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.AddText</cmdType>
<params>
<param>Sunset: {var.sunset}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Get forecast</phrase>
</command>