TOPIC: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #201

  • ultraman
  • ultraman's Avatar
  • OFFLINE
  • Developer
  • Posts: 2456
  • Thank you received: 359
  • Karma: 171
My (correct) response from /web/getlocations
<?xml version="1.0" encoding="UTF-8"?>
<e2locations>
  <e2location>/hdd/movie/</e2location>
</e2locations>
ultraman == vpeter
my Opera web browser addon (not for RPi): openelec-opera-browser.notlong.com
my TrueCrypt addon: truecrypt-openelec.notlong.com/
Sundtek and HDHomeRun DVB driver addons
paypal donation to support my new challenges
Last Edit: 1 year 1 month ago by ultraman.
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #202

  • X23
  • X23's Avatar
  • OFFLINE
  • Senior Boarder
  • Catch me if you can
  • Posts: 166
  • Thank you received: 20
  • Karma: 19
Hi,
ultraman wrote:
My (correct) response from /web/getlocations
<?xml version="1.0" encoding="UTF-8"?>
<e2locations>
  <e2location>/hdd/movie/</e2location>
</e2locations>

to find out which is the standard path use:
http://e2boxip/web/getcurrlocation

Output:
<e2locations>
  <e2location>/media/net/xbmc/</e2location>
</e2locations>

The Dumb thing is that the path is on the oe machine itselfs so if this is working vuplus addon will play those records over the webif connection although the data is available locally.


Additionally:

With 0.1.4 most picons paths are wrong stored in channeldata.xml, the mistake is an ending _ "underscore" i replaced _.png with .png then all picons will be displayed.

I don't know if that error accours also with the latest 0.1.7?


Greetz X23
Looking for jDownloader with X-Server and VNC Support? Check my jDownloader Addon! Forum Thread: bit.ly/jdl_thread Repository: bit.ly/x23repo
Looking for a FTP Server with FXP and TLS Support? Check my ProFTPD Addon! Forum Thread: bit.ly/proftpd_thread Repository:...
Last Edit: 1 year 1 month ago by X23.
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #203

  • jdembski
  • jdembski's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 92
  • Thank you received: 14
  • Karma: 5
X23 wrote:
Hi,
jdembski wrote:
So unless you know how to fetch the path from the webinterface api this must be configured manually :/

have you checked:

e2devel.com/apidoc/webif/#getlocations
e2devel.com/apidoc/webif/#movielist

Iam not sure if that helps.

EDIT: Got it ;)
http://enigmaboxip/web/getlocations

Output (in my case):
<e2locations>
  <e2location>/media/hdd/movie/</e2location>
  <e2location>/media/net/xbmc/</e2location>
</e2locations>

/media/net/xbmc is my standard record path on my e2 box.

Happy implementing :)


Greetz X23

Thanks, didn't see that. I will remove the configuration option I just implemented and use this command instead ;)

Also I've got good news for the people struggeling with shutting down their openelec boxes when the addon is enabled: I found the error and also fixed it locally. I will push the fix once I've implemented the recording-folder stuff. So before anyone is going to build a new image, please wait until I push the changes to the repository.
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #204

  • jdembski
  • jdembski's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 92
  • Thank you received: 14
  • Karma: 5
X23 wrote:
Additionally:

With 0.1.4 most picons paths are wrong stored in channeldata.xml, the mistake is an ending _ "underscore" i replaced _.png with .png then all picons will be displayed.

I don't know if that error accours also with the latest 0.1.7?


Greetz X23

Yes, this has been fixed already in 0.1.7
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #205

  • jdembski
  • jdembski's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 92
  • Thank you received: 14
  • Karma: 5
Edit: I just pushed another change - now XBMC is shutting down properly without a crash. I didn't bump the version string though...
0.1.8 
- change: fetch the recording locations and use these locations when querying the recordings      
- fix: Stop update thread when destroying the PVR addon - fixes shutdown issues
Last Edit: 1 year 1 month ago by jdembski.
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #206

  • Muggi
  • Muggi's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 49
  • Karma: 0
Hi,

a quick merge from Ultraman and sraue will be a nice easteregg.....
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #207

  • Muggi
  • Muggi's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 49
  • Karma: 0
Hi,


i´m uploading a fusion build with the newest version of the vuaddon.

I found a trick to build before the merge.

i edit the meta PKG Version (/packages/mediacenter/xbmc-addon-vuplus/meta) from ultraman´s pull request.

pull request



Now i have a question to ultraman..... where you got this new PKG Version ????
Is the PKG Version the 6 first letters/numbers of the commit number in jdemski´s git????
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #208

  • ultraman
  • ultraman's Avatar
  • OFFLINE
  • Developer
  • Posts: 2456
  • Thank you received: 359
  • Karma: 171
Muggi wrote:
Is the PKG Version the 6 first letters/numbers of the commit number in jdemski´s git
Yes. But I also need to upload file to oe server.

But you can make this file yourself too. Just read from here on. And this too.
ultraman == vpeter
my Opera web browser addon (not for RPi): openelec-opera-browser.notlong.com
my TrueCrypt addon: truecrypt-openelec.notlong.com/
Sundtek and HDHomeRun DVB driver addons
paypal donation to support my new challenges
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #209

  • Muggi
  • Muggi's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 49
  • Karma: 0
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #210

  • jdembski
  • jdembski's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 92
  • Thank you received: 14
  • Karma: 5
Hi Ultraman - I think now I understand how Openelec builds stuff etc...am I correct if I assume that openelec uses the ppa-pvr branch from opdenkamp?

By changing this I will get the current master, right?
diff --git a/tools/mkpkg/mkpkg_xbmc-pvr b/tools/mkpkg/mkpkg_xbmc-pvr
index bd9cc2b..7c86838 100755
--- a/tools/mkpkg/mkpkg_xbmc-pvr
+++ b/tools/mkpkg/mkpkg_xbmc-pvr
@@ -20,7 +20,7 @@
 ###############################################################################

 PKG_NAME="xbmc-pvr"
-GIT_REPO="-b pvr-ppa git://github.com/opdenkamp/xbmc.git"
+GIT_REPO="-b master git://github.com/opdenkamp/xbmc.git"
 DEST_DIR="$PKG_NAME"
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #211

  • ultraman
  • ultraman's Avatar
  • OFFLINE
  • Developer
  • Posts: 2456
  • Thank you received: 359
  • Karma: 171
OpenELEC has 2 branches: "normal" and PVR. PVR branch is uses pvr-ppa and normal master. That's why you have two scripts
tools/mkpkg/mkpkg_xbmc
tools/mkpkg/mkpkg_xbmc-pvr
You specify what to build with PVR argument
PROJECT=Ultra ARCH=x86_64 PVR=yes make
PROJECT=Ultra ARCH=x86_64 make
ultraman == vpeter
my Opera web browser addon (not for RPi): openelec-opera-browser.notlong.com
my TrueCrypt addon: truecrypt-openelec.notlong.com/
Sundtek and HDHomeRun DVB driver addons
paypal donation to support my new challenges
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #212

  • jdembski
  • jdembski's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 92
  • Thank you received: 14
  • Karma: 5
ultraman wrote:
OpenELEC has 2 branches: "normal" and PVR. PVR branch is uses pvr-ppa and normal master. That's why you have two scripts
tools/mkpkg/mkpkg_xbmc
tools/mkpkg/mkpkg_xbmc-pvr
You specify what to build with PVR argument
PROJECT=Ultra ARCH=x86_64 PVR=yes make
PROJECT=Ultra ARCH=x86_64 make

But when setting PVR=yes it will use the "pvr-ppa" branch from opdenkamps github repository? I'm asking because the last commit to it is quite old, and there have been some changes to the EPG stuff that should speed it up.

For "normal" releases this 'stable' branch is OK - but I want just to play and look how well the addon does work in the new version...
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #213

  • ultraman
  • ultraman's Avatar
  • OFFLINE
  • Developer
  • Posts: 2456
  • Thank you received: 359
  • Karma: 171
You are correct.
ultraman == vpeter
my Opera web browser addon (not for RPi): openelec-opera-browser.notlong.com
my TrueCrypt addon: truecrypt-openelec.notlong.com/
Sundtek and HDHomeRun DVB driver addons
paypal donation to support my new challenges
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #214

  • jdembski
  • jdembski's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 92
  • Thank you received: 14
  • Karma: 5
Just to let anyone know - although there is a new version (0.1.9) in the repository, there is no need to upgrade from 0.1.8, as the only changes are related to some windows compiling stuff.
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #215

  • X23
  • X23's Avatar
  • OFFLINE
  • Senior Boarder
  • Catch me if you can
  • Posts: 166
  • Thank you received: 20
  • Karma: 19
Hi,
jdembski wrote:
0.1.8 
- change: fetch the recording locations and use these locations when querying the recordings      

cool it works ;) but...
jdembski wrote:
I will remove the configuration option I just implemented and use this command instead ;)

there are maybe guys out there that have things on internal hdd (stb) but use netshare for recordings, what about an option to only fetch the currentdir (getcurrlocation) like you allready do or all locations (getlocations)? (Maybe a switch in addon Settings with getcurrlocation as default)

If iam wrong and you use getlocations then i may found a bug because i only see my netshare recordings but there are 2 more recordings on local hdd (stb) that are not displayed.

What about better bouquet management? My idea is to have a button that is mapped for "c" button this opens a channellist in pvr releases, but i have no idea to switch bouquets inbetween that list. Any hints?


Greetz X23
Looking for jDownloader with X-Server and VNC Support? Check my jDownloader Addon! Forum Thread: bit.ly/jdl_thread Repository: bit.ly/x23repo
Looking for a FTP Server with FXP and TLS Support? Check my ProFTPD Addon! Forum Thread: bit.ly/proftpd_thread Repository:...
Last Edit: 1 year 1 month ago by X23.
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #216

  • jdembski
  • jdembski's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 92
  • Thank you received: 14
  • Karma: 5
X23 wrote:
Hi,
jdembski wrote:
0.1.8 
- change: fetch the recording locations and use these locations when querying the recordings      

cool it works ;) but...
jdembski wrote:
I will remove the configuration option I just implemented and use this command instead ;)

there are maybe guys out there that have things on internal hdd (stb) but use netshare for recordings, what about an option to only fetch the currentdir (getcurrlocation) like you allready do or all locations (getlocations)? (Maybe a switch in addon Settings with getcurrlocation as default)

If iam wrong and you use getlocations then i may found a bug because i only see my netshare recordings but there are 2 more recordings on local hdd (stb) that are not displayed.

What about better bouquet management? My idea is to have a button that is mapped for "c" button this opens a channellist in pvr releases, but i have no idea to switch bouquets inbetween that list. Any hints?


Greetz X23

a) getcurrentlocation / getlocations:
I was using getlocations; I have added an option in 0.1.10 for this

b) Can you check the debug log? Check for lines with LoadLocations:
22:06:22 T:3067812720    INFO: AddOnLog: VU+ Client: LoadLocations Number of elements: '1'
22:06:22 T:3067812720   DEBUG: AddOnLog: VU+ Client: LoadLocations Added '/hdd/movie/' as a recording location
22:06:22 T:3067812720    INFO: AddOnLog: VU+ Client: LoadLocations Loded '1' recording locations

Please check whether all your locations are loaded. If this is OK, then please check for entries after the HttpXML-call to "movielist". There should be a call for each recording location (I have only one):
22:06:23 T:3059420016    INFO: AddOnLog: VU+ Client: GetHttpXML Open webAPI with URL: 'http://192.168.0.128:80/web/movielist?dirname=%2Fhdd%2Fmov
ie%2F'
22:06:24 T:3059420016    INFO: AddOnLog: VU+ Client: GetHttpXML Got result. Length: 12317
22:06:24 T:3059420016    INFO: AddOnLog: VU+ Client: GetRecordingFromLocation Number of elements: '14'
22:06:24 T:3059420016    INFO: AddOnLog: VU+ Client: GetRecordingFromLocation loaded Recording entry 'Soloalbum', start '1325438100', length '8079'
[...]
22:06:24 T:3059420016    INFO: AddOnLog: VU+ Client: GetRecordingFromLocation loaded Recording entry 'Happy Feet', start '1333908240', length '6774'
22:06:24 T:3059420016    INFO: AddOnLog: VU+ Client: GetRecordingFromLocation Loaded 14 Recording Entries from folder '/hdd/movie/'

c) Regarding the better navigation between bouquets: the pvr-addons are very limited when it comes to interfacing with the user - I don't think that this is possible. But afaik the maintainer of the pvr-branch has this already on his agenda.

Cheers,
Joerg
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #217

  • X23
  • X23's Avatar
  • OFFLINE
  • Senior Boarder
  • Catch me if you can
  • Posts: 166
  • Thank you received: 20
  • Karma: 19
jdembski wrote:
a) getcurrentlocation / getlocations:
I was using getlocations; I have added an option in 0.1.10 for this

thats fast :evil:
jdembski wrote:
b) Can you check the debug log? Check for lines with LoadLocations:
Done, your code works absolutely right but my enigma2 image using autofs mounts the record path to /media/hdd for me hdd -> /media/autofs/xbmc thats the problem, the internal hdd will not be mounted anymore.

The only Workaround now is to mount it by hand and add these path as second record bookmark under recordpath settings.

for example:
mkdir /media/hdd2
mount /dev/sda1 /media/hdd2

So thats a kind of bullshit with autofs in my enigma2 image... :whistle:
or another theory is that enigma2 only checks /media/hdd as record path nevermind what's linked behind.
jdembski wrote:
c) Regarding the better navigation between bouquets: the pvr-addons are very limited when it comes to interfacing with the user - I don't think that this is possible. But afaik the maintainer of the pvr-branch has this already on his agenda.

Hopefully...

EDIT:

I have it working right now.

The clou is to not set the share i mount for recording as recording partition in mount settings then internal hdd will mounted normally and the share only to /media/net/xbmc and not /media/hdd

Also under settings > system > recording partitions i set pat the 4 paths as the following:

standard movie directory: /media/hdd/movie/
timer-recording directory: /media/net/xbmc/
direct-recording directory: /media/net/xbmc/
timeshift directory: /media/hdd/

After that everything is working fine not really intuitive but i made it :blink:

The most important thing is to set both path as bookmarks, thats what given out for getlocations.

EDIT2:

If i add a timer or make a direct record it will be stored on internal hdd (stb) and not to the xbmc share. can you make a option to override then e2location path?

take a look at:
http://enigma2boxip/web/timerlist

while adding timer override path from:
http://IP_of_your_box/web/timeraddbyeventid?sRef=1:0:1:7926:A:70:1680000:0:0:0:&eventid=53779&dirname=/hdd/movie/

to
http://IP_of_your_box/web/timeraddbyeventid?sRef=1:0:1:7926:A:70:1680000:0:0:0:&eventid=53779&dirname=/media/net/xbmc or media/autofs/xbmc

This can be done if i give the option recorddirectory=yes if mounting the network share under enigma2 but then there is the problem with the local hdd i descriped earlier, so the only way to redirect path for records triggered from xbmc is to change dirname while adding timer via enigma2 webif.


Greetz X23
Looking for jDownloader with X-Server and VNC Support? Check my jDownloader Addon! Forum Thread: bit.ly/jdl_thread Repository: bit.ly/x23repo
Looking for a FTP Server with FXP and TLS Support? Check my ProFTPD Addon! Forum Thread: bit.ly/proftpd_thread Repository:...
Last Edit: 1 year 1 month ago by X23.
The administrator has disabled public write access.

Aw: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #218

  • mezo
  • mezo's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 65
  • Thank you received: 4
  • Karma: 1
hm this plugin is not working with dbox2, because there is no enigma2 aviable?
Client: RPI@Openelec 3.0.1
Server: RPI@Archlinux + Sundtek MediaTV Pro + VDR
The administrator has disabled public write access.

[WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #219

  • jdembski
  • jdembski's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 92
  • Thank you received: 14
  • Karma: 5
mezo wrote:
hm this plugin is not working with dbox2, because there is no enigma2 aviable?
If it is not enigma2 based it won't work.
The administrator has disabled public write access.

Re: [WIP] PVR Client Addon for XBMC for EPG and full control of Dreambox and DBox2 1 year 1 month ago #220

  • jdembski
  • jdembski's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 92
  • Thank you received: 14
  • Karma: 5
X23 wrote:
If i add a timer or make a direct record it will be stored on internal hdd (stb) and not to the xbmc share. can you make a option to override then e2location path?

take a look at:
http://enigma2boxip/web/timerlist

while adding timer override path from:
http://IP_of_your_box/web/timeraddbyeventid?sRef=1:0:1:7926:A:70:1680000:0:0:0:&eventid=53779&dirname=/hdd/movie/

to
http://IP_of_your_box/web/timeraddbyeventid?sRef=1:0:1:7926:A:70:1680000:0:0:0:&eventid=53779&dirname=/media/net/xbmc or media/autofs/xbmc

There is no option in the "new timer"-dialog to specify a recording path, but I guess I could make it an "advanced" option so that new recordings will always be saved into the path specified in the addon-settings.
The administrator has disabled public write access.

Our Sponsors & Partners

arctic_logo