News:

VC = Vox = VoxCommando
EG = EventGhost
WMC = Windows Media Center
WSR = Windows Speech Recognition

Main Menu

Controlling Dreambox DM800 HD

Started by LOCOSP, September 24, 2012, 04:56:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LOCOSP

Hi every body,

I will not explain my self that I am new in here and need help bla bla :)

I have an idea to control dreambox receiver with VC but don't know how to do it... ( sounds funny :) )

But maybe it is not so hard to do it just need some clues.

Like VC let us learn him the data base of XBMC movie for example via XML files so the question is how can I learn him with different xml file witch I can generate with my dreambox ( channels list )


it looks like that http://locosp.dyndns.org/channels.xml .

Edited: Sorry I had to zip it because it have ton of code and my browse can't viewed it via link I've posted

so now it is http://locosp.dyndns.org/channels.zip .

Mayby its not so simple I am thinking but if i could use my xml to teach VC with my channels, maybe he can then after my command "change to FOX" change the channel for me ?!

Now I'm using halx plugin to sand something like
web/zap?sRef={servicereference}

From XML file we know that FOX channel is
-<e2service> <e2servicereference>1:0:1:13F4:5DC:13E:820000:0:0:0::FOX</e2servicereference> <e2servicename>FOX</e2servicename> </e2service>

So the thing to control dreambox should teach VC with the names of channels like FOX and attribute to it
http://dreambox_IP/web/zap?sRef=1:0:1:13F4:5DC:13E:820000:0:0:0::FOX

or doing this somehow via halx plugi with

/web/zap?sRef=1:0:1:13F4:5DC:13E:820000:0:0:0::FOX

I wish You can understand me and sorry for my English if something is wrong or sounds funny ;)

Regards
Borys

Kalle

#1
Quote from: LOCOSP on September 24, 2012, 04:56:33 PM
Hi every body,

I will not explain my self that I am new in here and need help bla bla :)

I have an idea to control dreambox receiver with VC but don't know how to do it... ( sounds funny :) )

But maybe it is not so hard to do it just need some clues.

Like VC let us learn him the data base of XBMC movie for example via XML files so the question is how can I learn him with different xml file witch I can generate with my dreambox ( channels list )

it looks like that http://locosp.dyndns.org/channels.xml .

Mayby its not so simple I am thinking but if i could use my xml to teach VC with my channels, maybe he can then after my command "change to FOX" change the channel for me ?!

Now I'm using halx plugin to sand something like
web/zap?sRef={servicereference}

From XML file we know that FOX channel is
-<e2service> <e2servicereference>1:0:1:13F4:5DC:13E:820000:0:0:0::FOX</e2servicereference> <e2servicename>FOX</e2servicename> </e2service>

So the thing to control dreambox should teach VC with the names of channels like FOX and attribute to it
http://dreambox_IP/web/zap?sRef=1:0:1:13F4:5DC:13E:820000:0:0:0::FOX

or doing this somehow via halx plugi with

/web/zap?sRef=1:0:1:13F4:5DC:13E:820000:0:0:0::FOX

I wish You can understand me and sorry for my English if something is wrong or sounds funny ;)

Regards
Borys
Hi LOCOSP and welcome in VC Forum. I'm sure it is possible to read the data from channel.xml and stored in a VoxCommando generated XML, but I'm not sure how can VC communicate with the dreambox (maybe it have a open API). I think James can say more about these things.
Do have the dreambox a webinterface with a remote so that you can control it from a pc?

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

LOCOSP

#2
Ok, I did little recon with my mentor @MrWolf ;)

and I've found xbmcMovies.xml what I've mentioned before, and its look like that:



<?xml version="1.0" encoding="UTF-8"?>

<!--A VoxCommando Payload file-->
-<PayloadsRoot>
 -<payload>
     <value>E:\Video\Starship Troopers Invasion (2012).avi</value>
     <phrase>Starship Troopers: Invasion</phrase>
     <subsetmatching>true</subsetmatching>
</payload>
</PayloadsRoot>


So if I'm thinking right I should build XML file looking like that:


<?xml version="1.0" encoding="UTF-8"?>

<!--A VoxCommando Payload file-->
-<PayloadsRoot>
 -<payload>
     <value>1:0:1:13F4:5DC:13E:820000:0:0:0::FOX</value>
     <phrase>FOX</phrase>
     <subsetmatching>true</subsetmatching>
</payload>
</PayloadsRoot>


or ?!


<?xml version="1.0" encoding="UTF-8"?>

<!--A VoxCommando Payload file-->
-<PayloadsRoot>
 -<payload>
     <value>/web/zap?sRef=1:0:1:13F4:5DC:13E:820000:0:0:0::FOX</value>
     <phrase>FOX</phrase>
     <subsetmatching>true</subsetmatching>
</payload>
</PayloadsRoot>


But how to configure it then, and what is the:  <subsetmatching>true</subsetmatching> ??

Thank You
Borys

@Kalle Hi there ;) ,

I'm sure it will work because it is working now



but I try to save time to enter over 200 channels and their config to VC :)

If still thinking right should i use this thing below instead regular Phrase like I did before ?


Kalle

#3
Quote from: LOCOSP on September 24, 2012, 05:34:11 PM
Ok, I did little recon with my mentor @MrWolf ;)

and I've found xbmcMovies.xml what I've mentioned before, and its look like that:



<?xml version="1.0" encoding="UTF-8"?>

<!--A VoxCommando Payload file-->
-<PayloadsRoot>
 -<payload>
     <value>E:\Video\Starship Troopers Invasion (2012).avi</value>
     <phrase>Starship Troopers: Invasion</phrase>
     <subsetmatching>true</subsetmatching>
</payload>
</PayloadsRoot>


So if I'm thinking right I should build XML file looking like that:


<?xml version="1.0" encoding="UTF-8"?>

<!--A VoxCommando Payload file-->
-<PayloadsRoot>
 -<payload>
     <value>1:0:1:13F4:5DC:13E:820000:0:0:0::FOX</value>
     <phrase>FOX</phrase>
     <subsetmatching>true</subsetmatching>
</payload>
</PayloadsRoot>


or ?!


<?xml version="1.0" encoding="UTF-8"?>

<!--A VoxCommando Payload file-->
-<PayloadsRoot>
 -<payload>
     <value>/web/zap?sRef=1:0:1:13F4:5DC:13E:820000:0:0:0::FOX</value>
     <phrase>FOX</phrase>
     <subsetmatching>true</subsetmatching>
</payload>
</PayloadsRoot>


But how to configure it then, and what is the:  <subsetmatching>true</subsetmatching> ??

Thank You
Borys
Ok, I know what a submatch is, but I can't it you explain the submatching in a payload with my bad english (sorry) I'm sure you become in a few minutes a answer from James (Mr. VoxCommando personally  :biglaugh  )

Haha, I can see Sheldon, Rajesh and Leonard   :biglaugh
***********  get excited and make things  **********

jitterjames

subset matching means you can say only part of the phrase to trigger the command.

so if you have a really long channel name you will only need to say part of the channel name.

Example, I can say "Play artist bowie" instead of "Play artist David Bowie".   If you set subsetmatching to FALSE, then you will need to say "Play artist David Bowie"

You can either use the halx plugin or the scrape command.  (I would just use scrape personally).

your action will be something like this:

Scrape      192.165.?.?/web/zap?sRef={1}

and your payload value should look like this:
<value>1:0:1:13F4:5DC:13E:820000:0:0:0::FOX</value>

the {1} will be replaced with the value.

as for creating the xml file you can probably modify the one you have using find/replace to convert it to the format used for VC.  Or if you can view the names and values in Excel then you can copy and paste them into the payload editor.

Kalle

I knew that you explain it perfect

[attachment=1]
***********  get excited and make things  **********

jitterjames


jitterjames

Quote from: Kalle on September 24, 2012, 06:09:47 PM
I knew that you explain it perfect

[attachment=1]
Ha.  You are obviously at work...

Kalle

#8
Quote from: jitterjames on September 24, 2012, 06:12:47 PM
Which one are you?
You can see me on the pic - mji  is rajesh and after I have seen MrWolfs video it looks like a bit Howard  :biglaugh
***********  get excited and make things  **********

jitterjames

this reminds me of Wanilton's birthday card :)

Kalle

#10
Quote from: jitterjames on September 24, 2012, 06:21:30 PM
this reminds me of Wanilton's birthday card :)
me too, so I get this idea - but your card is even better - you are the PSp crack  ;)
***********  get excited and make things  **********

LOCOSP

#11
Quote from: jitterjames on September 24, 2012, 06:05:25 PM
subset matching means you can say only part of the phrase to trigger the command.

so if you have a really long channel name you will only need to say part of the channel name.

Example, I can say "Play artist bowie" instead of "Play artist David Bowie".   If you set subsetmatching to FALSE, then you will need to say "Play artist David Bowie"

Ok, thanks now I understand ;)

Quote from: jitterjames on September 24, 2012, 06:05:25 PM
You can either use the halx plugin or the scrape command.  (I would just use scrape personally).

your action will be something like this:

Scrape      192.165.?.?/web/zap?sRef={1}

and your payload value should look like this:
<value>1:0:1:13F4:5DC:13E:820000:0:0:0::FOX</value>

the {1} will be replaced with the value.

as for creating the xml file you can probably modify the one you have using find/replace to convert it to the format used for VC.  Or if you can view the names and values in Excel then you can copy and paste them into the payload editor.


but this part not really :)

I've configured HALX plugin with the IP of dreambox already so the action should looks like You said ?

Scrape      192.165.?.?/web/zap?sRef={1}

or

Scrape      web/zap?sRef={1}[/s]

Sorry second reading better understanding ;)

You proposed to use scrape action instead of HALX plugin :D, goos I'll try...

In the meantime I've made my xml and it looks like that: http://locosp.dyndns.org/channels.xml

If I have to build the actions like You showed so it can't be done automatically somehow ? Like its happens with XBMC Movie Data base ?

jitterjames

Quote from: LOCOSP on September 24, 2012, 06:31:47 PM

In the meantime I've made my xml and it looks like that: http://locosp.dyndns.org/channels.xml

If I have to build the actions like You showed so it can't be done automatically somehow ? Like its happens with XBMC Movie Data base ?
Not unless someone writes a program to do it.

jitterjames

a word of caution,  the speech engine may have a hard time understanding all those letter combinations

TTV, CNBC, TVP etc.

while you are doing find replace you may want to try replacing them with T.T.V., C.N.B.C. etc. so it does not think they are regular words.  i think periods will work, or you could use spaces.

Kalle

the halx.send command with your payload works.

[attachment=1]

[attachment=2]

[attachment=3]
***********  get excited and make things  **********