News:

HOT TIP! In the command editor, you can ctrl-click and drag an item to create a copy of it.

Main Menu

XBMC + Live TV + VoxCommando

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

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Mace

Here is a guide for using the live TV function in XBMC Frodo.

See this video for installing VoxCommando with XBMC Frodo.

Step 1:- Making a TV Payloads.xml file: If you have run the Xsql plug-in correctly then you already have an xbmcTvChannel.xml file in ?XbmcPayloads? folder. Go to Step 2.
If not then from VC window select Plugins then select Xsql
Export XML to Folder: .\\XbmcPayloads (or where ever you choose to save this file, adjust the command to point to it.)

In the OutPut (XML payload files) section add this:
Type: TV
Query: select idChannel, sChannelName from channels where bIsRadio=0
Filename: xbmcTvChannels
Sub: tick

Click Save and Generate

Step 2: Making the commands ? (copy this command to your command tree)

<command id="711" name="Live TV Channel" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>Player.Open&amp;&amp;"item" : {"channelid" : {1}}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>GUI.ShowNotification&amp;&amp;"title" : "{LastSpoken}" , "message" : ""</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase optional="true">Switch to, Play</phrase>
  <phrase>Channel</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone">XbmcPayloads\xbmcTvChannels.xml</payloadFromXML>
</command>


and you're done!

Should look like this:


Here's some optional extras for getting the program guide up: -

This one is for the PVR window Program Guide:

<command id="1511" name="PVR Screen" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>XJson.ExecBuiltin</cmdType>
                <cmdString>ActivateWindowAndFocus(mypvr, 31,0, 10,0)</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>Program Guide</phrase>
        </command>


In the PVR window:



And this one shows a Program Guide on-screen while watching tv:

<command id="1465" name="EPG On Screen" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>GUI.ActivateWindow&amp;&amp;"window" : "pvrosdchannels"</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Program Guide On Screen</phrase>
</command>


On Screen:



Command Group File attached if you wish to install as group.

Update: 03/03/2015
Here's a couple updates to better suit the new kodi api.

for TvGuide:
Change -
      to ->

for TvGuide on Screen:-
Change -
      to ->

Can also add a new Command to go to the Live TV channel list:
               

Kalle

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

Mace


maxwel

Can someone help me please i can't find any xbmctvchannel.xml ? thank you

nime5ter

Hi maxwel,

See Mace's step 1.
Quote from: Mace on May 21, 2013, 06:24:47 AM
Here is a guide for using the live TV function in XBMC Frodo. See this video for installing VoxCommando with XBMC Frodo.

Step 1:- Making a TV Payloads.xml file: If you have run the Xsql plug-in correctly then you already have an xbmcTvChannel.xml file in ‘XbmcPayloads’ folder. Go to Step 2.
If not then from VC window select Plugins then select Xsql
Export XML to Folder: .\\XbmcPayloads (or where ever you choose to save this file, adjust the command to point to it.)

In the OutPut (XML payload files) section add this:
Type: TV
Query: select idChannel, sChannelName from channels where bIsRadio=0
Filename: xbmcTvChannels
Sub: tick

Click Save and Generate
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

maxwel

Thank for your quick response nime5ter. I really appreciate your time.

I have done  that step 1 but i can´t find any xbmcTvChannel.xml file in ‘XbmcPayloads´ What am I doing wrong? Xsql plug is activer

jitterjames

Follow ALL the directions provided by Mace, and then reposted by Nime5ter.

If all you did was activate the plugin then that was not enough.  All the steps are there you just need to follow them.

jitterjames

#7
I hope this is a bit easier to follow.  It is basically the same instructions as given above, but hopefully clearer and more precise for you.

1) go to options and enable the xSql plugin
2) restart VC
3) go to plugin settings for xSql plugin
4) verify that the path labeled "Export XML to Folder" is correctly set to the default value of: .\XbmcPayloads
5) verify that the table contains a row which reads
TV    select idChannel, sChannelName from channels where bIsRadio=0      xbmcTvChannels
6) select Sub if you want to be able to save only part of the episode name, otherwise leave it unchecked.
7) click "Save and Generate" button.

Once all this is done, you can always perform an update form the main VC window by clicking:
GenXML   >>   XBMC Frodo  >>   xSQL

jitterjames

please note there was an error in my code block above.  I corrected it.

If you don't have this line already you need to create one.

maxwel

Thanks you James for reply .. I'm using the old version of vox that was the problem I think so I am going to update now.

philby85

Hi Everyone,

Newbie here please be gentle lol. I followed the instructions set everything up and imported the xml. The phrase, "program guide on screen" works for me my while watching live tv. The "program guide" phrase which I am using from the xvmc home screen does not show the the guide. In the top right hand corner displays the text program guide with a circle next to it with and an i in it. The TTS announces program guide. This disappears after a few seconds. My pvr backend is Nextpvr which is all working fine. I am using vc 1.1.8.3. Thanks for a wonderful program and great contributors.

cheers

Phil

Kalle

#11
Hi philby85 and welcome to VC forum.
Did you VC setup with XBMC Eden or Frodo commands? Did you installed the VoxTools-addon in XBMC? Work all other commands for xbmc?
If not, please take a look here http://voxcommando.com/forum/index.php?topic=1073.0

Let us know if this has your problem solved.
***********  get excited and make things  **********

philby85

Hi Kalle,

Thanks for your reply, I have enjoyed your videos. I have setup for frodo. the vox add-on for xbmc is installed. All other commands work so far.

kind regards

Phil

philby85

Hi Kalle,

I checked my xbmc and although the repo for fox was there the add-on wasn't showing anywhere. So I refreshed the repository and installed and now all working. Thanks for the tip very much appreciate your time.

regards

Phil

Kalle

No problem, thanks for your report  ;)
***********  get excited and make things  **********