Author Topic: Controlling Dreambox DM800 HD  (Read 8782 times)

0 Members and 1 Guest are viewing this topic.

LOCOSP

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
    • View Profile
    • LOCOSP.ORG
Controlling Dreambox DM800 HD
« 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 .

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
Code: [Select]
web/zap?sRef={servicereference}
From XML file we know that FOX channel is
Code: [Select]
-<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
Code: [Select]
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

Code: [Select]
/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
« Last Edit: September 24, 2012, 05:11:39 PM by LOCOSP »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Controlling Dreambox DM800 HD
« Reply #1 on: September 24, 2012, 05:19:48 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
Code: [Select]
web/zap?sRef={servicereference}
From XML file we know that FOX channel is
Code: [Select]
-<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
Code: [Select]
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

Code: [Select]
/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
« Last Edit: September 24, 2012, 05:26:54 PM by Kalle »
***********  get excited and make things  **********

LOCOSP

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
    • View Profile
    • LOCOSP.ORG
Re: Controlling Dreambox DM800 HD
« Reply #2 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:

Code: [Select]

<?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:

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

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

« Last Edit: September 24, 2012, 05:49:24 PM by LOCOSP »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Controlling Dreambox DM800 HD
« Reply #3 on: September 24, 2012, 05:45:07 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:

Code: [Select]

<?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:

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

Code: [Select]
<?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
« Last Edit: September 24, 2012, 06:05:06 PM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Controlling Dreambox DM800 HD
« Reply #4 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"

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

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Controlling Dreambox DM800 HD
« Reply #5 on: September 24, 2012, 06:09:47 PM »
I knew that you explain it perfect

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

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Controlling Dreambox DM800 HD
« Reply #6 on: September 24, 2012, 06:12:47 PM »
Haha, I can see Sheldon, Rajesh and Leonard   :biglaugh
Which one are you?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Controlling Dreambox DM800 HD
« Reply #7 on: September 24, 2012, 06:14:21 PM »
I knew that you explain it perfect

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

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Controlling Dreambox DM800 HD
« Reply #8 on: September 24, 2012, 06:14:48 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
« Last Edit: September 24, 2012, 06:18:33 PM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Controlling Dreambox DM800 HD
« Reply #9 on: September 24, 2012, 06:21:30 PM »
this reminds me of Wanilton's birthday card :)

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Controlling Dreambox DM800 HD
« Reply #10 on: September 24, 2012, 06:24:05 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  ;)
« Last Edit: September 20, 2013, 07:55:45 AM by Kalle »
***********  get excited and make things  **********

LOCOSP

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
    • View Profile
    • LOCOSP.ORG
Re: Controlling Dreambox DM800 HD
« Reply #11 on: September 24, 2012, 06:31:47 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 ;)

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 ?

Code: [Select]
Scrape      192.165.?.?/web/zap?sRef={1}
or

Code: [Select]
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 ?
« Last Edit: September 24, 2012, 06:43:17 PM by LOCOSP »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Controlling Dreambox DM800 HD
« Reply #12 on: September 24, 2012, 06:54:05 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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Controlling Dreambox DM800 HD
« Reply #13 on: September 24, 2012, 06:57:19 PM »
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

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Controlling Dreambox DM800 HD
« Reply #14 on: September 24, 2012, 07:07:31 PM »
the halx.send command with your payload works.

[attachment=1]

[attachment=2]

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

LOCOSP

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
    • View Profile
    • LOCOSP.ORG
Re: Controlling Dreambox DM800 HD
« Reply #15 on: September 24, 2012, 07:13:56 PM »
the halx.send command with your payload works.

[attachment=1]

[attachment=2]

[attachment=3]

hehehe thanks I did it but ran out of time to post it :)

Thank You James and Kalle it is working perfectly :)

I'm using HALX plug for now but now will try scrape command...

did it like that:

LOCOSP

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
    • View Profile
    • LOCOSP.ORG
Re: Controlling Dreambox DM800 HD
« Reply #16 on: September 25, 2012, 06:41:33 PM »
Hi it's me again ;)

next question is:

If i have in my payload.xml

Code: [Select]
<payload>
      <value>1.1.1.1.1.1.1.1.1.1.1</value>
      <phrase>Cartoon Netowrk</phrase>
</payload>

and in first action is

Code: [Select]
Scrape 192.168.1.11/web ......{1}  (1.1.1.1.1.1.1.1.1.1.1)

How to make VC to say the name of the channel with TTS.Speak ?

I mean, what to write to make it say <phrase> ? I've try to set TTS.Speak {1} but was said the <value> 1.1.1.1.1.1 ...
« Last Edit: September 25, 2012, 06:44:45 PM by LOCOSP »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Controlling Dreambox DM800 HD
« Reply #17 on: September 25, 2012, 07:31:11 PM »
Hi it's me again ;)

next question is:

If i have in my payload.xml

Code: [Select]
<payload>
      <value>1.1.1.1.1.1.1.1.1.1.1</value>
      <phrase>Cartoon Netowrk</phrase>
</payload>

and in first action is

Code: [Select]
Scrape 192.168.1.11/web ......{1}  (1.1.1.1.1.1.1.1.1.1.1)

How to make VC to say the name of the channel with TTS.Speak ?

I mean, what to write to make it say <phrase> ? I've try to set TTS.Speak {1} but was said the <value> 1.1.1.1.1.1 ...
You can try - TTS.Speak {LastSpoken}
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Controlling Dreambox DM800 HD
« Reply #18 on: September 25, 2012, 08:21:57 PM »
I think you want friendly payloads.

{PF.1}

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Controlling Dreambox DM800 HD
« Reply #19 on: September 26, 2012, 08:52:03 PM »
this reminds me of Wanilton's birthday card :)



Be carefull, I am commander now... :biglaugh :biglaugh
« Last Edit: September 26, 2012, 08:57:20 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

LOCOSP

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
    • View Profile
    • LOCOSP.ORG
Re: Controlling Dreambox DM800 HD
« Reply #20 on: September 27, 2012, 06:38:19 AM »
Thank You James it's working :)

LOCOSP

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
    • View Profile
    • LOCOSP.ORG
Re: Controlling Dreambox DM800 HD
« Reply #21 on: October 01, 2012, 07:52:59 AM »
Hi, I don't want to start new topic so just will ask here maybe You can help me again ;) :

Is in EventGhost any similar action as a scrape action in VC ?

I'm asking because have problem with halx plugin for EG from this forum and the problem looks like this :



Thank You.  
« Last Edit: October 01, 2012, 07:59:38 AM by LOCOSP »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Controlling Dreambox DM800 HD
« Reply #22 on: October 01, 2012, 08:33:20 AM »
Not that I know of, but I'm surprised that the eg Halx plugin does not work. It is dead simple. I can't quite see the whole error message but it looks like it can't create a socket for the web request which may indicate some other network related problem.  Or maybe you've configured event ghost wrong somehow.

It is super easy to send an http request using a python script in event ghost, if you want to try that.

http://www.eventghost.org/forum/viewtopic.php?f=2&t=3226

LOCOSP

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
    • View Profile
    • LOCOSP.ORG
Re: Controlling Dreambox DM800 HD
« Reply #23 on: October 01, 2012, 08:41:19 AM »
Sorry , my fault ! forgot about port redirection :) it's working fine now.

Thank You python scripting clue.

;)