Kodi Community Forum
MediaFrontPage - Web interface with widget type architecture to control multiple apps - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: MediaFrontPage - Web interface with widget type architecture to control multiple apps (/showthread.php?tid=83304)



- irongecko - 2011-04-27

since updating xbmc a few weeks ago to the latest pvr build ( https://github.com/opdenkamp/xbmc) I'm finding that the JSON api won't connect with MFP anymore, but when I click on the link it is saying "JSONRPC active and working"

I'm guessing it's related to the 5th april JSON api changes (http://forum.xbmc.org/showthread.php?tid=98551) - are there any plans to fix this (presuming that actually is the problem)

*edit* Looks like it is connecting, but recent movies and recent tv aren't working and are saying thet the JSON api didn't respond.


- gugahoi - 2011-04-28

irongecko Wrote:since updating xbmc a few weeks ago to the latest pvr build ( https://github.com/opdenkamp/xbmc) I'm finding that the JSON api won't connect with MFP anymore, but when I click on the link it is saying "JSONRPC active and working"

I'm guessing it's related to the 5th april JSON api changes (http://forum.xbmc.org/showthread.php?tid=98551) - are there any plans to fix this (presuming that actually is the problem)

*edit* Looks like it is connecting, but recent movies and recent tv aren't working and are saying thet the JSON api didn't respond.

Ye, I'm pretty sure it will need to be updated. Don't know when that will be tho.

DPickles Wrote:I used this to get sickbeard up and running. It explains how to get it auto-started there. Not sure about the others though, I don't use CP atm and JD is on my windows machine.

http://www.ainer.org/sick-beard-install-setup-configuration-guide-for-ubuntu-linux-mint

Although seeing as you're using a gui (I'm assuming it's gnome). You should be able to auto start any programs from "System \ Preferences\ Sessions" and then just enter the path.



No luck on that front Sad

I'm starting to think that it has more to do with JD and my server not being in the same place. I might try installing JD on my server and see if that works instead.

Alright, so I finally got everything sorted in ubuntu. And I really mean everything. jDownloader, transmission and everything seems to be working from MediaFrontPage. The only thing I can think of that would be giving you errors would be some bad configuration in apache or something. If you really can't figure that out then I'll probably change the way JD widget works. It's just nice to be able to use simpleXML as it simplifies everything. Let me know if you're still having problems.

hernandito Wrote:Hi,

I cannot figure out where I would need to make that change... I have looked in various folders on my server and I don't see such a file.

Curious thing is that if I type in my browser something like:

Code:
http://localhost:10025/get/downloads/currentlist

I get a blank page. But when I select View Page Source, I get the following: (I am editing out file name stuff):

Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jdownloader>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="13" package_loaded="5.52 GB" package_name="The.Rite.2011.720p.BluRay.X264-AMIABLE" package_percent="100.00" package_size="5.52 GB" package_speed="0 B" package_todo="0 B"/>
<package package_ETA="13d:2h:18m:53s" package_linksinprogress="5" package_linkstotal="34" package_loaded="72.45 MB" package_name="Ip Man 2 2010 720p WiKi" package_percent="1.08" package_size="6.55 GB" package_speed="6.00 KB" package_todo="6.47 GB">
<file file_hoster="fileserve.com" file_name=p WiKi" file_percent="4.70" file_speed="0" file_status="Connecting...(6/6)"/>
<file file_hoster="fileserve.com" file_name=0p WiKi" file_percent="13.21" file_speed="0" file_status="Connecting...(6/6)"/>
<file file_hoster="fileserve.com" file_name=0p WiKi" file_percent="4.04" file_speed="0" file_status="Connecting...(6/6)"/>
<file file_hoster="fileserve.com" file_name=p WiKi" file_percent="3.99" file_speed="0" file_status="Connecting...(6/6)"/>
<file file_hoster="fileserve.com" file_name=p WiKi" file_percent="10.28" file_speed="6144" file_status="ETA 8h:30m:24s @ 6.00 KB/s (6/6)"/>
</package>
</jdownloader>

This makes me think that the plugin is working right, but somehow the widget is getting confused... but what do I know.

This is exactly what you should be getting. Since I haven't gotten any replies saying JD widget is working I think I might change the code so I don't use simpleXML anymore.

Going back to the transmission widget, did you try using http:.//localhost:9091/transmission/rpc to see if that works? It seems like it's the only way it works for me on ubuntu.


- hernandito - 2011-04-28

gugahoi Wrote:This is exactly what you should be getting. Since I haven't gotten any replies saying JD widget is working I think I might change the code so I don't use simpleXML anymore.

Going back to the transmission widget, did you try using http:.//localhost:9091/transmission/rpc to see if that works? It seems like it's the only way it works for me on ubuntu.

Hi Guga,

I cannot get your transmission to work. I have tried every combination of URLs.

For now I am content with my modification as shown on post 758 on page 76.

I have been trying the same trick (editing the programs html templates) for jDownloader, and it looks horrible. I hope you can re-make the jDownload widget....Wink


- gugahoi - 2011-04-30

hernandito Wrote:Hi Guga,

I cannot get your transmission to work. I have tried every combination of URLs.

For now I am content with my modification as shown on post 758 on page 76.

I have been trying the same trick (editing the programs html templates) for jDownloader, and it looks horrible. I hope you can re-make the jDownload widget....Wink

Hey guys!

Uploaded a new version of the jDownloader widget without simpleXML! Only tested on my mac but it should work for everyone. The methods used are basic string replacements so no reason why it wouldn't work in any os with php5.

Test it out and let me know!

Cheers


- DPickles - 2011-04-30

Had to do some slight editing to get this to work.
Quote:function widgetjDownloader(){
//global $jd_url;
//$jd = $jd_url;
$jd = "http://<ipaddress>:<port>/";

It currently gives me my download speed. Although below "status" it says "left @ - rol - Malformed" and it doesn't give me a name.


- gugahoi - 2011-04-30

DPickles Wrote:Had to do some slight editing to get this to work.


It currently gives me my download speed. Although below "status" it says "left @ - rol - Malformed" and it doesn't give me a name.


My bad. That's fixed, should now only need to set things in the config.php.

Can you post a screenshot of your widget?


- DPickles - 2011-04-30

Image

Tried it with both single and multiple files and I'm getting the same error.


- gugahoi - 2011-04-30

DPickles Wrote:Image

Tried it with both single and multiple files and I'm getting the same error.
Hmm. OK. Is the speed accurate at least?
Can you go to
Quote:http://IP : PORT/get/downloads/alllist

and post the results you get here? Note: if the page is blank, you need to 'view source'

You should expect something like this:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jdownloader>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="2" package_loaded="58.62 MB" package_name="SolarEclipseMaestro170.dmg" package_percent="11.24" package_size="521.39 MB" package_speed="0 B" package_todo="462.77 MB">
<file file_hoster="fileserve.com" file_name="@d0b3.@([email protected]" file_package="SolarEclipseMaestro170.dmg" file_percent="1.94" file_speed="0" file_status=""/>
<file file_hoster="fileserve.com" file_name="SolarEclipseMaestro170.dmg" file_package="SolarEclipseMaestro170.dmg" file_percent="100.00" file_speed="0" file_status=""/>
</package>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="23" package_loaded="0 B" package_name="C_LIONP2" package_percent="0.00" package_size="10.67 GB" package_speed="0 B" package_todo="10.67 GB">
<file file_hoster="filesonic.com" file_name="C_LIONP2_W.part02.rar" file_package="C_LIONP2" file_percent="0.00" file_speed="0" file_status=""/>
<file file_hoster="filesonic.com" file_name="C_LIONP2_W.part03.rar" file_package="C_LIONP2" file_percent="0.00" file_speed="0" file_status=""/>
<file file_hoster="filesonic.com" file_name="C_LIONP2_W.part04.rar" file_package="C_LIONP2" file_percent="0.00" file_speed="0" file_status=""/>

etc...



- DPickles - 2011-04-30

The speed works fine, adjusts to "stopped" as well when needed.

Quote:http://ip:port/get/downloads/all/list

That works as well. Here's my source:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jdownloader>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="93.40 MiB" package_name="Mortal.Kombat.Legacy.2011.Episode.One.HDRiP.XviD-T00NG0D" package_percent="100.00" package_size="93.40 MiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="93.40 MiB" file_hoster="megaupload.com" file_name="Mortal.Kombat.Legacy.2011.Episode.One.HDRiP.XviD-T00NG0D.avi" file_package="Mortal.Kombat.Legacy.2011.Episode.One.HDRiP.XviD-T00NG0D" file_percent="100.00" file_size="93.40 MiB" file_speed="0" file_status=""/>
</packages>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="92.60 MiB" package_name="Mortal.Kombat.Legacy.2011.Episode.Three.HDRiP.XviD-T00NG0D" package_percent="100.00" package_size="92.60 MiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="92.60 MiB" file_hoster="megaupload.com" file_name="Mortal.Kombat.Legacy.2011.Episode.Three.HDRiP.XviD-T00NG0D.avi" file_package="Mortal.Kombat.Legacy.2011.Episode.Three.HDRiP.XviD-T00NG0D" file_percent="100.00" file_size="92.60 MiB" file_speed="0" file_status=""/>
</packages>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="85.71 MiB" package_name="Mortal.Kombat.Legacy.2011.Episode.Two.HDRiP.XviD-T00NG0D" package_percent="100.00" package_size="85.71 MiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="85.71 MiB" file_hoster="megaupload.com" file_name="Mortal.Kombat.Legacy.2011.Episode.Two.HDRiP.XviD-T00NG0D.avi" file_package="Mortal.Kombat.Legacy.2011.Episode.Two.HDRiP.XviD-T00NG0D" file_percent="100.00" file_size="85.71 MiB" file_speed="0" file_status=""/>
</packages>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="1.09 GiB" package_name="hellcats.s01e19.720p.hdtv.x264-ctu" package_percent="100.00" package_size="1.09 GiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="1.09 GiB" file_hoster="megaupload.com" file_name="hellcats.s01e19.720p.hdtv.x264-ctu.mkv" file_package="hellcats.s01e19.720p.hdtv.x264-ctu" file_percent="100.00" file_size="1.09 GiB" file_speed="0" file_status=""/>
</packages>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="1.46 GiB" package_name="Glee.S02E18.720p.HDTV.X264-DIMENSION" package_percent="100.00" package_size="1.46 GiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="1.46 GiB" file_hoster="megaupload.com" file_name="Glee.S02E18.720p.HDTV.X264-DIMENSION.mkv" file_package="Glee.S02E18.720p.HDTV.X264-DIMENSION" file_percent="100.00" file_size="1.46 GiB" file_speed="0" file_status=""/>
</packages>

<packages package_ETA="35m:06s" package_linksinprogress="1" package_linkstotal="1" package_loaded="69.82 MiB" package_name="the.vampire.diaries.s02e20.720p.hdtv.x264-immerse" package_percent="6.24" package_size="1.09 GiB" package_speed="510.26 KiB" package_todo="1.03 GiB">
<file file_downloaded="70.31 MiB" file_hoster="megaupload.com" file_name="the.vampire.diaries.s02e20.720p.hdtv.x264-immerse.mkv" file_package="the.vampire.diaries.s02e20.720p.hdtv.x264-immerse" file_percent="6.28" file_size="1.09 GiB" file_speed="522931" file_status="ETA 35m:04s @ 510.67 KiB/s (3/3)"/>
</packages>
<packages package_ETA="44m:21s" package_linksinprogress="1" package_linkstotal="1" package_loaded="209.47 MiB" package_name="Camelot.S01E05.720p.HDTV.X264-DIMENSION" package_percent="14.04" package_size="1.46 GiB" package_speed="493.62 KiB" package_todo="1.25 GiB">
<file file_downloaded="210.45 MiB" file_hoster="megaupload.com" file_name="Camelot.S01E05.720p.HDTV.X264-DIMENSION.mkv" file_package="Camelot.S01E05.720p.HDTV.X264-DIMENSION" file_percent="14.10" file_size="1.46 GiB" file_speed="515603" file_status="ETA 43m:27s @ 503.52 KiB/s (3/3)"/>
</packages>
</jdownloader>



- gugahoi - 2011-04-30

DPickles Wrote:The speed works fine, adjusts to "stopped" as well when needed.



That works as well. Here's my source:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jdownloader>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="93.40 MiB" package_name="Mortal.Kombat.Legacy.2011.Episode.One.HDRiP.XviD-T00NG0D" package_percent="100.00" package_size="93.40 MiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="93.40 MiB" file_hoster="megaupload.com" file_name="Mortal.Kombat.Legacy.2011.Episode.One.HDRiP.XviD-T00NG0D.avi" file_package="Mortal.Kombat.Legacy.2011.Episode.One.HDRiP.XviD-T00NG0D" file_percent="100.00" file_size="93.40 MiB" file_speed="0" file_status=""/>
</packages>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="92.60 MiB" package_name="Mortal.Kombat.Legacy.2011.Episode.Three.HDRiP.XviD-T00NG0D" package_percent="100.00" package_size="92.60 MiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="92.60 MiB" file_hoster="megaupload.com" file_name="Mortal.Kombat.Legacy.2011.Episode.Three.HDRiP.XviD-T00NG0D.avi" file_package="Mortal.Kombat.Legacy.2011.Episode.Three.HDRiP.XviD-T00NG0D" file_percent="100.00" file_size="92.60 MiB" file_speed="0" file_status=""/>
</packages>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="85.71 MiB" package_name="Mortal.Kombat.Legacy.2011.Episode.Two.HDRiP.XviD-T00NG0D" package_percent="100.00" package_size="85.71 MiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="85.71 MiB" file_hoster="megaupload.com" file_name="Mortal.Kombat.Legacy.2011.Episode.Two.HDRiP.XviD-T00NG0D.avi" file_package="Mortal.Kombat.Legacy.2011.Episode.Two.HDRiP.XviD-T00NG0D" file_percent="100.00" file_size="85.71 MiB" file_speed="0" file_status=""/>
</packages>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="1.09 GiB" package_name="hellcats.s01e19.720p.hdtv.x264-ctu" package_percent="100.00" package_size="1.09 GiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="1.09 GiB" file_hoster="megaupload.com" file_name="hellcats.s01e19.720p.hdtv.x264-ctu.mkv" file_package="hellcats.s01e19.720p.hdtv.x264-ctu" file_percent="100.00" file_size="1.09 GiB" file_speed="0" file_status=""/>
</packages>
<packages package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="1.46 GiB" package_name="Glee.S02E18.720p.HDTV.X264-DIMENSION" package_percent="100.00" package_size="1.46 GiB" package_speed="0 B" package_todo="0 B">
<file file_downloaded="1.46 GiB" file_hoster="megaupload.com" file_name="Glee.S02E18.720p.HDTV.X264-DIMENSION.mkv" file_package="Glee.S02E18.720p.HDTV.X264-DIMENSION" file_percent="100.00" file_size="1.46 GiB" file_speed="0" file_status=""/>
</packages>

<packages package_ETA="35m:06s" package_linksinprogress="1" package_linkstotal="1" package_loaded="69.82 MiB" package_name="the.vampire.diaries.s02e20.720p.hdtv.x264-immerse" package_percent="6.24" package_size="1.09 GiB" package_speed="510.26 KiB" package_todo="1.03 GiB">
<file file_downloaded="70.31 MiB" file_hoster="megaupload.com" file_name="the.vampire.diaries.s02e20.720p.hdtv.x264-immerse.mkv" file_package="the.vampire.diaries.s02e20.720p.hdtv.x264-immerse" file_percent="6.28" file_size="1.09 GiB" file_speed="522931" file_status="ETA 35m:04s @ 510.67 KiB/s (3/3)"/>
</packages>
<packages package_ETA="44m:21s" package_linksinprogress="1" package_linkstotal="1" package_loaded="209.47 MiB" package_name="Camelot.S01E05.720p.HDTV.X264-DIMENSION" package_percent="14.04" package_size="1.46 GiB" package_speed="493.62 KiB" package_todo="1.25 GiB">
<file file_downloaded="210.45 MiB" file_hoster="megaupload.com" file_name="Camelot.S01E05.720p.HDTV.X264-DIMENSION.mkv" file_package="Camelot.S01E05.720p.HDTV.X264-DIMENSION" file_percent="14.10" file_size="1.46 GiB" file_speed="515603" file_status="ETA 43m:27s @ 503.52 KiB/s (3/3)"/>
</packages>
</jdownloader>

Oh no! It looks like the xml is different. You would need minor adjustments on my code to get it working, wouldn't be too hard, but this is really impractical. Maybe we have different JD RemoteControl versions.

Try this
Quote:http://IP : PORT/get/rcversion
and it will tell your version. At the moment I've got 9568 on OSX and the same on Ubuntu. Can you check yours to see if they match?


- DPickles - 2011-04-30

hmm..... I'm running RC 12612 on windows. I think this could be a nightly version which is probably what is causing all my trouble.

What sort of adjustments need to be made? I should be able to do them if I know what to look for. My php skills are mostly limited to reading and editing Big Grin

Thanks for all the help on this.


- gugahoi - 2011-04-30

DPickles Wrote:hmm..... I'm running RC 12612 on windows. I think this could be a nightly version which is probably what is causing all my trouble.

What sort of adjustments need to be made? I should be able to do them if I know what to look for. My php skills are mostly limited to reading and editing Big Grin

Thanks for all the help on this.

Is that the jDownloader version or the remotecontrol plugin version? What I need is the RemoteControl. But in any way, I had no idea they had nightly builds for jDownloader. I just had a quick search in their forum and apparently they're developing an external interface for JD or something. Hopefully it will be some kind of api a bit better than the plugin we use now.

Also, if you try the latest version, I've made a little fix that should resolve one problem but there are still a few more that I will have to check. The biggest problem with this is if it is possible to have one widget working with both nightly and regular versions. I'll look into that tomorrow.

@hernandito: From the XML info you posted before, it seems to me the widget should work fine for you. Let me know!


- DPickles - 2011-04-30

It's the RC version. I'm using JDownloader -NIGHTLY- Build 14224.

Just updated to the latest version. I appear to be getting the exact same results from what I can see anyway.


- hernandito - 2011-04-30

gugahoi Wrote:@hernandito: From the XML info you posted before, it seems to me the widget should work fine for you. Let me know!

Just tried it... this is what I get. I think the formatting needs to be tweaked... but I get the weird code on the top progress bar. The speed is measured correctly and the stop/start part works very nicely.

Thank you!!

Image


- gugahoi - 2011-05-01

Bad news guys. My HDD is starting to die on me so doing an emergency backup and trying to figure out what I'm going to do now! Might be a couple of days without any improvements... :-c

And this could not happen at a worse time. I was just approved to an API with TMDB and was going to incorporate that into the search widget but now I'm gonna have to sort my HDD issues 1st...