News:

VC = Vox = VoxCommando
EG = EventGhost
WMC = Windows Media Center
WSR = Windows Speech Recognition

Main Menu

Weather PopUp in xbmc with weather Icon

Started by PegLegTV, February 21, 2015, 02:33:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PegLegTV

This is a simple XBMC/Kodi weather popup,

this gets the weather from xbmc and the weather icons come from a folder you will need to unzip and add to your VC Folder(Attached below)

it shows the City, Temperature, and Condition along with the weather icon

(the white block is the City name)




XBMC Weather- Don't forget the XbmcWeather.zip below
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.3.8-->
<commandGroup open="True" name="XBMC Weather" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="503" name="Current Weather XBMC" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>XBMC.GetInfoLabels</param>
        <param>"labels": ["Weather.fanartcode","Weather.Location","Weather.Conditions","Weather.Temperature"]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>:\s"(.*?)"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetLastResult</cmdType>
      <params>
        <param>{Path.VC}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegExReplace</cmdType>
      <params>
        <param>\\</param>
        <param>\\</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>GUI.ShowNotification</param>
        <param>"image":"{LastResult}\\XbmcWeather\\{Match.4}.png","title":" {Match.2} ","message":" {Match.3} &amp; {Match.1} "</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetLastResult</cmdType>
      <params>
        <param>{Match.3}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegExReplace</cmdType>
      <params>
        <param>°F</param>
        <param>Degrees</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.SpeakSync</cmdType>
      <params>
        <param>The Current weather is {LastResult} and {Match.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Show me the weather, What is it like outside, What is the weather like, What's the weather like</phrase>
  </command>
</commandGroup>


sometimes the popup will show "busy" if that is the case wait a minute or two before trying it again and make sure you have weather setup in XBMC/Kodi

Haddood

 :clap :clap :clap
In my setup I have Vc make Kodi switch to the weather page when I ask about weather ... As long as there is no video playing ...
This is way cooler ....
Thanks for sharing
When Voice command gets tough, use hand gestures