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)



- hernandito - 2011-04-25

PHP and MySQL come as packages that one enables within unRAID via their own interface. I am sure this is what the culprit is. But I would hate to mess things up trying to use something different.

MySQL is listed as: mysql-5.0.67-i486-1
PHP is listed as: php-5.2.8-i486-1


- hernandito - 2011-04-25

In desperation, I tried making a quick modification to DejaVu's uTorrent widget to simply replace the link to the Transmission web page. This is what it looks like.

Image

If anyone knows a way I can edit the html code of the Transmission web page, I can reduce the size of the top buttons so it is more MFP friendly. I just cannot find an easy web directory that I can fiddle with.

edit: Found it from this link. I will tweak and see what happens:

https://trac.transmissionbt.com/wiki/UnixServer/ServerRemote


- hernandito - 2011-04-25

This is as far as I have taken it working remotely. I will keep playing with it tonight. Ithink I will eliminate the filter bar on top to streamline the interface.

Any comments suggestions welcome.

Image

Thanks!


- gugahoi - 2011-04-25

hernandito Wrote:This is as far as I have taken it working remotely. I will keep playing with it tonight. Ithink I will eliminate the filter bar on top to streamline the interface.

Any comments suggestions welcome.

Image

Thanks!

Nice! It's a good alternative at least.

Hey everyone, haven't gotten a lot of feedback from jDownloader widget. Was anybody able to test it out?

Also: added a few IMDB integration features to the search widget. NZBMatrix search now has a little badge when an IMDB link exists and also it is now possible to search IMDB. What I want in the next few days is implement a way to add to CouchPotato queue from the Search widget since the CP api is still not ready, as RuudBurger told me.

Keep in mind that IMDB does not have an API so I found a class around the inter webs and implemented that class. It is fairly slow to load extensive info in one search result. If anyone knows how to get IMDB results efficiently please let me know. I'm also waiting on a TMDB Api so I can add that to search widget, I have a feeling that TMDB is going to be way more efficient than IMDB searching.

I guess that's all the news for now. Please give me some feedback and even Feature Requests as others have done so and I'll try to do my best to improve MFP for everyone.

Oh before I forget, I don't have a lot of experience with the mobile version so I have no idea what works or not. It is not in my priorities to deal with that for now, so maybe in the future. Remember :a nybody is more than welcome to help out!


- DejaVu - 2011-04-25

Have not had much chance to update lately, been busy, I'll give the new features a try as soon as I can.

I known it might already be a bit late, but for IMDB API, can you not use -
http://imdbapi.com or http://www.deanclatworthy.com/imdb

Cloning the latest branch... Which one are you working on?

sudo git clone https://github.com/gugahoi/mediafrontpage/tree/jDownloader www ?

I've also added the changes for the sub menu. Guessing using it will destroy them yes?
Think it's an idea to add it - it's very handy.


- DPickles - 2011-04-26

Quote:Hey everyone, haven't gotten a lot of feedback from jDownloader widget. Was anybody able to test it out?

I still haven't been able to get it to work. I can access the remote within my browser and play with it. I just get an empty widget when I load up MFP though. I really hope to get this to work as I use JDownloader daily. Atm I just have a link to access the webgui.

Might try a fresh install during the day and see if that makes a difference.


- DejaVu - 2011-04-26

I have a quicky for you. I thought I'd install a Headless JDownloader and get MFP to access it. After looking around for one for XBMCLive, I cam across this. Should the widget still work with it? Downloaddeamon.

Gonna try it and see.


- hernandito - 2011-04-26

This is as far as I could take this modified Transmission widget. As mentioned before, this is using DejaVu's uTorrent widget, and putting the link for Transmission Web.

Image

For the most part, it entailed changing the Transmission-daemon web template to work better inside a small MFP widget frame. To me this looks fine, and I get all the functionality of Transmission.

There are a couple of "fixes" I would like to do, but my coding html capability has reached its limit. If anyone is interested in doing this, please let me know. Mainly, it involves making the sizes of the dialog boxes smaller, so they fit inside the widget; and perhaps getting the "turtle" toggle functionality back into the widget.

Also: making the widget frame auto-size depending on the number of torrents on my list. I set the iFrame to "auto" but there was some blank space below the last item.


- RaNaMaster - 2011-04-26

in the search widget when i click on something to download im geting a Problem calling SABnzdd+.
ok

i dont know if you did this on purpose or not im using firefox i dont knwo if that matters


- hernandito - 2011-04-26

gugahoi Wrote:Hey everyone, haven't gotten a lot of feedback from jDownloader widget. Was anybody able to test it out?

Arrrghhh... I am having issues with Jdownloader. But this time, Jdownloader is on the same machine I use to access MFP. In other words, Jdownloader is not on the server but locally (machine's IP 192.168.0.190):

In config.php I have tried the following:

$jd_url = "http://localhost:8777/"; //
$jd_url = "http://192.168.0.190:8777/"; //

Neither work. In the widget screen I get

Code:
Ooops, something went wrong! Is jDownloader open? Check HERE

When I click on "HERE" the browser opens and I can see my jDownloader interface. I have set jDownloader to use User Authentication, and my port to 8,777. If I select no UA, then the browser window for jDownload will keep popping open a UA dialog box.

Do you think this is related to the Transmission issue? At least I get something on the widget screen.

Thanks!


- DPickles - 2011-04-26

I just did a fresh install. I now get this message

Quote:Ooops, something went wrong! Is jDownloader open? Check HERE

and when I click on this I get this message.

Quote:JDRemoteControl - Malformed request. Use /help

I'm going to assume that this is a JD issue? I'll have alook and see what I can dig up


- gugahoi - 2011-04-26

RaNaMaster Wrote:in the search widget when i click on something to download im geting a Problem calling SABnzdd+.
ok

i dont know if you did this on purpose or not im using firefox i dont knwo if that matters

OH I almost forgot about that! You asked me to incorporate that a while back, and I just reused the code from the rss widget except it always gives the error text but it does work. If you check, the download should be in your queue anyway. I'll fix it soon.

DejaVu77 Wrote:I have a quicky for you. I thought I'd install a Headless JDownloader and get MFP to access it. After looking around for one for XBMCLive, I cam across this. Should the widget still work with it? Downloaddeamon.

Gonna try it and see.

That look really good! Never seen that before. I guess it would work as long as you install the JDRemoteControl plugin.

hernandito Wrote:Arrrghhh... I am having issues with Jdownloader. But this time, Jdownloader is on the same machine I use to access MFP. In other words, Jdownloader is not on the server but locally (machine's IP 192.168.0.190):

In config.php I have tried the following:

$jd_url = "http://localhost:8777/"; //
$jd_url = "http://192.168.0.190:8777/"; //

Neither work. In the widget screen I get

Code:
Ooops, something went wrong! Is jDownloader open? Check HERE

When I click on "HERE" the browser opens and I can see my jDownloader interface. I have set jDownloader to use User Authentication, and my port to 8,777. If I select no UA, then the browser window for jDownload will keep popping open a UA dialog box.

Do you think this is related to the Transmission issue? At least I get something on the widget screen.

Thanks!

$jd_url should not be to the Webinterface, but to the JD Remote Control one. The plugin has no authentication, just a port for you to choose.

I think I'm going to improve the explanation in config.php.

DPickles Wrote:I just did a fresh install. I now get this message



and when I click on this I get this message.



I'm going to assume that this is a JD issue? I'll have alook and see what I can dig up


This looks right. If you add a /help in the end of the address you should get something like this

Code:
JDRemoteControl 9568

Usage:

1)Replace %X% with your value
Sample: /action/save/container/C:\backup.dlc
2)Replace (true|false) with true or false

etc...

I just updated that in the git. Now when you click on 'HERE' it should take you to the address /help.

EDIT: Also make sure the address finishes with a trailing slash!

Code:
http://localhost:10025/
if that '/' is not there it breaks everything.


- DPickles - 2011-04-26

JDRemote appears to be working. I can issue it commands etc..

I have MFP installed on my live system, while JDownloader is installed on my windows machine. Could this be causing an issue? I do have my config pointing to the correct IP address/port though.

Quote:EDIT: Also make sure the address finishes with a trailing slash!

Tried playing around with that earlier as thought it might be causing an issue.


- gugahoi - 2011-04-26

DPickles Wrote:JDRemote appears to be working. I can issue it commands etc..

I have MFP installed on my live system, while JDownloader is installed on my windows machine. Could this be causing an issue? I do have my config pointing to the correct IP address/port though.



Tried playing around with that earlier as thought it might be causing an issue.

Hmmm, add this in line 161, inside the catch statement and post what you get.

PHP Code:
    catch(Exception $e){    
echo 
"Error: $e";




- DPickles - 2011-04-26

Here we go:

Quote:Error: exception 'Exception' with message 'String could not be parsed as XML' in /var/www/mediafrontpage/widgets/wjDownloader.php:41 Stack trace: #0 /var/www/mediafrontpage/widgets/wjDownloader.php(41): SimpleXMLElement->__construct('JDRemoteControl...') #1 /var/www/mediafrontpage/widgets/wjDownloader.php(245): widgetjDownloader() #2 {main}