Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mrkipling Offline
Senior Member
Posts: 214
Joined: Apr 2011
Reputation: 3
Post: #41
rflores2323 Wrote:I have know idea where to start to try to get this working. I have a server already on my htpc (XAMPP for linux) and I have mediafrontpage on it running. So I know how to clone the git repo however how would I get the widgets on my tablet to work? No idea how to do it?

You need to set it up to be served by your webserver, and then you can view it in any web browser (although as mentioned above I haven't tested it on a tablet yet).

I've written a brief guide on the project homepage and explained it in a bit more detail in this post.

As already mentioned, setting up this project requires some technical knowhow (not much - just enough to configure Apache) so I'm afraid that I can't really explain in any more detail than that, sorry.
find quote
Livin Offline
Posting Freak
Posts: 3,430
Joined: May 2004
Reputation: 17
Location: above ground
Post: #42
mrkipling Wrote:I've been trying to avoid using a database for this project (it's just one more thing that needs to be set up) but I'm starting to think that it might be beneficial. Something to think about, for sure.

I'm not sure a DB would be needed - I'm thinking more like XML "definition" files for each screen size. It would also be useful since users could create their own, share with others, etc - especially as screen sizes/resolutions change, etc.

I'm not an expert but I play one at work.
find quote
xcitedk Offline
Junior Member
Posts: 2
Joined: Jan 2011
Reputation: 0
Post: #43
It seems that the github repo isn't working? Cannot clone..
find quote
mrkipling Offline
Senior Member
Posts: 214
Joined: Apr 2011
Reputation: 3
Post: #44
xcitedk Wrote:It seems that the github repo isn't working? Cannot clone..

I've just renamed the project. It is now called Maraschino, and you can find it here:

https://github.com/mrkipling/maraschino

If you cloned the repository when it was called htpc-frontend you'll need to edit the repo's git config file. Open ".git/config" and change "url" in remote origin to "git://github.com/mrkipling/maraschino.git"

Really sorry to break the old URL, but I figured that it was better to do it now rather than later. I've also registered maraschinoproject.com and have moved the documentation there.
(This post was last modified: 2011-11-02 10:34 by mrkipling.)
find quote
HarryRosen Offline
Senior Member
Posts: 254
Joined: Dec 2009
Reputation: 0
Post: #45
damn I still can't get it to load properly.

I think i did everything right

all applications installed apache2, mod_wsgi python and all the setup tools

made my maraschino.wsgi that looks like this

import sys
sys.path.insert(0, "/var/www/maraschino")
from maraschino import app as application

renamed the settings.py

created the file in /etc/apache2/sites-available called maraschino

that looks like this

<VirtualHost *>
ServerName maraschino

WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

<Directory /var/www/maraschino>
WSGIProcessGroup maraschino
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

then I ran sudo a2ensite maraschino

then sudo /etc/init.d/apache2 restart

only error I get is

* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue Nov 01 21:46:10 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue Nov 01 21:46:11 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[ OK ]

but don't think that is a problem, am I missing something else?

when i goto http://192.168.1.146 which is my xbmc machine i get nothing

Please help Thanks
find quote
mrkipling Offline
Senior Member
Posts: 214
Joined: Apr 2011
Reputation: 3
Post: #46
HarryRosen Wrote:damn I still can't get it to load properly.

I think i did everything right

all applications installed apache2, mod_wsgi python and all the setup tools

made my maraschino.wsgi that looks like this

import sys
sys.path.insert(0, "/var/www/maraschino")
from maraschino import app as application

renamed the settings.py

created the file in /etc/apache2/sites-available called maraschino

that looks like this

<VirtualHost *>
ServerName maraschino

WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

<Directory /var/www/maraschino>
WSGIProcessGroup maraschino
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

then I ran sudo a2ensite maraschino

then sudo /etc/init.d/apache2 restart

only error I get is

* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue Nov 01 21:46:10 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue Nov 01 21:46:11 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[ OK ]

but don't think that is a problem, am I missing something else?

when i goto http://192.168.1.146 which is my xbmc machine i get nothing

Please help Thanks

A couple of things to try.

First, in your wsgi file, try "from htpcfrontend import app as application" (as the .py file is still called htpcfrontend, I didn't want to break people's installations further).

Second, in your browser, try entering the local IP of the webserver (e.g. 192.168.0.3). To find it out type "ifconfig" in a terminal on the machine. If the page loads successfully then you'll need to set up port forwarding to view the site on your WAN IP.
find quote
mybrain87 Offline
Junior Member
Posts: 40
Joined: Dec 2008
Reputation: 0
Post: #47
I followed the instructions and everything from Post 31. I checked it everything like 5 times...seems all to be configured right.

But when i go to 192.168.1.16 (which is my xbmc machine)

I just get:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.


Anybody know whats wrong?
find quote
Aenima99x Offline
Donor
Posts: 1,030
Joined: Aug 2007
Reputation: 7
Location: California
Post: #48
mybrain87 Wrote:I followed the instructions and everything from Post 31. I checked it everything like 5 times...seems all to be configured right.

But when i go to 192.168.1.16 (which is my xbmc machine)

I just get:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.


Anybody know whats wrong?

try http://192.168.1.16/maraschino
find quote
mybrain87 Offline
Junior Member
Posts: 40
Joined: Dec 2008
Reputation: 0
Post: #49
Aenima99x Wrote:try http://192.168.1.16/maraschino

Just getting an index page:

Index of /maraschino
find quote
mybrain87 Offline
Junior Member
Posts: 40
Joined: Dec 2008
Reputation: 0
Post: #50
Heres everything i did;

1. Installed mod_wsgi, python-setuptools, flask and jsonrpclib (apache & Python were already installed)

2. cloned the git repository into "/var/www/maraschino"

3. copied settings_example.py to settings.py

4. created a wsgi file "maraschino.wsgi" in the directory that I cloned maraschino into with the folowing content (the py is still called htpcfrontend):

import sys
sys.path.insert(0, "/var/www/maraschino")
from htpcfrontend import app as application

5. created an Apache configuration file "maraschino" for the site in sites-available:

<VirtualHost *:80>
ServerName maraschino

WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

<Directory /var/www/maraschino>
WSGIProcessGroup maraschino
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

6. enable that site with: sudo a2ensite maraschino

7. restarted apache without error with: sudo /etc/init.d/apache2 restart

Meanwhile I already tried rebooting the system which didn't work either.
So what am I missing?
find quote
Post Reply