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)



- gugahoi - 2011-05-24

DejaVu Wrote:One of my Favorite RSS Feeds does not Parse 'Error: Unable to determine feed type.'

http://www.vcdq.com/browse/rss/1/0/2/3/0/0/0

Any ideas? Feel free to use it too. Wink

It looks like they have some weird characters in the text and that specific feed does not explicitly says what encoding it's in so it makes the php function confused. I've looked around for a way to fix this with success tho.

Xfinity Wrote:Hi everyone!

First off I must thank all that have contributed to this excellent tool/information hub.

I wasn't going to use it first because I didn't want to hassle with setting up a webserver with php support. But thanks to DejaVu's guide I found XAMPP and here I am enjoying things.

But unfortunately I got a strange thing going on with the ComingEpisodes-widget. I just switched to reverse proxy and have set sickbeard up accordingly to this guide. When I do that get a empty ComingEpisodes-widget.

When I look at the widgets page source, I see "Your browser does not support iframes.". Strange when I just used it a few minutes ago, with Chrome, and without reverse proxy plus without anything in sickbeards configuration file under "web_root = ".

I have tried various url formats in $sickbeardcomingepisodes without any luck.

Do any one has an idea how to help me out? Wink

Thanks in advance!

It should definitely be the coming episodes page url, you could be missing username and password? Only thing I can think of. Let me say the, however, that I don't use reverse proxies so not entirely sure.


- Xfinity - 2011-05-24

gugahoi Wrote:It should definitely be the coming episodes page url, you could be missing username and password? Only thing I can think of. Let me say the, however, that I don't use reverse proxies so not entirely sure.

Thanks for your reply gugahoi, I have tried with or without password/username set. No dice there either, I am thinking it might be the conditions in the wComingEpisodes.php-file that might interfere with the web_root condition in sickbeard.

Oh well, I might as well skip reverse proxy on sickbeard for the time being, the main thing is that I can access MFP as well as couch potato from where ever I am Wink.


- DejaVu - 2011-05-24

Uniformed your default-config.php file again Gugahoi as either your upload (and me getting it) ruined it's look. It may even be Github removing things.

But this is easier to read IMO and looks the nuts.
Also added a MEDIAFRONTPAGE Acsii heading that looks cool.

Let me know what you think.

http://www.megaupload.com/?d=EU1JB121


- Nick8888 - 2011-05-24

Xfinity Wrote:Thanks for your reply gugahoi, I have tried with or without password/username set. No dice there either, I am thinking it might be the conditions in the wComingEpisodes.php-file that might interfere with the web_root condition in sickbeard.

Oh well, I might as well skip reverse proxy on sickbeard for the time being, the main thing is that I can access MFP as well as couch potato from where ever I am Wink.

SleepyP suggested a few pages back that this is a problem with using domain.com/sickbeard

try using domain.com/tvshows for your reverse proxy and set the webroot accordingly in sickbeard.

I'm planning on simplifying that widget at some stage before v1.0 release so hopefully I'll find the problem code then. Let me know how you go.


- Nick8888 - 2011-05-24

DejaVu Wrote:Uniformed your default-config.php file again Gugahoi as either your upload (and me getting it) ruined it's look. It may even be Github removing things.

But this is easier to read IMO and looks the nuts.
Also added a MEDIAFRONTPAGE Acsii heading that looks cool.

Let me know what you think.

http://www.megaupload.com/?d=EU1JB121

I haven't checked it out but I'm thinking the formatting being ruined is due to tabs. These use different amounts of spaces on different machines. Change all tabs to spaces. Sorry if this doesn't apply, as I said, I haven't looked at it.


- gugahoi - 2011-05-24

Nick8888 Wrote:I haven't checked it out but I'm thinking the formatting being ruined is due to tabs. These use different amounts of spaces on different machines. Change all tabs to spaces. Sorry if this doesn't apply, as I said, I haven't looked at it.

You're right Nick, I did exactly that a few minutes ago and it looks fine in GIT now. BTW do you use reverse proxy's?


- Nick8888 - 2011-05-24

gugahoi Wrote:You're right Nick, I did exactly that a few minutes ago and it looks fine in GIT now. BTW do you use reverse proxy's?

Yep, check this out from SleepyP I'd say its the best explanation you'll find.

domain.com/tvshows
domain.com/movies
domain.com/downloads
etc

All working with one login throughout the site.


- castortray - 2011-05-24

castortray Wrote:I have very similar issue.
My Recent TV working without any problem but Recent Movies not Sad

Image

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.GetRecentlyAddedMovies", "params" : { "start" : 0 , "end" : 50 , "fields": [ "genre", "director", "trailer", "tagline", "plot", "plotoutline",

After click to Service link I can see that JSONRPC working properly

Image

Pls help


DejaVu Wrote:Thats a strange one. Either your settings are not correct in the config.php or the call to the JSONRPC has failed for some reason.

I thought Recent TV and Recent Movies where called from the same place. Someone else is needed to verify that error. It maybe something to do with SleepyP's new update - I'll re clone and see if I get the same result.

SleepyP Wrote:You're right, they are essentially the same widget just making a slightly different request to XBMC. That is REALLY weird! I definitely recommend testing out the new version I put up on the repo, see if you can reproduce. I have two instances of XBMC over here which I tested against, works without a hitch.

I haven't gotten much work done today thanks to being under the weather and LA Noire, but I started work on the 'XBMC is offline' stuff. I'm thinking about sticking the code that generates the offline page into its own php file for easy re-use across widgets. The other main computer I run XBMC on had the HDD die recently, so I will probably need to fix that before I can test the Wake-On-LAN stuff properly. Should be able to do that tomorrow though.

I tried with the new version from:

https://github.com/gugahoi/mediafrontpage

but still the same error.

I use MySQL instead of MyVideos34.db, maybe this is the problem ??


- SleepyP - 2011-05-24

My test setup / main XBMC that I use is a nightly build with MySQL as the backend for the database. In the case of MFP, XBMC actually abstracts away which database backend its using, so from the JSON interface all you see is the media information.

One thing I'm curious about is which JSON query its running. Below the error message there's that big long line of text that runs across the page and starts with {"jsonrpcetcetcetc"
Would you be able to select that text and copy & paste it over here? The quote you have is only a partial it looks like.
Also what's your OS XBMC is running on?
Also have you tested the "main" branch version of MFP from Github? Its here https://github.com/MediaFrontPage/mediafrontpage


- SleepyP - 2011-05-24

Xfinity Wrote:Thanks for your reply gugahoi, I have tried with or without password/username set. No dice there either, I am thinking it might be the conditions in the wComingEpisodes.php-file that might interfere with the web_root condition in sickbeard.

Oh well, I might as well skip reverse proxy on sickbeard for the time being, the main thing is that I can access MFP as well as couch potato from where ever I am Wink.

Hey dude, I remember I had some tricky problems with SickBeard. I need to file it as a bug, but basically you must set your web root and your proxy target to something other than "sickbeard". For whatever reason, using that setting confuses the widget and it fails to work.

I am using the setting "/tv" for my webroot (yes you need the leading slash) and the address 192.168.1.x/tv for my reverse proxy setup (that's my server's LAN IP address). See if that works.


- drunkendragon - 2011-05-24

minor update, because i didn't have time to sort it out:
In https://github.com/gugahoi/mediafrontpage i have the problems
1. Can't close widget anymore with X, because there is none.
2. Coming episodes: Scroll bar doesn't seem to work
3. XBMC Info: Invalid argument supplied for foreach() in C:\wamp\www\mp\XBMC-PHP-RPC\rpc\Client.php on line 202

With https://github.com/MediaFrontPage/mediafrontpage
I dont have problem 1, and slightly improved 2 because i can scroll Smile
3 is still giving me an error but haven't looked into it by for example going back to stable 10.1

But still love the new config file from Gugahoi! Wink


- gugahoi - 2011-05-25

Nick8888 Wrote:Yep, check this out from SleepyP I'd say its the best explanation you'll find.

domain.com/tvshows
domain.com/movies
domain.com/downloads
etc

All working with one login throughout the site.

I know about that but the reason I ask is because I want to make it easier to streamline configuration in config.php. If you look in my repo for the new one I've made, when the programs live in a central server configuration is reduced by a lot! But I haven't yet made it compatible with REVERSE PROXIES, lat thing on my list so that I can replace it in the official repo. Do you need to put login info in the url's? Or is that it? http://domain.com/program ?

update: Actually let me rephrase that: how does your xbmcjsonservice variable look like? http://domain.com/program/jsonrpc ? Is that the rule? Or is it something different?

castortray Wrote:I tried with the new version from:

https://github.com/gugahoi/mediafrontpage

but still the same error.

I use MySQL instead of MyVideos34.db, maybe this is the problem ??

drunkendragon Wrote:minor update, because i didn't have time to sort it out:
In https://github.com/gugahoi/mediafrontpage i have the problems
1. Can't close widget anymore with X, because there is none.
2. Coming episodes: Scroll bar doesn't seem to work
3. XBMC Info: Invalid argument supplied for foreach() in C:\wamp\www\mp\XBMC-PHP-RPC\rpc\Client.php on line 202

With https://github.com/MediaFrontPage/mediafrontpage
I dont have problem 1, and slightly improved 2 because i can scroll Smile
3 is still giving me an error but haven't looked into it by for example going back to stable 10.1

But still love the new config file from Gugahoi! Wink

Hmmm, maybe you haven't set up a MySQL connection in the config page? It's commented out as an example but if you use MySQL then you should use that configuration! Double check that and let us know.

How long ago did you download my repo? That 3rd error should hopefully be fixed by now, but if not let me know and I'll check again.


- Nick8888 - 2011-05-25

drunkendragon Wrote:minor update, because i didn't have time to sort it out:
In https://github.com/gugahoi/mediafrontpage i have the problems
1. Can't close widget anymore with X, because there is none.
2. Coming episodes: Scroll bar doesn't seem to work
Sounds like a jquery problem. I bet you can't rearrange the widgets either?


- Nick8888 - 2011-05-25

[quote=gugahoi]update: Actually let me rephrase that: how does your xbmcjsonservice variable look like? http://domain.com/program/jsonrpc ? Is that the rule? Or is it something different?[quote]
Yep thats right. http://domain.com/xbmc/jsonrpc gives:
Code:
<html><head><title>JSONRPC</title></head><body>JSONRPC active and working</body></html>


[quote]
Hmmm, maybe you haven't set up a MySQL connection in the config page? It's commented out as an example but if you use MySQL then you should use that configuration! [/quote]
Like I have said before, I'm pretty sure those MySQL settings do nothing at the moment other than dev purposes. Please don't use them!!! MFP uses the jsonrpc regardless of whether using the regular sqlite database or a mysql database.

The mysql settings will be used in the future to use as a BACKUP for when the jsonrpc is not running. NOT as a REPLACEMENT.


- gugahoi - 2011-05-25

[quote=Nick8888][quote=gugahoi]update: Actually let me rephrase that: how does your xbmcjsonservice variable look like? http://domain.com/program/jsonrpc ? Is that the rule? Or is it something different?[quote]
Yep thats right. http://domain.com/xbmc/jsonrpc gives:
Code:
<html><head><title>JSONRPC</title></head><body>JSONRPC active and working</body></html>



Like I have said before, I'm pretty sure those MySQL settings do nothing at the moment other than dev purposes. Please don't use them!!! MFP uses the jsonrpc regardless of whether using the regular sqlite database or a mysql database.

The mysql settings will be used in the future to use as a BACKUP for when the jsonrpc is not running. NOT as a REPLACEMENT.[/quote]

Oooops my bad. I don't use MySQL so ye, my bad.