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
DejaVu Offline
Posting Freak
Posts: 1,159
Joined: May 2010
Reputation: 3
Location: United Kingdom
Post: #1696
I've been on the official for sometime now due to being heavily involved in creating my own NewzNab server, but your additions are persuading me to make a new frankenstein branch again. Big Grin

@rflores2323
Might I suggest joining over on Maraschino's forum too? Its got some additions with some upcoming features mainly from N3MIS15 showcased on there...
Maraschino Updater being the main one at the moment, but N3MIS15 seems to have loads up his sleeve if his repo is anything to go by!

[Image: watched-fanart.jpg]
Maraschino - Web based HTPC Organiser. Keep track of all your web based programs all in one place.
Home Page - Repo - Bug Tracker - Support Forum.
(This post was last modified: 2012-06-05 18:41 by DejaVu.)
find quote
N3MIS15 Offline
Donor
Posts: 504
Joined: Jul 2010
Reputation: 13
Location: Melbourne, VIC
Post: #1697
I'm good at starting things but not finishing them... A few things I have on the go are updater, adding some core stuff like daemonizing and pidfile support, editing the xbmc library with the json API (frodo only), headphones module and I have sent a few bug fix pull requests.

No guarantees it will all make master tho.

[Image: all-fanart.jpg]
(This post was last modified: 2012-06-05 19:04 by N3MIS15.)
find quote
steve1977 Offline
Posting Freak
Posts: 1,981
Joined: Dec 2006
Reputation: 0
Post: #1698
(2012-06-05 19:03)N3MIS15 Wrote:  I'm good at starting things but not finishing them... A few things I have on the go are updater

The updater would be really fantastic to have seeing the light.

Is there anyone who is using Maraschino outside the home network to access sabnzbd, SB, CP, et al? With only opening the "80" port. If so, would be fantastic if he can write a few lines how he achieved that. I used to have it running, but always had some smaller issues (e.g., thumbs not loading for recently added, movie library not showing properly). Thanks a ton in advance!

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
guy_smiley:) Offline
Senior Member
Posts: 103
Joined: May 2011
Reputation: 0
Post: #1699
(2012-06-09 10:04)steve1977 Wrote:  
(2012-06-05 19:03)N3MIS15 Wrote:  I'm good at starting things but not finishing them... A few things I have on the go are updater

The updater would be really fantastic to have seeing the light.

Is there anyone who is using Maraschino outside the home network to access sabnzbd, SB, CP, et al? With only opening the "80" port. If so, would be fantastic if he can write a few lines how he achieved that. I used to have it running, but always had some smaller issues (e.g., thumbs not loading for recently added, movie library not showing properly). Thanks a ton in advance!

I swear I do this every couple of months Tongue

This is in sites-available as 'maraschino'
Code:
<VirtualHost *>
    WSGIDaemonProcess maraschino user=xbmc group=www-data threads=5
    WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

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

This is httpd.conf
Code:
ServerName myserver.dyndns.org
Options Indexes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi .py
DocumentRoot /var/www
ProxyRequests Off
ProxyPreserveHost Off
ProxyErrorOverride On
ProxyHTMLInterp On
<Proxy *>
    Order deny,allow
    Allow from all
    AuthType Basic
    AuthName "Restricted Access"
    AuthUserFile /etc/apache2/passwds
    Require valid-user
</Proxy>
ProxyPass /sabnzbd http://127.0.0.1:8080/sabnzbd
ProxyPassReverse /sabnzbd http://127.0.0.1:8080/sabnzbd
ProxyPass /tvshows http://127.0.0.1:8081/tvshows
ProxyPassReverse /tvshows http://127.0.0.1:8081/tvshows
ProxyPass /headphones http://127.0.0.1:8181/headphones
ProxyPassReverse /headphones http://127.0.0.1:8181/headphones
ProxyPass /library http://127.0.0.1:5299/library
ProxyPassReverse /library http://127.0.0.1:5299/library
ProxyPass /couchpotato http://127.0.0.1:5050/couchpotato
ProxyPassReverse /couchpotato http://127.0.0.1:5050/couchpotato

ProxyPass /htpc http://localhost:8084/
ProxyHTMLURLMap http://localhost:8084/ /htpc/
<Location /htpc>
ProxyPassReverse http://localhost:8084/
SetOutputFilter proxy-html
ProxyHTMLURLMap / /htpc/
ProxyHTMLURLMap /htpc/ /htpc/
</Location>

This has everything working via reverse proxies, no missing images except in the SickBeard widget in Maraschino. Set your XBMC to the local IP and it will pull images as usual.
find quote
SlackMaster Offline
Donor
Posts: 60
Joined: Jul 2010
Reputation: 1
Post: #1700
I have maraschino running on my openelec install on port 7000. All the settings point to local 192.168... ip's since the machine is within the same network. To access it from outside, I just set the public port on my router to 80 and then the private port to 7000. That way requests that come in from outside on standard http translate to 7000 internally. I'd edit your settings file though and make sure you have auth on.

So basically it looks like this

http://mywebsiteaddress.com ----> points to 192.168.0.100:7000

Thank you to everyone for this awesome software!
(This post was last modified: 2012-06-09 11:32 by SlackMaster.)
find quote
SlackMaster Offline
Donor
Posts: 60
Joined: Jul 2010
Reputation: 1
Information  RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC
Post: #1701
Hello,

First off, awesome creation. My hat's off to those that spend their time working on this. I've donated $20 to the cause. Keep up the great work and thanks for everything!

I have Maraschino running on openelec. Like others, I had issues with the disk drives in the latest beta 4 eden release. To fix this, I did like the post said and created an autostart.sh file in the .config directory (if you're a noob like me and using a PC to make your files, be sure to use an editor like textpad and select "UNIX" not "PC" when saving the file).

Here's my issue now, Maraschino is running on my XBMC machine, but my entire media library is on a server in the other room, I'm streaming via samba shares. To get the samba shares to show up, I had to mount them. So again, I followed the directions of others and added some additional lines to my autostart.sh file. Here's what I have so far.

Code:
#!/bin/sh
(sleep 20; \
mount -t cifs "//192.168.0.100/tv" /storage/tvshows -o username=myusername,password=mypassword
mount -t cifs "//192.168.0.100/Movie Archive" "/storage/Movie Archive 1" -o username=myusername,password=mypassword
mount -t cifs "//192.168.0.100/Movie Archive 2" "/storage/Movie Archive 2" -o username=myusername,password=mypassword
python /storage/.xbmc/addons/service.web.maraschino/maraschino-cherrypy.py
)&

Everything starts up fine, but here's what my disk space module looks like:

[Image: diskspace.png]

As you can see, the used space on the tv share seems a bit off. I assume this is because that share is actually 4 2TB drives in a JBOD, whereas the other two drives are stand alone. ( I may be wrong about that ).

Anyone else got any idea what might be causing this issue and if so, perhaps how to fix it?

Thanks

Thank you to everyone for this awesome software!
find quote
steve1977 Offline
Posting Freak
Posts: 1,981
Joined: Dec 2006
Reputation: 0
Post: #1702
(2012-06-09 11:27)guy_smiley:) Wrote:  I swear I do this every couple of months Tongue

Thanks, this is helpful. I am conscious that you have been helping before, so even more appreciated.

Two more questions:

1) I assume that this description is what works with Apache. I keep reading that Maraschino may ditch support for Apache. Under this circumstance, what would I need to do to set it up with cherrypy (still only opening port 80).

2) I just installed Apache server (UniServer) at a friend's computer and set up everything as I thought I had done myself before. Issue is that Maraschino does not show up. Instead, I am getting the file directory (authors, maraschino.py, etc.). I have the wsgi-file set-up and also thought I had done everything done the same way as before. Any idea what I could have done wrong?

Thanks in advance!

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
guy_smiley:) Offline
Senior Member
Posts: 103
Joined: May 2011
Reputation: 0
Post: #1703
(2012-06-09 21:02)steve1977 Wrote:  
(2012-06-09 11:27)guy_smiley:) Wrote:  I swear I do this every couple of months Tongue

Thanks, this is helpful. I am conscious that you have been helping before, so even more appreciated.

Two more questions:

1) I assume that this description is what works with Apache. I keep reading that Maraschino may ditch support for Apache. Under this circumstance, what would I need to do to set it up with cherrypy (still only opening port 80).

2) I just installed Apache server (UniServer) at a friend's computer and set up everything as I thought I had done myself before. Issue is that Maraschino does not show up. Instead, I am getting the file directory (authors, maraschino.py, etc.). I have the wsgi-file set-up and also thought I had done everything done the same way as before. Any idea what I could have done wrong?

Thanks in advance!

I had this set up before. The only issue is you need to have Maraschino in it's own directory, i.e.: ,myserver.dyndns.org/maraschino. Add the following to your httpd.conf;
Code:
ProxyPass /maraschino http://localhost:7000/
ProxyHTMLURLMap http://localhost:7000/ /maraschino/
<Location /maraschino>
ProxyPassReverse http://localhost:7000/
SetOutputFilter proxy-html
ProxyHTMLURLMap / /maraschino/
ProxyHTMLURLMap /maraschino/ /maraschino/
</Location>

Have you set up the file maraschino in sites-available and enabled it? This is what enables the wsgi, not just having the maraschino.wsgi in that folder;
Code:
<VirtualHost *>
    WSGIDaemonProcess maraschino user=xbmc group=www-data threads=5
    WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

    <Directory /var/www/maraschino>
        WSGIProcessGroup maraschino
        WSGIApplicationGroup %{GLOBAL}
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>
find quote
steve1977 Offline
Posting Freak
Posts: 1,981
Joined: Dec 2006
Reputation: 0
Post: #1704
(2012-06-10 00:05)guy_smiley:) Wrote:  Have you set up the file maraschino in sites-available and enabled it? This is what enables the wsgi, not just having the maraschino.wsgi in that folder;
Code:
<VirtualHost *>
    WSGIDaemonProcess maraschino user=xbmc group=www-data threads=5
    WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

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

I tried adding the lines above, but this doesn't work. After adding, I cannot start the service. I checked my "old" working install and noticed that I had added the following line:

> LoadModule wsgi_module modules/mod_wsgi.so

I also did add this line, but unfortunately, this did not improve anything...

Any thoughts?

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
guy_smiley:) Offline
Senior Member
Posts: 103
Joined: May 2011
Reputation: 0
Post: #1705
(2012-06-10 06:35)steve1977 Wrote:  I tried adding the lines above, but this doesn't work. After adding, I cannot start the service. I checked my "old" working install and noticed that I had added the following line:

> LoadModule wsgi_module modules/mod_wsgi.so

I also did add this line, but unfortunately, this did not improve anything...

Any thoughts?

Yes actually. Based on that;
Code:
sudo apt-get install libapache2-mod-wsgi
sudo a2enmod wsgi

That should install and then enable it.
find quote
steve1977 Offline
Posting Freak
Posts: 1,981
Joined: Dec 2006
Reputation: 0
Post: #1706
Thanks for your continued help. I am running Uniserver on Win7x64. I have installed activepythonx32 and uniserverx32. I have downloaded a pre-compiled modwsgi.so and added the line above. Unfortunately, it does not work. Uniserver comes with Apache 2.4 and modwsgi appears to be for Apache 2.2. Could this be the issue and any idea how to resolve i?

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
guy_smiley:) Offline
Senior Member
Posts: 103
Joined: May 2011
Reputation: 0
Post: #1707
(2012-06-10 07:51)steve1977 Wrote:  Thanks for your continued help. I am running Uniserver on Win7x64. I have installed activepythonx32 and uniserverx32. I have downloaded a pre-compiled modwsgi.so and added the line above. Unfortunately, it does not work. Uniserver comes with Apache 2.4 and modwsgi appears to be for Apache 2.2. Could this be the issue and any idea how to resolve i?

Sorry, no idea unfortunately. I believe some other users use Windows that might be able to help you. I'm trying to avoid it at the moment Tongue
find quote
steve1977 Offline
Posting Freak
Posts: 1,981
Joined: Dec 2006
Reputation: 0
Post: #1708
(2012-06-10 08:00)guy_smiley:) Wrote:  
(2012-06-10 07:51)steve1977 Wrote:  Thanks for your continued help. I am running Uniserver on Win7x64. I have installed activepythonx32 and uniserverx32. I have downloaded a pre-compiled modwsgi.so and added the line above. Unfortunately, it does not work. Uniserver comes with Apache 2.4 and modwsgi appears to be for Apache 2.2. Could this be the issue and any idea how to resolve i?

Sorry, no idea unfortunately. I believe some other users use Windows that might be able to help you. I'm trying to avoid it at the moment Tongue

Thanks for your replies.

All, has anyone set-up Maraschino on Apache successfully with Win7x64. I am struggling to get wsgi running and thus cannot host Maraschino. Any help appreciated!

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
SlackMaster Offline
Donor
Posts: 60
Joined: Jul 2010
Reputation: 1
Post: #1709
(2012-06-09 11:55)SlackMaster Wrote:  Hello,

First off, awesome creation. My hat's off to those that spend their time working on this. I've donated $20 to the cause. Keep up the great work and thanks for everything!

I have Maraschino running on openelec. Like others, I had issues with the disk drives in the latest beta 4 eden release. To fix this, I did like the post said and created an autostart.sh file in the .config directory (if you're a noob like me and using a PC to make your files, be sure to use an editor like textpad and select "UNIX" not "PC" when saving the file).

Here's my issue now, Maraschino is running on my XBMC machine, but my entire media library is on a server in the other room, I'm streaming via samba shares. To get the samba shares to show up, I had to mount them. So again, I followed the directions of others and added some additional lines to my autostart.sh file. Here's what I have so far.

Code:
#!/bin/sh
(sleep 20; \
mount -t cifs "//192.168.0.100/tv" /storage/tvshows -o username=myusername,password=mypassword
mount -t cifs "//192.168.0.100/Movie Archive" "/storage/Movie Archive 1" -o username=myusername,password=mypassword
mount -t cifs "//192.168.0.100/Movie Archive 2" "/storage/Movie Archive 2" -o username=myusername,password=mypassword
python /storage/.xbmc/addons/service.web.maraschino/maraschino-cherrypy.py
)&

Everything starts up fine, but here's what my disk space module looks like:

[Image: diskspace.png]

As you can see, the used space on the tv share seems a bit off. I assume this is because that share is actually 4 2TB drives in a JBOD, whereas the other two drives are stand alone. ( I may be wrong about that ).

Anyone else got any idea what might be causing this issue and if so, perhaps how to fix it?

Thanks

FYI... I figured out why this is happening. It's because my server is running on an installation of Windows Home Server 2003. I have (4) 2TB Drives and WHS uses windows drive extender to JBOD these into one logical drive, where I have my tv share located. It seems there is a bug where explorer (and several other places) show the total disk space to be that of the initial drive of the JBOD rather than the entire combined sizes. Therefore it shows 2.82TB used of 1.8TB total, which makes the OS go all funky, hence the issue in XBMC showing the wrong disk size and I assume also causing the issue with Maraschino. It's a small eye sore, but apparently one I'll have to live with.

Just thought I'd update in case anyone else ran into this issue.

Thank you to everyone for this awesome software!
find quote
steve1977 Offline
Posting Freak
Posts: 1,981
Joined: Dec 2006
Reputation: 0
Post: #1710
Quick follow-up. Anyone succeeded to get WSGI working on win7? It used to work for me before, but does not work on clean-install. My suspiciion is WSGI not being compatible with apache 2.4 (which came with the new uniserver install), but just a suspicion.

any help welcome!!!

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
Post Reply