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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
- mrkipling - 2011-11-02 HarryRosen Wrote:damn I still can't get it to load properly. 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. - mybrain87 - 2011-11-02 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? - Aenima99x - 2011-11-02 mybrain87 Wrote:I followed the instructions and everything from Post 31. I checked it everything like 5 times...seems all to be configured right. try http://192.168.1.16/maraschino - mybrain87 - 2011-11-02 Aenima99x Wrote:try http://192.168.1.16/maraschino Just getting an index page: Index of /maraschino - mybrain87 - 2011-11-02 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? - avus m3 - 2011-11-02 Wow! Looks like an incredible project! - mrkipling - 2011-11-02 mybrain87 Wrote:Heres everything i did Hmmm, nothing really jumps out at me as being wrong. Have you checked your Apache logs? - HarryRosen - 2011-11-02 Here is my error log file [Wed Nov 02 11:50:39 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations [Wed Nov 02 11:53:48 2011] [error] Exception KeyError: KeyError(-1216100608,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 11:53:48 2011] [error] Exception KeyError: KeyError(-1216100608,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 11:53:48 2011] [notice] caught SIGTERM, shutting down [Wed Nov 02 11:53:49 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations [Wed Nov 02 11:56:37 2011] [error] Exception KeyError: KeyError(-1217415424,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 11:56:37 2011] [error] Exception KeyError: KeyError(-1217415424,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 11:56:37 2011] [notice] caught SIGTERM, shutting down [Wed Nov 02 11:56:38 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations when i go to http://192.168.1.146/maraschino all i get it a directory listing - mybrain87 - 2011-11-02 HarryRosen Wrote:Here is my error log file Seems like I'm not the only one who can't get it to work. Here is my log: [Wed Nov 02 09:56:25 2011] [notice] Apache/2.2.14 (Ubuntu) configured -- resuming normal operations [Wed Nov 02 09:57:42 2011] [notice] caught SIGTERM, shutting down [Wed Nov 02 09:57:43 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations [Wed Nov 02 09:58:48 2011] [error] Exception KeyError: KeyError(140715076155200,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 09:58:48 2011] [error] Exception KeyError: KeyError(140715076155200,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 09:58:48 2011] [notice] caught SIGTERM, shutting down [Wed Nov 02 09:58:49 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations [Wed Nov 02 10:03:41 2011] [notice] SIGUSR1 received. Doing graceful restart [Wed Nov 02 10:03:41 2011] [error] Exception KeyError: KeyError(140207005849408,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 10:03:41 2011] [error] Exception KeyError: KeyError(140207005849408,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 10:03:41 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations [Wed Nov 02 10:03:47 2011] [error] Exception KeyError: KeyError(140207005849408,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 10:03:47 2011] [error] Exception KeyError: KeyError(140207005849408,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored [Wed Nov 02 10:03:47 2011] [notice] caught SIGTERM, shutting down [Wed Nov 02 10:03:48 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations - _Mikie_ - 2011-11-02 I haven't downloaded or tried this yet but was just looking through the github pages and install instruction and screen shots and I must say it looks gorgeous! Coming from mediafrontpage where I helped out a little I would like to give my two cents in saying that requiring a web server is a bad idea. This is where most of users come stuck. I would suggest if possible to find a python framework that allows you to incorporate everything together much like sickbeard which doesn't need a separate web server. Other than that it looks amazing and I can't wait to try it out. Regards - DejaVu - 2011-11-03 This is seriously impressive! I too have been using/editing/struggling with Mediafrontpage to the point of giving up. I thought the JSON RPC API changes would be its death, but see this as its replacement. Could I make a coulpe of suggestions/requests... hard drive capacity widget and frontend settings editing. Will be installing this now. - HarryRosen - 2011-11-03 if anyone has been able to get this to work can you please post your process and maybe your config files please Thanks - DejaVu - 2011-11-03 Here is my FULL process for XBMCLive from the start that does not work... yet. XBMCLive with 31 October 2011 nightly build - users available are "xbmc" and "root". (WSGI will be blocked if run as root.) As far as I can tell XBMCLive does not use a user group. to make sure apache2 was installed correctly Code: sudo apt-get install apache2 installed mod_wsgi as required. Code: sudo apt-get install libapache2-mod-wsgi made sure python was installed and uptodate. Code: sudo apt-get install python setup python-setuptools as required. Code: sudo apt-get install python-setuptools 'Easy Installed' Flask Code: sudo easy_install Flask 'Easy Installed' jsonrpclib Code: sudo easy_install jsonrpclib Install git if not done already Code: sudo apt-get install git-core Clone the repo to the correct place Code: sudo git clone https://github.com/mrkipling/maraschino.git /var/www/htpc-frontend Created the correct settings.py file for htpc-frontend to run. Code: sudo cp /var/www/htpc-frontend/settings_example.py /var/www/htpc-frontend/settings.py Create a WSGI file Code: sudo nano /var/www/htpc-frontend/htpcfrontend.wsgi Paste in this file - Code: import sys So far so good - that's the easy-ish bit out of the way. Apache On XMBLive is located in /etc/apache2 We have 'sites-available' and 'sites-enabled' folders. As far as I can tell, 'sites-available' is ignored (available does not mean it's enabled!). So 'sites-enabled' should have a new file in it called 'htpcfrontend.conf' with the following in it - Code: <VirtualHost *> Enable the site (just incase) - Code: a2ensite htpcfrontend Ignoring that - Restarted XBMCLive machine just to make sure Apache restarts properly. It does. Going to http://xbmclive, http://xbmclive/htpc-frontend, http://192.168.0.4 or http://192.168.0.4/htpc-frontend still just brings up the directory listing. http://htpcfrontend brings up a 404 Error. I cannot help thinking something needs enabling in mod_wsgi in the conf's somewhere - removing a '#' perhaps in /etc/apache2/mods-enabled/wsgi.conf? If mrkipling can go through the above and confirm it's all good. There is something still seriously wrong - this being the case and to save a lot more headaches, can I suggest - http://www.cherrypy.org/ as per SB and CP. Has ANYONE got this working properly yet on any system other than mrkipling!? - HarryRosen - 2011-11-03 under the apache part put the file in the sites-available part and when you run the a2ensite htpcfrontend it should put it in the sites-enabled thats what I did, but it still won't start only list the dir structure - DejaVu - 2011-11-03 I still get ERROR: Site htpcfrontend does not exist! when doing that way too. |