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)



- MarkHT - 2011-12-20

ok, i gave it a try at running this on my synology ds211+

installed:
Python
CherryPy
Flask
Flask-SQLAlchemy
jsonrpclib

3) Create a settings file. (CHECK)
DATABASE = '/volume1/homes/Maraschino/maraschino.db'
CHERRYPY_PORT = 7777

4) Run the setup script to initialise the database. (CHECK)
cd /volume1/homes/Maraschino
/opt/bin/python setup.py
"Database successfully initialised"

5) Copy initd to /etc/init.d and Edit: (CHECK and CHECK)
cp /volume1/homes/Maraschino/initd /etc/init.d/maraschino
APP_PATH = /volume1/homes/Maraschino

7) Make it executable: (CHECK)
sudo chmod a+x /etc/init.d/maraschino

8) Add it to the startup items: (don't understand)
sudo update-rc.d maraschino defaults
sudo: update-rc.d: command not found

9) Start the server:
sudo /etc/init.d/maraschino start
Starting Maraschino
/etc/init.d/maraschino: line 61: start-stop-daemon: not found

any suggestions?


Need help with installing the database. - hellow - 2011-12-20

SOLVED. Yes im a moron. i typoed when i copied the example settings. I wrote setting.py instead of settings.py.

I have followed the guide posted here: http://htpc.ictcsc.net/wiki/index.php/MaraschinoWindows

Im trying to install it on windows 7 32 but.

Whenever i run python setup.py. I just get a error: You need to specify database in settings.py and ensure that Flask-sqlalchmy is installed.

I have checked that i have full access to the folder.

The real folder adress is: C:\HTPC\Maraschino

My settings looks like this:

# this is where you database is going to be stored
# make sure that you have write access to the directory

DATABASE = '/HTPC/Maraschino/maraschino.db'

# if serving using CherryPy (maraschino-cherrypy.py)
# you can set the port here

CHERRYPY_PORT = 7001

# include AUTH if you want to use HTTP basic authentication
# if serving using Apache and mod_wsgi, make sure to enable auth forwarding:
# http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization

AUTH = {
'username': 'username',
'password': 'password'
}

# if you are using the dev server and want to run Maraschino on a different port
# then enable this setting

#PORT = 5000

i have reinstall python and done the the guide from scrach 2 times. I have tryed to change the / to \ in db path. Does any have some tips?


- HarryRosen - 2011-12-20

I know this might be a bit weird but is it possible to run 3 instances at the same time on different ports? and have it auto run?


- mrkipling - 2011-12-20

HarryRosen Wrote:I know this might be a bit weird but is it possible to run 3 instances at the same time on different ports? and have it auto run?

Yes, just set up three different Maraschino installations in Apache on different ports.


- guy_smiley:) - 2011-12-21

@mrkipling, I take it you're running this quite similarly to me. Apache reverse proxies, running Maraschino as a web directory as opposed to python module and accessible externally? I'm having issues whereby my Recently Added aren't showing the thumbnails, they're just showing the blank image template when accessed via DynDNS.
Any help would be appreciated.
Cheers.


- mrkipling - 2011-12-21

guy_smiley:) Wrote:@mrkipling, I take it you're running this quite similarly to me. Apache reverse proxies, running Maraschino as a web directory as opposed to python module and accessible externally? I'm having issues whereby my Recently Added aren't showing the thumbnails, they're just showing the blank image template when accessed via DynDNS.
Any help would be appreciated.
Cheers.

I'm running Apache, no reverse proxies, using mod_wsgi.

If you can't see recently added thumbnails then try logging in to your XBMC web interface (the default one, AWX, or whatever you use) and then reload the page in Maraschino. If that works then setting up AUTH in your settings.py file should make this automatic.

If that doesn't fix it then I'm not sure, I'm afraid.


- Archigos - 2011-12-21

hellow Wrote:SOLVED. Yes im a moron. i typoed when i copied the example settings. I wrote setting.py instead of settings.py.

I have followed the guide posted here: http://htpc.ictcsc.net/wiki/index.php/MaraschinoWindows

Im trying to install it on windows 7 32 but.

Whenever i run python setup.py. I just get a error: You need to specify database in settings.py and ensure that Flask-sqlalchmy is installed.

-------
i have reinstall python and done the the guide from scrach 2 times. I have tryed to change the / to \ in db path. Does any have some tips?

The / \ issue is correct in my guide and the error you're getting (most likely) isn't anything to do with settings.py and rests solely on Flask.
Try this: Go back to the guide and ONLY do the step for Flask-SQLAlchemy again. Once that's complete, try to run "Python setup.py" (without " marks) again and see if it fixed it or giving you the same error. Oh, also make sure that the command prompt you're doing all this in is an Administrator Prompt (explained at the bottom of that page if you're unsure).
If running the python setup.py command worked that time, just follow the rest of the guide from there down and you should be fine. If you're still having issues, you can feel free to PM me contact info for any of the major Instant Messenger services (AIM, Yahoo, MSN, etc.) and we can try to figure it out that way.


- hellow - 2011-12-21

Archigos Wrote:The / \ issue is correct in my guide and the error you're getting (most likely) isn't anything to do with settings.py and rests solely on Flask.
Try this: Go back to the guide and ONLY do the step for Flask-SQLAlchemy again. Once that's complete, try to run "Python setup.py" (without " marks) again and see if it fixed it or giving you the same error. Oh, also make sure that the command prompt you're doing all this in is an Administrator Prompt (explained at the bottom of that page if you're unsure).
If running the python setup.py command worked that time, just follow the rest of the guide from there down and you should be fine. If you're still having issues, you can feel free to PM me contact info for any of the major Instant Messenger services (AIM, Yahoo, MSN, etc.) and we can try to figure it out that way.

Thanks for the effort but its solved nowSmile , i wrote setting.py instead of settings.py when i copied from the example_settings. Now im just waiting for the hdd module for windows to get fixed and, module for utorrent Big Grin


- Shaolin - 2011-12-21

hellow Wrote:Thanks for the effort but its solved nowSmile , i wrote setting.py instead of settings.py when i copied from the example_settings. Now im just waiting for the hdd module for windows to get fixed and, module for utorrent Big Grin
Gugahoi has fixed the disk module for windows and pending MrK's approval will probably be in the next release Big Grin


- steve1977 - 2011-12-22

mrkipling Wrote:I'm running Apache, no reverse proxies, using mod_wsgi.

If you can't see recently added thumbnails then try logging in to your XBMC web interface (the default one, AWX, or whatever you use) and then reload the page in Maraschino. If that works then setting up AUTH in your settings.py file should make this automatic.

If that doesn't fix it then I'm not sure, I'm afraid.

Unfortunately, I am having the same issue as guy_smiley. I am using reverse proxies and don't get posters for recent movies and tv shows. They do show up when using maraschino within my home network, but once using away from home, the recent videos still show (and even update), but the poster links are broken.

I tried logging over reverse proxies to my web interface, which is not properly accessible given a bug in the XBMC code, but I don't think the 2 are related.

Any thoughts very welcome!


- guy_smiley:) - 2011-12-22

steve1977 Wrote:I tried logging over reverse proxies to my web interface, which is not properly accessible given a bug in the XBMC code, but I don't think the 2 are related.

Any thoughts very welcome!

httpd.conf
https://docs.google.com/document/d/1-M_3Sg7EcKBo1WwCCxj4C4YzjXdy3HWzB4mxDmh6B6k/edit

Maraschino (site file)
https://docs.google.com/document/d/1mkXJvF9gs5EocnLUyg5BQB8eBuKtJywuq04MWvh5g6M/edit

Have a look at these files that I have updated. Currently I have got the XBMC web interface working externally through reverse proxies (displaying correctly). The only thing I can't get working is the JSONRPC reverse proxy, which means listing Movies, TV Shows etc isn't working on the web interface. Any help with this would be much appreciated, both files are open to commenting.

Cheers.


- eXisTa - 2011-12-22

guy_smiley:) Wrote:If you're running Apache, why not just run it as your base directory? Otherwise you can run it as a second directory, second web page under another instance of apace.

It's not even working with reverse proxy localhost:7000 set to /maraschino
I got everything else working for me; sabnzbd, couchpotato, sickbeard & headphones.
Maraschino just gives me plain ol' text:
[HTML]Welcome to Maraschino

To get started, hover over the top-left corner and click the cog icon to enter configuration mode.

Need help? Visit maraschinoproject.com or click the Maraschino logo in the top left.

+ Add module

+ Add module

+ Add module[/HTML]

My httpd.conf:
[HTML]<Location /maraschino>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:7000/
ProxyPassReverse http://localhost:7000/
</Location>[/HTML]


- guy_smiley:) - 2011-12-23

eXisTa Wrote:My httpd.conf:
[HTML]<Location /maraschino>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:7000/
ProxyPassReverse http://localhost:7000/
</Location>[/HTML]

This is because Maraschino doesn't have a web_root or similar like SickBeard, SABnzbD, CouchPotato etc. As far as I'm aware, you will need a re-write rule like the one I have for XBMC in my httpd.conf.

[HTML]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>[/HTML]


- _Mikie_ - 2011-12-23

On the recently added movies and episodes module when I click the button on the bottom right to show more it pops up a box asking for username and pass. Is this normal or am I making a mistake?


- MarkHT - 2011-12-23

sorry if this has already been covered in this thread. But can someone show me how to extend the "recently added movies" (module?) so i can see the full posters?

Image