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)



- _Mikie_ - 2011-08-15

Has anyone got drop down boxes to work in the settings page? Mine keep removing the variable from config.ini


- oneadvent - 2011-08-16

I keep getting authentication failure when I try to send messages or clean library through this program.

However the library shows up no problem, so not a problem with the authentication. It is ran on a separate machine, maybe its that?

The messaging app doesn't work, like to send messages.


- DejaVu - 2011-08-16

oneadvent Wrote:I keep getting authentication failure when I try to send messages or clean library through this program.

However the library shows up no problem, so not a problem with the authentication. It is ran on a separate machine, maybe its that?

The messaging app doesn't work, like to send messages.

Have you setup the IP's and Port's of your other machine in the Message settings?

http://MFPURL/settings.php#MESSAGE

@mikie, not tried Drop Boxes as yet, but there should not be any problem using them as far as I know.


- lunias - 2011-08-16

I've been looking at my apache logs and trying to rid them of errors... I found that wComingEpisodes.php causes a ton when it tries to evaluate all of the .js files included in the source of sickbeard's comingEpisodes page. This is causing a massive slow down for me when I try to load the Widgets page.

The most recent code from DejaVu's repo was totally broken for me so I am using a commit from a couple days ago (Not sure how to retrieve the exact commit hash).

Is this a known issue or has it been fixed in some of the recent widget changes? I was trying to modify the widget to extract only the episode info, but I've never written php and I'm having trouble debugging.

Code:
File does not exist: /var/www/css/browser.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/default.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/config.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/jquery.autocomplete.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/smooth-grinder, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/superfish.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/comingEpisodes.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/tablesorter.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/iphone.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
etc.



- oneadvent - 2011-08-16

I did, I put the same info I would put in my phone (port 8080, etc) I just noticed that Media Center also puts what is playing in the top right, so again its talking ability should be perfect.

Thanks!


- gugahoi - 2011-08-16

lunias Wrote:Can anyone explain the situation with the coming episodes widget to me? I can't seem to get it to work properly outside of my local network...

I have sickbeard on one server 192.168.1.11:8081
I have mfp on another server 192.168.1.10:8001

I use dyndns and I have my ports forwarded properly. Locally everything works fine with my sickbeard settings pointed to my dyndns domain port 8081. Externally it takes forever (10 mins?) to display the list and it doesn't load the images. Nothing is cached in sbpcache.

I'm going to keep debugging it, but any push in the right direction would be helpful.

Thanks

Edit: Pretty sure I fixed it... I had a bad line in my /etc/hosts. The default config appears to work.

Has it been fixed? The first thing I would say, set your SB address in the SB config page (not in MFP) to 0.0.0.0 so that it binds to all intefaces in the computer... Mine is set like that, through DynDNS and it works a treat.

_Mikie_ Wrote:Has anyone got drop down boxes to work in the settings page? Mine keep removing the variable from config.ini

I don't know if I finished coding for drop down menus. I think I did but I found that radio button were better for what I wanted and therefore ended up not needing drop downs. Should be working otherwise you'll have to look at the JS functions...

oneadvent Wrote:I keep getting authentication failure when I try to send messages or clean library through this program.

However the library shows up no problem, so not a problem with the authentication. It is ran on a separate machine, maybe its that?

The messaging app doesn't work, like to send messages.

You prob forgot to put your authentication in the message widget settings.

SHould be something like:

Code:
http:// user : pass @ XBMC_URL/

lunias Wrote:I've been looking at my apache logs and trying to rid them of errors... I found that wComingEpisodes.php causes a ton when it tries to evaluate all of the .js files included in the source of sickbeard's comingEpisodes page. This is causing a massive slow down for me when I try to load the Widgets page.

The most recent code from DejaVu's repo was totally broken for me so I am using a commit from a couple days ago (Not sure how to retrieve the exact commit hash).

Is this a known issue or has it been fixed in some of the recent widget changes? I was trying to modify the widget to extract only the episode info, but I've never written php and I'm having trouble debugging.

Code:
File does not exist: /var/www/css/browser.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/default.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/config.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/jquery.autocomplete.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/smooth-grinder, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/superfish.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/comingEpisodes.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/tablesorter.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
File does not exist: /var/www/css/iphone.css, referer: http://myip:8001/widgets/wComingEpisodes.php?display=yes
etc.

That is a known issue. It's because we download the entire comingEpisodes page and hack in some CSS but do not alter anything else, so the referenced files come from SB but do not exist in MFP's environment.


- oneadvent - 2011-08-16

What port do I use? It doesn't complain without a port but I know thats not right because I get nothing on the screen.

Thanks, I love how responsive you are!

Oneadvent


- gugahoi - 2011-08-16

oneadvent Wrote:What port do I use? It doesn't complain without a port but I know thats not right because I get nothing on the screen.

Thanks, I love how responsive you are!

Oneadvent

Oh ye, I forgot the port. Use XBMC's port on that computer.


- oneadvent - 2011-08-16

I used the port for the web interface...but it still doesn't work.


- oneadvent - 2011-08-16

got it to work, i was being stupid, I put only http:username:password@ipaddress:port instead of http://username:password@ipaddress:port


sorry.


- guy_smiley:) - 2011-08-16

Just tried going back to a HTTPS redirect in Apache. Everything works as before externally (Sab, SB, CP, Headphones etc).

When changing config.php to https instead of http; I can say that the Sab widget works. The comingepisodes doesn't although the page syntax is correct in the config. Can't comment on XBMC as it's off atm. And there aren't any widgets for CP or Headphones as yet.

I guess this might be a problem with SB supporting HTTPS than anything. Any coders have any ideas?


- _Mikie_ - 2011-08-16

In widget.css

Code:
#main .section {
    float: left;
    min-height: 400px;
    height: auto !important;
}

Any reason why min-height: 400px; is there? I removed it and it doesn't seem to affect anything unless I'm missing something?


- Nick8888 - 2011-08-16

Sorry for the delay, I just updated the first post. In the future feel free to pm me any additions. Same goes for the website which I will try and update soon.

Good work on this lately! I'll try and test the latest version when I get a chance.

Unfortunately I've just started a new job which is taking up 200% of my time so I haven't been able to do any development lately.


- lunias - 2011-08-16

gugahoi Wrote:That is a known issue. It's because we download the entire comingEpisodes page and hack in some CSS but do not alter anything else, so the referenced files come from SB but do not exist in MFP's environment.

I believe I found the cause of this issue and fixed it on my local copy.

Code:
if(!empty($_GET["display"])) {
  include_once "../config.php";

[b]  $html = getComingSoon($sickbeardcomingepisodes);
  $body = stripBody($html);
  $body = stripInnerWrapper($body);[/b]

  $urldata = @parse_url($sickbeardcomingepisodes);

I'm more or less lost when it comes to PHP so this messed me up for awhile, but there is one call to displayComingSoon() which should perhaps be deprecated because it is never executed for me? Instead the above code is run and as it stands in the latest commit of DejaVu's repo there is no stripping of the body or the inner wrapper. Once you add them in the errors cease and everything is much more responsive. I also modified stripInnerWrapper() to strip starting at <h1 class="day">, but this is probably unecessary.

lunias


- RaNaMaster - 2011-08-17

https://github.com/xbmcfreak/xbmc-remote-php

php remote for xbmc