News:

HOT TIP! Exploring the commands packaged in VC's standard configurations is a great way to learn how to build your own. You can also clone a command as a starting point: just right-click and select "Clone" (or type Alt-C).

Main Menu

XBMC + Live TV + VoxCommando

Started by Mace, May 21, 2013, 06:24:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jitterjames

Problem solved while I slept. I'm glad Kalle is back at his station!  :D

Welcome Philby85.

maxwel

Hi everyone.

i am wondering if it is possible to make VC to say what is now playing on live tv or what tv show is coming next!

thanks for any reply

Kalle

Yes it is possible and I think in different ways. I have done such a command with the Robo browser plugin in VC, which open a programm guide in the robo browser (hidden) and scrape the data from it.
I can post the command group, but all commands and also the TV guide is in german ::)
There is also a command integrated to ask VC which TV show is running on a specific time - only probem, this take some seconds before you get the result.
***********  get excited and make things  **********

jitterjames

"what movie is this" should work to tell you what is playing except that it will try to tell you the cast as well so I don't know if that would work with live TV.

Here is a "What am I watching" command you can try that tells you the title of the now playing item:

<?xml version="1.0" encoding="utf-16"?>
<command id="517" name="What am I watching" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
 <action>
   <cmdType>XJson.Raw</cmdType>
   <cmdString>Player.GetItem&amp;&amp;"playerid":1,  "properties": ["title"]</cmdString>
   <cmdRepeat>1</cmdRepeat>
 </action>
 <action>
   <cmdType>XJson.ParseTokens</cmdType>
   <cmdString>Now playing {item.title}</cmdString>
   <cmdRepeat>1</cmdRepeat>
 </action>
 <action>
   <cmdType>XJson.SoftMute</cmdType>
   <cmdString>60</cmdString>
   <cmdRepeat>1</cmdRepeat>
 </action>
 <action>
   <cmdType>TTS.SpeakSync</cmdType>
   <cmdString>{LastResult}</cmdString>
   <cmdRepeat>1</cmdRepeat>
 </action>
 <action>
   <cmdType>XJson.SoftUnMute</cmdType>
   <cmdString />
   <cmdRepeat>1</cmdRepeat>
 </action>
 <phrase>What am I watching</phrase>
</command>


I have no idea how you would do it for "what is playing next".  It will probably vary depending on your pvr back-end etc. and I have no live tv here to experiment with.

Dave

Hey Kalle, could you share your command group?
sounds interesting to me ;D

Kalle

Hallo Dave,

mach ich heute Abend  ;)

Gruß
Kalle
***********  get excited and make things  **********

maxwel

i am wondering what would be like the command group of jitterjames and kalle!!

Thanks you guys for your help

Kalle

Hi Dave,

hier mal eine Command group für die TV guide (habe es gerade noch mal am desktop PC ausprobiert - und es will nicht mehr so richtig funktionieren  :-[ - es müssen wohl die RoboB.Element actions angepasst werden).
Aber die Richtung stimmt und vielleicht hast Du die Geduld dafür  ;)

Das ganze hatte mal schön funktioniert, aber vielleicht hat sich was auf der Internetseite geändert  :bonk

Gruß
Kalle

PS: Die tvguide.xml und minutestoGgCal.xml müssen in den payload Ordner von VC und das RoboB plugin aktiviert sein.
***********  get excited and make things  **********

maxwel

Hi kalle, would it be possible to have your command group in Engels version  :-[

Grtz

Kalle

Yes, I can translate it, but I want to point out that these commands do not work properly because TVinfo has changed the layout of the website. This example will give you a hint how the RoboB plugin works.
***********  get excited and make things  **********

Dave

Hey Kalle, danke erstmal!

Es scheint sich tatsächlich was an der Webseite geändert zu haben, ich schau am Wochenende mal ob ich das hinbekomme!

Kalle

***********  get excited and make things  **********

maxwel


Kalle

#28
Ok maxwel, I've translate the phrases and also the TTS.speak actions to english. I've disable in both commands the last action RoboB.Dispose, so the RoboB browser stay open after the command. In this way you can see/play in the browser window by your self when you enable the "tracking" function at the top of this windows, which will show you the data behind the elements on this website when you move the mouse over it.

copy the VcGrp_TV guideEN.xml in your command tree. Save the tvguide.xml and minutestoGgCal.xml in the VC payload folder.

1. You need find a website with a TV guide for your country and then figure out which elements you need.
2. You must edit the payload tvguide.xml for your channels.

Good luck  ;D
Kalle
***********  get excited and make things  **********

maxwel

Dank u wel Kalle . I really appreciate it