Kodi Community Forum
Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - 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: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC (/showthread.php?tid=113136)



- HarryRosen - 2011-11-08

I got the wsgi file working but I can't save anything with the applications


- lastimp - 2011-11-08

Sorry for the noob questions, but I can't for the life of me get this to run on Ubuntu 10.04 I keep getting...

"You need to specify DATABASE in settings.py"

when I run "python setup.py"

and I do have the Database path specified in "settings.py"


- mkortstiege - 2011-11-08

Too bad it's standalone. Would be nice if it could be a XBMC web addon.


- shadower - 2011-11-08

lastimp Wrote:Sorry for the noob questions, but I can't for the life of me get this to run on Ubuntu 10.04 I keep getting...

"You need to specify DATABASE in settings.py"

when I run "python setup.py"

and I do have the Database path specified in "settings.py"

Below is what I have setup my settings.py with in 10.04:

Code:
DATABASE = '/var/www/maraschino/maraschino.db'

Its working a treat, just check the permissions on the files, they may be your problem.


- Zenshi - 2011-11-08

mrkipling Wrote:Serving from a location other than root? I'm not entirely sure, but it should be possible to do now, I think? Although I haven't tried to do so myself.

When changing the WSCGIScriptAlias to /maraschino (so as to server the page at http://server/maraschino) this is what I get on my apache error.log

Code:
[Mon Nov 07 22:36:02 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:06 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:11 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino

I'm thinking something is hardcoded to run as "/" instead of being able to run of a location.
MrK, could you try to see if you get the same errors in your system?

Cheers,

Zenshi.


- DejaVu - 2011-11-08

HarryRosen Wrote:I got the wsgi file working but I can't save anything with the applications

Permissions! Wink

Chown did not work for me.
I had to make the dreaded Rolleyes (Wait for the DON'T's!)

Code:
sudo chmod 755 /var/www -R
I used 777, but sure 755 should do the trick.


- DejaVu - 2011-11-08

Zenshi Wrote:When changing the WSCGIScriptAlias to /maraschino (so as to server the page at http://server/maraschino) this is what I get on my apache error.log

Code:
[Mon Nov 07 22:36:02 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:06 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:11 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino

I'm thinking something is hardcoded to run as "/" instead of being able to run of a location.
MrK, could you try to see if you get the same errors in your system?

Cheers,

Zenshi.
I think you've missed a tree.

File does not exist: /var/www/static

is meant to be

/var/www/maraschino/static

Hence the files not existing.

Maraschino is created using relative links.
Nothing is absolute so should work no matter where you install it. I think has something to do with your WSGI or apache conf file... Post them up.


- Zenshi - 2011-11-08

DejaVu Wrote:I think you've missed a tree.

File does not exist: /var/www/static

is meant to be

/var/www/maraschino/static

Hence the files not existing.

Maraschino is created using relative links.
Nothing is absolute so should work no matter where you install it. I think has something to do with your WSGI file.

Hey DejaVu,

The problem is not where I install it (i'm using it installed to /var/ww/maraschino), the problem is, when I change WSCGIAliasScript from "/" to "/maraschino" it gives me the errors I posted.
What i'm trying to do is serve the page on http://server/maraschino instead of http://server.

Cheers,

Zenshi.


- mrkipling - 2011-11-08

Zenshi Wrote:When changing the WSCGIScriptAlias to /maraschino (so as to server the page at http://server/maraschino) this is what I get on my apache error.log

Code:
[Mon Nov 07 22:36:02 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:06 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:11 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino

I'm thinking something is hardcoded to run as "/" instead of being able to run of a location.
MrK, could you try to see if you get the same errors in your system?

Cheers,

Zenshi.

Hmm - appears to be because the XHR URLs in the JS are hard-coded as (for example) "/xhr/controls/stop", so they're relative to the root. Same goes for static media.

For now at least, serving this app on its own domain is the better choice. I'm guessing that you have a different web interface or site running on port 80 already. If this is the case then perhaps you could serve it on a different port?


- mrkipling - 2011-11-08

drdextro Wrote:Hi there,

I really love youre work so far. I got it to work on a win7 machine and OSX atm.

Also I commited a little add for the Sabnzbd module.

Keep up the good work!

Thanks for the contribution, I've just merged this in (SABnzbd+ module now displays "PAUSED" when it's paused).


- Zenshi - 2011-11-08

mrkipling Wrote:Hmm - appears to be because the XHR URLs in the JS are hard-coded as (for example) "/xhr/controls/stop", so they're relative to the root. Same goes for static media.

For now at least, serving this app on its own domain is the better choice. I'm guessing that you have a different web interface or site running on port 80 already. If this is the case then perhaps you could serve it on a different port?

Yes, that's the case, I wanna install it on my main web server (testing it on my macbook) but have other things already being served there.
Since you changed things about, how do I change the port now?

Cheers,

Zenshi.


- mrkipling - 2011-11-08

Zenshi Wrote:Yes, that's the case, I wanna install it on my main web server (testing it on my macbook) but have other things already being served there.
Since you changed things about, how do I change the port now?

Cheers,

Zenshi.

If you're using Apache then this might be what you're looking for.


- niietzshe - 2011-11-08

Finally got Eden installed on the Revo just to use this and I must say it was worth it starting with a fresh install and messing about with HDMI audio again, I'm completely in love with it! Thanks a lot!

For anyone interested in Virtual hosts (ie, being able to go to http://yourhost/sickbeard, instead of ports) check out this small guide. You will be able to just link to "/sickbeard" in your maraschino apps to link straight to them without IPs or anything:
http://www.mstuttle.com/2011/07/24/virtualhost-for-couchpotato-sickbeard-transmission-and-sabnzbd/

One thing that I can't do currently is direct the XBMC server internally. When I'm at home I have to set it to the Revo's IP address and when I'm at work I can change it to my dyndns link. Getting a new router running Tomato this week, which should give me the control to always point at the dyndns link, but if anyone knows a work around, let me know.

Thanks for all your hard work, it is very much appreciated
Christian

P.s. If I could request one thing at the minute it would be to have one of the modules display disks capacity...


- mrkipling - 2011-11-08

vdrfan Wrote:Too bad it's standalone. Would be nice if it could be a XBMC web addon.

That would be ideal, although unfortunately I know next to nothing about creating XBMC addons. Perhaps somebody with a little more experience in that area could explain if it's possible to turn this into a web addon?


- HarryRosen - 2011-11-08

Got the wsgi method working but for some reason it doesn't seem to saving my settings properly. The applications portion works but when I got back to make changes it doesn't accept the changes

Nevermind fixed it, I don't know why i continue ot use IE