Author Topic: XBMC + Live TV + VoxCommando  (Read 27697 times)

0 Members and 3 Guests are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC + Live TV + VoxCommando
« Reply #15 on: January 05, 2014, 09:52:33 AM »
Problem solved while I slept. I'm glad Kalle is back at his station!  :D

Welcome Philby85.

maxwel

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #16 on: February 05, 2014, 04:05:48 PM »
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

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #17 on: February 05, 2014, 06:15:18 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: XBMC + Live TV + VoxCommando
« Reply #18 on: February 05, 2014, 06:39:18 PM »
"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:

Code: [Select]
<?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

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #19 on: February 06, 2014, 02:55:06 AM »
Hey Kalle, could you share your command group?
sounds interesting to me ;D

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #20 on: February 06, 2014, 04:16:20 AM »
Hallo Dave,

mach ich heute Abend  ;)

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

maxwel

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #21 on: February 06, 2014, 12:53:40 PM »
i am wondering what would be like the command group of jitterjames and kalle!!

Thanks you guys for your help

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #22 on: February 06, 2014, 02:41:16 PM »
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

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #23 on: February 06, 2014, 04:35:44 PM »
Hi kalle, would it be possible to have your command group in Engels version  :-[

Grtz

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #24 on: February 06, 2014, 04:59:03 PM »
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

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #25 on: February 06, 2014, 05:34:19 PM »
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

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #26 on: February 06, 2014, 05:43:44 PM »
Cool, Danke  ;D
***********  get excited and make things  **********

maxwel

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #27 on: February 07, 2014, 01:46:04 AM »
Yes please Kalle i'll love it  :)

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #28 on: February 07, 2014, 05:37:35 AM »
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
« Last Edit: February 07, 2014, 01:37:34 PM by Kalle »
***********  get excited and make things  **********

maxwel

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
    • View Profile
Re: XBMC + Live TV + VoxCommando
« Reply #29 on: February 07, 2014, 12:40:41 PM »
Dank u wel Kalle . I really appreciate it