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)



- The_Dogg - 2011-05-16

Hi Guys, I have tried mediafrontpage in the begining and I want to give it another try. I installed it correctly but I'm having a few issues.

Before asking for help on these issues, I just want to make sure I'm using the right version. I have found a few places on GIT where I can download MFP, I just don't know what is the official one.

So far here is the links I found:
https://github.com/nick8888/mediafrontpage <-- No recent Updates
https://github.com/gugahoi/mediafrontpage <-- 404 Page not Found

anyway could someone point me to the right GIT?

thanks,

P.S. I did try to read the thread, but I couldn't read the whole 110 pages Wink


- gugahoi - 2011-05-16

DPickles Wrote:Has anyone else had a look at http://www.nzb.su/upcoming/4. This is exactly the sort of thing I would like to see in a widget. Only issue is that it would take up a lot of real estate. Unless it was done one at a time? Any ideas?

Ye, we'll get there. I think that is not too hard to be done. But we all have so many things to do now it's probably better to finish ironing the bugs first. Besides, when CP v2 come out, we will probably be able to use info from the program!

The_Dogg Wrote:Hi Guys, I have tried mediafrontpage in the begining and I want to give it another try. I installed it correctly but I'm having a few issues.

Before asking for help on these issues, I just want to make sure I'm using the right version. I have found a few places on GIT where I can download MFP, I just don't know what is the official one.

So far here is the links I found:
https://github.com/nick8888/mediafrontpage <-- No recent Updates
https://github.com/gugahoi/mediafrontpage <-- 404 Page not Found

anyway could someone point me to the right GIT?

thanks,

P.S. I did try to read the thread, but I couldn't read the whole 110 pages Wink

Sorry for the error, that was my bad, I renamed my original repo in hopes of keeping it while forking a new one from the official.

This is where you should be looking...

https://github.com/MediaFrontPage/mediafrontpage

Tell us your problems and we'll do our best to help.


- The_Dogg - 2011-05-16

Ok, just grabbed the package from https://github.com/MediaFrontPage/mediafrontpage

I did a complete re-install and started fresh from the default config file.

Still having the same issues as before:

Recent TV and Recent Movies widget gives the error

Code:
XBMC's JSON API did not respond.

Check your configuration (config.php) and that the JSON service variable is configured correctly and that the Service is running.

{"jsonrpc": "2.0", "method": "VideoLibrary.GetRecentlyAddedEpisodes", "params" : { "start" : 0 , "end" : 15 , "fields": [ "genre", "director", "trailer", "tagline", "plot", "plotoutline", "title", "originaltitle", "lastplayed", "showtitle", "firstaired", "duration", "season", "episode", "runtime", "year", "playcount", "rating", "writer", "studio", "mpaa", "premiered", "album" ] }, "id" : 1 }

When I check my JSONRPC on my xbmc I get:
Code:
JSONRPC active and working

I've searched trough the thread for this problem, the only issue I saw was because of weird characters in the DB, I double checked my DB, I don't have any special characters (I do have the occasional chars: ' , - : )

I'm using a MYSQL db, but I tried using the native xbmc DB and even tried with a virgin db, into which I only included 1 TV show without any special chars. Still the same error.

Also I'm using the xbmc nightlies(May 14th 2011)

Here is what is happening in xbmc.log (not debug)
Code:
11:38:07 T:1888 M:899403776 WARNING: JSONRPC: Value does not match any of the enum values in type
11:38:07 T:1888 M:899403776 WARNING: JSONRPC: Array element at index 9 does not match in type fields
11:38:07 T:1888 M:899403776 WARNING: JSONRPC: Value does not match any of the enum values in type
11:38:07 T:1888 M:899403776 WARNING: JSONRPC: Array element at index 0 does not match in type fields

My setup is:
XBMC = win7 x64
MFP = win7 x64 (different box as xbmc)
Using xampp

if you need any other information I will gladly post it here to get those errors resolved Smile


thanks,

The_Dogg


- gugahoi - 2011-05-16

The_Dogg Wrote:Also I'm using the xbmc nightlies(May 14th 2011)

I'd say there's your answer... Did you see the EXTRAS folder in the root of MFP?


- The_Dogg - 2011-05-16

gugahoi Wrote:I'd say there's your answer... Did you see the EXTRAS folder in the root of MFP?

Doh!

I didnt even thought of checking that folder, I feel stupid now Smile

and to say that I spent a few hours yesterday re-installing and trying different things when all I had to do is replace 1 file. LOL

thank you very much, it's working fine now, now I just have to see what this baby can do Smile

thanks again


- The_Dogg - 2011-05-16

RaNaMaster Wrote:Image

Another question, how would I go to have a layout like this? I don't like the 4 columns layout, I prefer 3 columns (with the center one being wider than the other 2)

can this be done easily?


- _Mikie_ - 2011-05-16

The_Dogg Wrote:Another question, how would I go to have a layout like this? I don't like the 4 columns layout, I prefer 3 columns (with the center one being wider than the other 2)

can this be done easily?

There two different versions. One with 3 columns and one with 4. I know if you have the 3 column one you can just change the widths in the css. I don't know if you can change 4 columns to 3 though. You might need to download the other version..


- RaNaMaster - 2011-05-16

The_Dogg Wrote:Another question, how would I go to have a layout like this? I don't like the 4 columns layout, I prefer 3 columns (with the center one being wider than the other 2)

can this be done easily?

yes its really easy go here https://github.com/gugahoi/my_original_MFP


- madmunky - 2011-05-16

DejaVu Wrote:I've looked into this a little and it seems as though XAMP is pulling the config.php file out from C:\XAMP\PHP\PEAR\Config.php and using it in MFP instead. It looks to me like it could be a XAMP problem.

It means that the PEAR folder is HTTP PATH added into the server and it's causing a conflict because of the filenames. I'm not sure how to sort it. Dont think that MFP needs this PEAR plugin, but dont quote me on this.

Looks like your right I had two issues my MyVideos34.db was corrupt which was why my thumbs where not displaying so I created this and I also renamed the PEAR folder i.e.

C:\xampp\php\PEAR.old\

All errors now cleared and everything seems to be working fine Smile


- The_Dogg - 2011-05-16

RaNaMaster Wrote:yes its really easy go here https://github.com/gugahoi/my_original_MFP

thank you, this fixed 2 things for me, the layout is now how I want it, and this version has the utorrent widget in it.

but the utorrent widget is giving me an error
Code:
invalid request

anyone know if the utorrent widget should still work? I'm pretty sure it's just a configuration error on my part, but just checking

EDIT: Never mind the Utorrent error, something is wrong with my utorrent Smile


- RaNaMaster - 2011-05-16

The_Dogg Wrote:thank you, this fixed 2 things for me, the layout is now how I want it, and this version has the utorrent widget in it.

but the utorrent widget is giving me an error
Code:
invalid request

anyone know if the utorrent widget should still work? I'm pretty sure it's just a configuration error on my part, but just checking

EDIT: Never mind the Utorrent error, something is wrong with my utorrent Smile

i had the same problem with the new widget im still using the old widget past this in to ur widget

Quote:<?php
$wdgtuTorrent = array("name" => "uTorrent", "type" => "inline", "function" => "widgetuTorrent();");
$wIndex["wuTorrent"] = $wdgtuTorrent;

function widgetuTorrent() {
echo "<iframe src='http://user:[email protected]:8/gui/' frameborder='0' scrolling='auto' width='100%' height='300'></iframe>";
}

?>



- DejaVu - 2011-05-16

uTorrent widget has been discontinued, and in my opinion (the creator) needs dropping.

It is no longer in the master branch as it's not good enough and would need the talents of a young Mr Gugahoi to revisit it should he get the chance (to make it look as good as the Transmission widget).

As for the PEAR situation, cheers for the heads up with that. Will give that a go.

4 columns to 3 - You need to edit widget.css and remove the 4 section and set the percentage widths to reflect. You also need to change the layout.php too, it will look for the 4th section and it will not exist if you dont.

Quick update on the Message Widget, I've cleaned it up, removed the Extras button for a prefered 'More' link and also put the System selection in the 'More' section seeing as not everyone will have more than one setup. The entire message widget now just lives on one line saving room!!

Gonna edit it straight on the master as I know its good to go. Used the arrow.gif image (double up/down arrows). I think it needs a revisit just to make the image change from up to down as the other widgets header ones do... If possible, no biggy if doesnt though. Smile

IMAGES -
Image


- DejaVu - 2011-05-16

The_Dogg Wrote:thank you, this fixed 2 things for me, the layout is now how I want it, and this version has the utorrent widget in it.

but the utorrent widget is giving me an error
Code:
invalid request

anyone know if the utorrent widget should still work? I'm pretty sure it's just a configuration error on my part, but just checking

EDIT: Never mind the Utorrent error, something is wrong with my utorrent Smile

If yours still has it, you need to refer to the install link further back in this thread...

DejaVu Wrote:--EDIT--
FIXED AND CONFIRMED WORKING AND NO LONGER BREAKS ANYTHING.



Finally got around to doing this on a completely new Repo -
Image

Things needed for uTorrent Widget...

Download this
http://sites.google.com/site/ultimasites/files/utorrent-miniui.2009111121543376.zip?attredirects=0

Rename it to webui.zip (do not extract) and move it to -
C:\Users\%USER%\AppData\Roaming\uTorrent
(Windows 7)
it will ask to over write the original (up to you).

Open uTorrent,
Options > Preferences > Web UI

Enable Web UI / Choose User & Pass / Change the Port to 8181.

You cannot leave the User and Pass blank unfortunately - but once you've logged in once, get your browser to remember the details.

Click OK.
All done.

Now added to Gugahoi's Repo...
http://github.com/gugahoi/mediafrontpage

I have purposely made sure it's activated in the default-layout.php.
Like I said before, it's a bodge as its loaded within an iFrame in the Widget and I'd prefer to PHP include it in a DIV if possible, but that's above my knowledge.

Make sure you remember to add the correct address to uTorrents Web Interface in the config.php (thanks gugahoi!) Smile

Hope you find it useful. Next project (WIP) is the User/Pass for Remote Access to MFP.



- SleepyP - 2011-05-17

I have finally restored my server back to what appears to be 100% operation. This time I did all my installation and configuration "by hand" on a vanilla install of Fedora 14. I'm thinking I should post a lot of the gotchas people are running into with server configuration into a page on Lighthouse. The stuff is actually pretty simple, but a lot of it took tons of searching online. Apache configuration is very flexible and complex, and as a result there are a couple ways to do everything we need to do for MFP. I think I may have found just about the most straightforward method.

Also, I'm not super good at CSS, but I was thinking it would be a good idea to write up a PHP page that checks the current host for the PHP modules that MFP needs and reports what it found. I figure this could be integrated into a "settings" page once we eventually make one.

I'm looking forward to getting back into coding, now more configuration BS!

Since we have a bunch of different forks going, any suggestions on what I should be using during my own testing and development?


- DejaVu - 2011-05-17

SleepyP Wrote:Since we have a bunch of different forks going, any suggestions on what I should be using during my own testing and development?

For now, fork from http://github.com/mediafrontpage/mediafrontpage as it's now master.

Once you've made your changes/edits request a Pull request from your repo to be added to the master.

I think some research into Git's branches/forks needs to be done so we can do this correctly as per Sickbeard does.