Author Topic: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012  (Read 28640 times)

0 Members and 1 Guest are viewing this topic.

claymic

  • $upporter
  • Sr. Member
  • *****
  • Posts: 152
  • Karma: 0
    • View Profile
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #45 on: January 11, 2013, 11:47:22 AM »
You read my mind James. You are all right. I made some tests in vox early to see if the actions will works like a callback function.
Thanks for the tips. Later i will start some more complex actions and maybe create a little plugin to manage our tvshows. Let´s see.
Clayton
my bad again, its the same, just use the xbmcZoomLevelJson
James
I am trying to generate my xml for xbmc, but i get a error. Where i can see the log of this error to post here ?
Clayton

claymic

  • $upporter
  • Sr. Member
  • *****
  • Posts: 152
  • Karma: 0
    • View Profile
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #46 on: January 11, 2013, 12:13:45 PM »
Where i can get the voxtools.zip ?
Thanks

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #47 on: January 11, 2013, 12:25:51 PM »
please use the repository to install it.

use "install from zip" to install the repository with the attached file.  then you can install VoxTools after that.

The current version of VoxTools should be 0.1.3

claymic

  • $upporter
  • Sr. Member
  • *****
  • Posts: 152
  • Karma: 0
    • View Profile
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #48 on: January 11, 2013, 12:27:47 PM »
Thanks James, you send this to my email but i cant found it ;D
More tests coming ::)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #49 on: January 11, 2013, 02:28:23 PM »
Here are some more groups to play with.  One is just to play a movie (with resume if in progress)

the other is to request some info about currently playing music

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #50 on: January 11, 2013, 02:30:25 PM »
Here are some commands to play music (artist, album, song)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #51 on: January 11, 2013, 02:35:34 PM »
Here is XML for a group to test all actions I know of, it is probably the same as the ones that clayton uploaded, but this one is using payloads because it was easier for me to copy paste from an excel sheet!  I am including it only in case Clayton missed some...

Here is the group xml to copy and paste, and the attached file is the payloadXML


Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="True" name="XJSON Execute Actions Payload" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="182" name="Test Action {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <cmdString>Input.ExecuteAction&amp;&amp;"action":"{1}"</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Test Action</phrase>
    <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone">payloads\execute actions.xml</payloadFromXML>
  </command>
</commandGroup>

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #52 on: January 11, 2013, 03:06:25 PM »
And here are some of the new commands that use smart playlists.

You must have the latest version of voxTools for these to work.  The contents of smarts.zip should be in your VC\smarts folder

claymic

  • $upporter
  • Sr. Member
  • *****
  • Posts: 152
  • Karma: 0
    • View Profile
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #53 on: January 11, 2013, 03:10:56 PM »
Great James, thanks for all the codes.
The fist time that a made the execute action commands i made in this way too, everything in one payload, but for us from Brasil this can be complicate, we have to put separate commands to training the Vox or we will not be able to control in Portuguese. I have to isolate the commands to get a good result with the training.
I will test all the codes tonight.
Thanks again
Clayton

claymic

  • $upporter
  • Sr. Member
  • *****
  • Posts: 152
  • Karma: 0
    • View Profile
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #54 on: January 11, 2013, 03:12:24 PM »
Ok, i will suggeste to you put all the commands in the first post too, i believe that this topic will be big very soon ;D

claymic

  • $upporter
  • Sr. Member
  • *****
  • Posts: 152
  • Karma: 0
    • View Profile
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #55 on: January 11, 2013, 03:38:45 PM »
James
I tried again generate my xml for xbmc, but every time i get a error. I have to configure something ?
Thanks
Clayton

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #56 on: January 11, 2013, 05:23:36 PM »
Clayton,I generate XML for xbmc, follow the step go to setting addon xsql, point for your database, and press save and generate.



Done.

Clayton, ative os addons necessários, configure o addon xsql, aponte para os bancos de dados de músicas e filmes, e pressione na aba de configuração o botão save and generate.

"Quem é mestre, não perde o trono" Wanilton

 :biglaugh :biglaugh
« Last Edit: January 11, 2013, 05:34:27 PM by Wanilton »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #57 on: January 11, 2013, 06:46:18 PM »
Clayton,I generate XML for xbmc, follow the step go to setting addon xsql, point for your database, and press save and generate.
...

Also make sure that the plugin is using the latest database files.  Each version of Frodo that comes out seems to change the number of the database.

You can also ask for this using an action:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="437" name="gen xml Frodo" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XSQL.GenerateAll</cmdType>
    <cmdString />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>gen xml Frodo</phrase>
</command>

I did not yet add it to the documentation but I will update this in the next version.  It works fine in the current version.
« Last Edit: January 11, 2013, 06:54:13 PM by jitterjames »

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #58 on: January 11, 2013, 08:06:44 PM »
Yes, in my case database files are MyMusic32 and MyVideos75, only need search for files in database folder, when fine file, change red for green color in addon setting.

Wanilton
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

claymic

  • $upporter
  • Sr. Member
  • *****
  • Posts: 152
  • Karma: 0
    • View Profile
Re: XBMC JSON: for pre-Frodo nightlies after Oct. 9th 2012
« Reply #59 on: January 11, 2013, 08:58:16 PM »
Thanks guys.
Ok James, dont get upset with me ;D but i made some changes in your script. A little resume with the three most important add
- i made a function to let the VoxTools be running forever. A instance of the script will be running until we call again the script. This will let us manipulate some data that we get in the last call of the script, if we want of course.
- I insert a function to monitoring the player of the xbmc, this means that we can always know if a file (movie, tvshow or music) start,stop or finnesh to play.
- The third function its a little udp send. This will send a envent to vox.
We can now get automatic responses from VoxCommando.
Exemple:
When a movie start to play in the xbmc, a event its send to vox, we can then create a action for this event.
If you are not angry with me :biglaugh Please help me with the send event to vox. For now if you play a movie its send the string "movie", if play a music its send "music", if its playing a episode its send "tvshow"
I just dont remember how its the event, its something like "event&&movie" ?
Test and let me know what you think about this. There is many situations where we can use this.
Wanilton will like, i am pretty sure. If we are playing a music the vox can now read the name of song automatic, without have to send any command to the vox.

« Last Edit: January 11, 2013, 09:01:22 PM by claymic »