Author Topic: XJson.Raw help  (Read 1748 times)

0 Members and 1 Guest are viewing this topic.

adamroff

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 0
    • View Profile
XJson.Raw help
« on: August 18, 2015, 11:50:10 PM »
Hi all,
I have a basic understanding of VC and coding in general (sadly have not yet learnt JSON not sure if this would help)
Im sure this is a simple fix, but i have spent the last 3 hours going around in circles reading WIKI and digging through the forum finding XML commands and trying to deduct where im going wrong from others sucessfull commands.
TO THE POINT!

so i'm trying to setup a command that simply opens the weather window on my XBMC (hoping to add this command into my "WakeUp" Vera Scene that triggers VC goodmorning and current weather TTS.

i have one command that is Xjson.Raw and from what i can tell i have the value set almost right, i think i just need the parameters part?

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.8-->
<command id="296" name="test guiWeather" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <params>
      <param>GUI.ActiviateWindow</param>
      <param>"window":"weather", "parameters" : ["missing this part"]</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>

If anyone could direct me to a page with any sort of documentation on this function or any more basic functions or even somewhere i can read and figure out the correct syntax i would be verry greatfull! (as i have read over the wiki JSON-RPC API to no avail :( )

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: XJson.Raw help
« Reply #1 on: August 19, 2015, 01:45:08 AM »
First off welcome to the forum,  I'm not the official welcome wagon but Still welcome to the forums

this command will open the weather window,

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.7-->
<command id="296" name="test guiWeather" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <params>
      <param>GUI.ActivateWindow</param>
      <param>"window": "weather"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>

for a good understanding of the json commands I usually take apart other commands and use sites like these

Kodi List of built-in functions http://kodi.wiki/view/List_of_built-in_functions

JSON-RPC API/v6 http://kodi.wiki/view/JSON-RPC_API/v6#Input.ExecuteAction

Kodi Action IDs http://kodi.wiki/view/Action_IDs

Kodi http://forum.kodi.tv/showthread.php?tid=183394

Kodi JSON-RPC API http://kodi.wiki/view/JSON-RPC_API#HTTP

adamroff

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 0
    • View Profile
Re: XJson.Raw help
« Reply #2 on: August 20, 2015, 01:09:11 AM »
 ::duh

OMG, I should of known my bad typing skills would be to blame! i had an extrenious "i" in my GUI.ActivateWindow command  :-[

thank you for that easy fix! now i can wake up in style  8)

also thanks heaps for the links! i have some reading to do now