Kodi Community Forum
[WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 (/showthread.php?tid=125232)



RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - Crall - 2012-11-17

(2012-11-17, 20:21)cyberrage Wrote: any news on a working version for frodo beta1? thanks!

(2012-11-17, 20:42)ibramadhan Wrote:
(2012-11-17, 20:21)cyberrage Wrote: any news on a working version for frodo beta1? thanks!

+1

http://www.dotnetdevelopers.net/XBMC/xbmcpvr.html this one from the 16:th works on the nightley from the 17:th.


RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - Leatherface - 2012-11-18

Or use my repo from post #763 but you need to compile it yourself.


[WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - jdembski - 2012-11-18

Why don't you use the pre-build packages? As these are build from the opdenkamp's repo they should work.


RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - Leatherface - 2012-11-18

I added this to my branch https://github.com/xbmc/xbmc/pull/1743

Something for you to play with Smile
Or maybe it needs a plugin on the Enigma2 to work.


RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - cyberrage - 2012-11-18

Crall Wrote:http://www.dotnetdevelopers.net/XBMC/xbmcpvr.html this one from the 16:th works on the nightley from the 17:th.

Thank You! It works!



RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - im85288 - 2012-11-18

I have the latest frodo beta 1 installed on Windows 8 and the package installed from the dotnetdevelopers site. Everything works correctly except fot when I try to record something..it first asks for confirmation to record, then after saying yes it reports a problem with the backend pvr. This is what I see in the log:

14:06:03 T:2944 WARNING: XFILE::CCurlFile::CReadState::FillBuffer: curl failed with code 22
14:06:03 T:2944 ERROR: CCurlFile::CReadState::Open, didn't get any data from stream.
14:06:03 T:2944 ERROR: XFILE::CFileCache::Open - failed to open source <http://192.168.1.201:80/web/timeradd?sRef=1:0:19:EDA:7D5:2:11A0000:0:0:0::401 Sky Sports 1 HD&repeated=0&begin=1353246872&end=1353252600&name=Millwall%20v%20Leeds%2DLive&description=Millwall%20meet%20Leeds%20United%20at%20The%20Den%20in%20the%20npower%20Championship%2E%20The%20hosts%20are%20unbeaten%20in%20nine%20games%2C%20while%20Leeds%20come%20into%20this%20fixture%20off%20the%20back%20of%20their%206%2D1%20thrashing%20by%20Watford%2E&eit=127>
14:06:03 T:2944 ERROR: PVR - PVR::CPVRClient::AddTimer - addon 'ultimo:192.168.1.201' returned an error: server error
14:06:03 T:2944 ERROR: PVR - PVR::CPVRClients::AddTimer - cannot add timer to client '1': server error

Should record be working?


[WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - jdembski - 2012-11-18

(2012-11-18, 16:09)im85288 Wrote: I have the latest frodo beta 1 installed on Windows 8 and the package installed from the dotnetdevelopers site. Everything works correctly except fot when I try to record something..it first asks for confirmation to record, then after saying yes it reports a problem with the backend pvr. This is what I see in the log:

14:06:03 T:2944 WARNING: XFILE::CCurlFile::CReadState::FillBuffer: curl failed with code 22
14:06:03 T:2944 ERROR: CCurlFile::CReadState::Open, didn't get any data from stream.
14:06:03 T:2944 ERROR: XFILE::CFileCache::Open - failed to open source <http://192.168.1.201:80/web/timeradd?sRef=1:0:19:EDA:7D5:2:11A0000:0:0:0::401 Sky Sports 1 HD&repeated=0&begin=1353246872&end=1353252600&name=Millwall%20v%20Leeds%2DLive&description=Millwall%20meet%20Leeds%20United%20at%20The%20Den%20in%20the%20npower%20Championship%2E%20The%20hosts%20are%20unbeaten%20in%20nine%20games%2C%20while%20Leeds%20come%20into%20this%20fixture%20off%20the%20back%20of%20their%206%2D1%20thrashing%20by%20Watford%2E&eit=127>
14:06:03 T:2944 ERROR: PVR - PVR::CPVRClient::AddTimer - addon 'ultimo:192.168.1.201' returned an error: server error
14:06:03 T:2944 ERROR: PVR - PVR::CPVRClients::AddTimer - cannot add timer to client '1': server error

Should record be working?

Well, for some reason the web interface did not accept the command send by the addon.

In a future version the addon will display the reported error - I.e. if the web interface tells that he could not add the timer because of a lack of free tuners, then it will display it. With the current version I don't know how to see this, sorry.


RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - im85288 - 2012-11-18

Thank you very much for your quick response. I have dug a little deeper and used the web interfaced directly to add a timer, this works correctly but from what I can see the URL it uses is very different from the one sent by the plugin.

This is the one sent when I activate the timer from the web interface directly: http://192.168.1.201/ajax/epgpop?sref=1%3A0%3A19%3AEDA%3A7D5%3A2%3A11A0000%3A0%3A0%3A0%3A%3A401%20Sky%20Sports%201%20HD#

And this was the one sent by the plugin: http://192.168.1.201:80/web/timeradd?sRef=1:0:19:EDA:7D5:2:11A0000:0:0:0::401 Sky Sports 1 HD&repeated=0&begin=1353246872&end=1353252600&name=Millwall%20v%20Leeds%2DLive&description=Millwall%20meet%20Leeds%20United%20at%20The%20Den%20in%20the%20n​power%20Championship%2E%20The%20hosts%20are%20unbeaten%20in%20nine%20games%2C%20​while%20Leeds%20come%20into%20this%20fixture%20off%20the%20back%20of%20their%206​%2D1%20thrashing%20by%20Watford%2E&eit=127

By pasting the one sent by the addon directly into a web browser the time is added successfully and appears in XBMC highlighted red as being recorded. It is then possible to stop the recording successfully. So the constructed URL by the addon is correct...but for some reason it is not accepted


RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - jdembski - 2012-11-20

The first URL you posted is the URL you see in the browser URL line, but it is not the URL that is being used to add the timer. The web interface uses ajax (javascript) to sent these requests to the box - if you really want to see what is going over the network you could install something like firebug for firefox.

I think that it is being caused by the lack of URL encoding of the Service Reference part. The fix is quite simple, but I don't have the time right now to do so, as I need to re-install my build-environment first. Big sorry for that!


RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - im85288 - 2012-11-21

No problem at all, this is a great plugin which I hope will allow me to finally use XBMC for everything and not need to exit XBMC for watching Live TV like I used too..so I really appreciate your work. Once this is fixed and timeshift is working it will be like being in paradise :-)


RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - belese - 2012-11-25

(2012-10-23, 15:48)jdembski Wrote:
(2012-10-23, 12:43)PKOneTwo Wrote: If you scroll back a bit you'll see already asked jedembski and he told us why it won't work with E1 and what is needed (it's no XML).

Hmm, I just checked the TuxBox-Code within XBMC and was very surprised that it also parses the output from enigma1 boxes as XML. I then searched the internet again and found this (sorry, this is only in german):

http://wiki.tuxbox.org/wiki/Ehttp_api_doku#XML-Funktionen

So it looks like there is an XML interface after all!

Unfortunately, there are no real examples for these commands shown there:

- Fetching all timers: http://dbox/xml/timers
- Fetch the epg for the channel with the {service reference}: http://dbox/xml/serviceepg?ref={service reference}
- Boxinfo: http://dbox/xml/boxinfo
- Fetch all service: http://dbox/xml/services

And also there is no indication on what those functions to add, delete or change timers return on success / failure.

If you could sent me some examples then I could check whether I could clone this addon and amend the necessary parts in the code. But someone else would have to test this as I don't have any real enigma1 box to test this.

Hello,

First thanks for this plugin, but like to have this plugin in enigma1, like many other.
i read this thread, and if could help, i'll do some test for the enigma 1 xml webif
i can find more info on this page
http://gitorious.org/tuxbox-apps/mainline/blobs/d40f8b97d509231ac637f1eb58641fd6ea416efe/tuxbox/enigma/src/enigma_dyn_xml.cpp

Here is the function and the response

/xml/boxinfo

return

Code:
<?xml version="1.0" encoding="UTF-8"?>
<boxinfo>
    <image>
        <version>0470200912120000</version>
        <url>&nbsp;</url>
        <comment>&nbsp;</comment>
        <catalog>&nbsp;</catalog>
    </image>
    <firmware>release 4.7.0, 12.12.2009</firmware>
    <fpfirmware>n/a</fpfirmware>
    <webinterface>6.0.4-Expert</webinterface>
    <model>DM500</model>
    <manufacturer>Dream-Multimedia-TV</manufacturer>
    <processor>STBx25xx, 252MHz</processor>
    <usbstick>none</usbstick>
    <disk>none</disk>
</boxinfo>

/xml/boxstatus

return

Code:
<?xml version="1.0" encoding="UTF-8"?>
<boxstatus>
    <current_time>Sun Nov 25 18:45:25 2012
</current_time>
    <standby>0</standby>
    <recording>0</recording>
    <mode>0</mode>
    <ip>192.168.1.105</ip>
</boxstatus>

/xml/currentservicedata

return

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<currentservicedata>
    <service>
        <name>ARTE</name>
        <reference>1:0:1:1fec:434:1:c00000:0:0:0:</reference>
    </service>
    <audio_channels>
        <channel><pid>0x0070</pid><selected>1</selected><name>French</name></channel><channel><pid>0x0071</pid><selected>0</selected><name>German</name></channel><channel><pid>0x0072</pid><selected>0</selected><name>English</name></channel><channel><pid>0x0073</pid><selected>0</selected><name>qad</name></channel>
    </audio_channels>
    <audio_track>
        STEREO
    </audio_track>
    <video_channels>
        
    </video_channels>
    <current_event>
        <date>25.11.2012</date>
        <time>18:15</time>
        <start>1353863700</start>
        <duration>(90)</duration>
        <description>PAAVO JARVI DIRIGE GRIEG, SIBELIUS E...</description>
        <details>Paavo Järvi dirige Grieg, Sibelius et Pärt Enregistré salle Pleyel. Avec Elisabeth Leonskaja. Au programme : «Silhouette, hommage à Gustave Eiffel», d'Arvo Pärt (création mondiale) ; «Concerto pour piano» opus 16, d'Edvard Grieg ; «Symphonie n°2» opus 43, de Jean Sibelius.</details>
    </current_event>
    <next_event>
        <date>25.11.2012</date>
        <time>19:45</time>
        <start>1353869100</start>
        <duration>(15)</duration>
        <description>ARTE JOURNAL</description>
        <details>Présenté par Leïla Kaddour-Boudadi, Marie Labory (en alternance). L'actualité internationale présentée en alternance, une semaine sur deux, par Leïla Kaddour-Boudadi et Marie Labory.</details>
    </next_event>
</currentservicedata>

xml/serviceepg?ref=1:0:1:20b4:432:1:c00000:0:0:0:
xml/serviceepg (current channel)

return

Code:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/xml/serviceepg.xsl"?>
<service_epg>
    <service>
        <reference>1:0:1:20b4:432:1:c00000:0:0:0:</reference>
        <name>M6</name>
    </service>
    <event id="0">
    <date>25.11.2012</date>
    <time>18:30</time>
    <duration>4200</duration>
    <description>66 MINUTES : LES HISTOIRES QUI FONT ...</description>
    <genre>n/a</genre>
    <genrecategory>00</genrecategory>
    <start>1353864600</start>
    <details>66 minutes : les histoires qui font l'actu Présenté par Xavier de Moulins. Reportages sur des événements marquants de l'actualité, portraits de personnalités, interviews ou sujets remettant en perspective un événement majeur sont au coeur de cette émission.</details>
</event>
<event id="1">
    <date>25.11.2012</date>
    <time>19:40</time>
    <duration>300</duration>
    <description>METEO</description>
    <genre>n/a</genre>
    <genrecategory>00</genrecategory>
    <start>1353868800</start>
    <details>Information non disponible</details>
</event>

</service_epg>

/xml/services?mode=x&submode=y&reference=ref
where
iMODE: 0 = TV, 1 = Radio, 2 = Data, 3 = Movies, 4 = Root
SUBMODE: 0 = n/a, 1 = All, 2 = Satellites, 2 = Providers, 4 = Bouquets

the only 'docs' i find is from xbmc tuxbox here
https://github.com/xbmc/xbmc/blob/master/xbmc/utils/TuxBoxUtil.cpp

ex : http://ip/xml/services?mode=0&submode=4&reference=4097:7:0:1dacf:0:0:0:0:0:0:/var/tuxbox/config/enigma/userbouquet.1dacf.tv/

/xml/services
returns
Code:
<?xml version="1.0" encoding="UTF-8"?>
<satellites>
<satellite><reference>1:31:fffffffe:12:ffce0000:ffffffce:0:0:0:0:</reference>
<service><reference>1:0:1:66:50dd:55f:ffce0000:0:0:0:</reference><name>RTL9 BIS</name><provider>EUTELSAT</provider><orbital_position>-50</orbital_position></service>
<service><reference>1:0:1:67:50dd:55f:ffce0000:0:0:0:</reference><name>Offre BIS.TV</name><provider>EUTELSAT</provider><orbital_position>-50</orbital_position></service>

...

/xml/streaminfo
return
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="/xml/streaminfo.xsl"?>
<streaminfo>
<frontend>DVB-S</frontend>
<service>
    <name>ARTE</name>
    <reference>1:0:1:1fec:434:1:c00000:0:0:0:</reference>
</service>
<provider>CSAT</provider>
<vpid>00a8h (168d)</vpid>
<apid>0070h (112d)</apid>
<pcrpid>00a8h (168d)</pcrpid>
<tpid>003bh (59d)</tpid>
<tsid>0434h</tsid>
<onid>0001h</onid>
<sid>1fech</sid>
<pmt>0515h</pmt>
<video_format>544x576 16:9 25 fps</video_format>
<namespace>c00000h</namespace>
<supported_crypt_systems>4a70h Dream Multimedia TV (DreamCrypt)</supported_crypt_systems>
<used_crypt_systems>None</used_crypt_systems>
<satellite>Astra 19°E</satellite>
<frequency>11934</frequency>
<symbol_rate>27500</symbol_rate>
<polarisation>Vertical</polarisation>
<inversion>No</inversion>
<fec>3/4</fec>
<snr>93%</snr>
<agc>87%</agc>
<ber>0</ber>
<lock>Yes</lock>
<sync>Yes</sync>
<modulation>#MODULATION#</modulation>
<bandwidth>#BANDWIDTH#</bandwidth>
<constellation>#CONSTELLATION#</constellation>
<guardinterval>#GUARDINTERVAL#</guardinterval>
<transmission>#TRANSMISSION#</transmission>
<coderatelp>#CODERATELP#</coderatelp>
<coderatehp>#CODERATEHP#</coderatehp>
<hierarchyinfo>#HIERARCHYINFO#</hierarchyinfo>
</streaminfo>

/xml/timers
is just reading timer, i d'ont think tou can set timer with this api

to set timer :

http://dmip/addTimerEvent?timer=regular&ref=1:0:1:20b4:432:1:c00000:0:0:0:&channel=M6&sday=25&smonth=11&syear=2012&shour=19&smin=10&eday=25&emonth=11&eyear=2012&ehour=19&emin=10&descr=description&after_event=0&action=dvr&extra_path=/hdd/movie

and it return

Code:
Timer event was created successfully.

without anything else

i cannot have an error code, everything in params give me this response (or crash the dreambox)

If you need more info, or test,i can try.
Thanks for reading

Belese




RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - jarlen - 2012-11-27

Hi, I wonder if anyone could help me with this plugin?

I have a DM800HD with OpenPLi 2.1, using Openwebif, no password, default ports.

I have now installed Frodo beta on my Windows install, have installed latest vuplus.pvr addon 0.3.4 (right?) and I have enabled it and set the settings (using "Zap before switch", since it's single tuner).

I get all my bouqet and can see the EPG, when I try to stream the active channel on my DM800 it works and I can stream all I want.

But, the problem I have is that I can not stream any other channel, the box does not switch/zap channel and no stream can then occur. It works from the Openwebif to change channel, then stream from within XBMC, but the plugin cannot make the switch.

Also tried this on my Openelec 3 beta (Fusion build) with addon ver. 0.3.4 and same problem.

Is there a setting on the DM800HD i've been missing?!


RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - sfuchs - 2012-11-27

(2012-11-27, 12:57)jarlen Wrote: Hi, I wonder if anyone could help me with this plugin?

I have a DM800HD with OpenPLi 2.1, using Openwebif, no password, default ports.

I have now installed Frodo beta on my Windows install, have installed latest vuplus.pvr addon 0.3.4 (right?) and I have enabled it and set the settings (using "Zap before switch", since it's single tuner).

I get all my bouqet and can see the EPG, when I try to stream the active channel on my DM800 it works and I can stream all I want.

But, the problem I have is that I can not stream any other channel, the box does not switch/zap channel and no stream can then occur. It works from the Openwebif to change channel, then stream from within XBMC, but the plugin cannot make the switch.

Also tried this on my Openelec 3 beta (Fusion build) with addon ver. 0.3.4 and same problem.

Is there a setting on the DM800HD i've been missing?!

It's working flawless with OpenPLi 3.0 beta on my DM8000...


RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - jdembski - 2012-11-27

(2012-11-27, 12:57)jarlen Wrote: Hi, I wonder if anyone could help me with this plugin?

I have a DM800HD with OpenPLi 2.1, using Openwebif, no password, default ports.

I have now installed Frodo beta on my Windows install, have installed latest vuplus.pvr addon 0.3.4 (right?) and I have enabled it and set the settings (using "Zap before switch", since it's single tuner).

I get all my bouqet and can see the EPG, when I try to stream the active channel on my DM800 it works and I can stream all I want.

But, the problem I have is that I can not stream any other channel, the box does not switch/zap channel and no stream can then occur. It works from the Openwebif to change channel, then stream from within XBMC, but the plugin cannot make the switch.

Also tried this on my Openelec 3 beta (Fusion build) with addon ver. 0.3.4 and same problem.

Is there a setting on the DM800HD i've been missing?!

I think there is some setting on either the webinterface or the box itself called "allow channel switch" or something similar - maybe this is not set?



RE: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 - im85288 - 2012-11-28

Does anyone have problems with HD channels with this plugin on Windows? The picture seems to Judder a bit for me, especially noticeable when watching football