Author Topic: Weather PopUp in xbmc with weather Icon  (Read 2134 times)

0 Members and 1 Guest are viewing this topic.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Weather PopUp in xbmc with weather Icon
« on: February 21, 2015, 02:33:48 PM »
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
Code: [Select]
<?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

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Weather PopUp in xbmc with weather Icon
« Reply #1 on: February 21, 2015, 08:58:23 PM »
 :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