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)



- T800 - 2011-12-01

nashant Wrote:You're thinking about that mention of buffer_size there is? It says write buffer though, so I doubt it.

What happens if you start it up and just leave it?

It does this:
Code:
Last login: Wed Nov 30 23:36:09 on ttys000
Macintosh:~ mc$ cd /users/mc/maraschino
Macintosh:maraschino mc$ sudo python maraschino.py
Password:
* Running on http://0.0.0.0:5000/
* Restarting with reloader
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/js/lib/less.js HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/js/lib/jquery.js HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/js/lib/jquery-ui.custom.min.js HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/js/popups.js HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/js/index.js HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/less/base.less HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/less/site.less HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/images/backgrounds/grass.jpg HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/images/alpha/000_70.png HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/images/settings_icon.png HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/images/alpha/000_80.png HTTP/1.1" 304 -
127.0.0.1 - - [30/Nov/2011 23:37:54] "GET /static/images/alpha/fff_10.png HTTP/1.1" 304 -

Then nothing works now.


- T800 - 2011-12-01

If I quit terminal and restart it says this:
Code:
Last login: Wed Nov 30 23:41:19 on ttys000
Macintosh:~ mc$ cd /users/mc/maraschino
Macintosh:maraschino mc$ python maraschino.py
* Running on http://0.0.0.0:5000/
Traceback (most recent call last):
  File "maraschino.py", line 73, in <module>
    app.run(debug=True, port=PORT, host='0.0.0.0')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Flask-0.8-py2.7.egg/flask/app.py", line 703, in run
    run_simple(host, port, self, **options)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Werkzeug-0.8.1-py2.7.egg/werkzeug/serving.py", line 610, in run_simple
    test_socket.bind((hostname, port))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 48] Address already in use

I have to reboot to start again.


- gugahoi - 2011-12-01

T800 Wrote:If I quit terminal and restart it says this:
Code:
Last login: Wed Nov 30 23:41:19 on ttys000
Macintosh:~ mc$ cd /users/mc/maraschino
Macintosh:maraschino mc$ python maraschino.py
* Running on http://0.0.0.0:5000/
Traceback (most recent call last):
  File "maraschino.py", line 73, in <module>
    app.run(debug=True, port=PORT, host='0.0.0.0')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Flask-0.8-py2.7.egg/flask/app.py", line 703, in run
    run_simple(host, port, self, **options)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Werkzeug-0.8.1-py2.7.egg/werkzeug/serving.py", line 610, in run_simple
    test_socket.bind((hostname, port))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 48] Address already in use

I have to reboot to start again.

It seems you still have something running in that port. Do not quit terminal without finishing the process. Just press control+c on terminal and it should stop whatever it was doing. Otherwise, change the port number on settings.py (I believe that should work).

Regarding your other error : "[Errno 32] Broken pipe" it seems a connection was closed early, prob XBMC's, it shouldnt happen. Give it another go.


- DejaVu - 2011-12-01

Your running CouchPotato @ port 5000 (probably).

At the end of Maraschino.py or in settings.py specify a different port. Best to use 7000.


- N3MIS15 - 2011-12-01

karandras24 Wrote:Hi All,

Just a quick question for you.

Is it possible to change the page title for maraschino?

I currently have it running on my server but would like to add it to 3 other xbmc htpc's.

It would be nice to have a way to tell them apart other than IP address or host name in the address bar.

Open templates\base.html in text editor and modify line "<title>{% block page_title %}Marashino{% endblock %}</title>" where it says marashino, you can change that to whatever you would like.


- karandras24 - 2011-12-01

N3MIS15 Wrote:Open templates\base.html in text editor and modify line "<title>{% block page_title %}Marashino{% endblock %}</title>" where it says marashino, you can change that to whatever you would like.

Cheers for the reply matey.

Would this not get overwritten (Sp?) everytime an update is pushed?


- T800 - 2011-12-01

It's working much better for me know.

I completely re-installed it (only took a few minutes).

For some reason SABNZbd isn't being displayed. Some recently added thumbs aren't showing and I can't play anything from Maraschino.


Code:
File "/Users/mc/.maraschino/tools.py", line 29, in decorated
    return f(*args, **kwargs)
  File "/Users/mc/.maraschino/controls.py", line 13, in xhr_play_episode
    xbmc.Playlist.Clear(playlistid=1)
  File "build/bdist.macosx-10.6-intel/egg/jsonrpclib/jsonrpc.py", line 276, in __call__
    return self.__send(self.__name, kwargs)
  File "build/bdist.macosx-10.6-intel/egg/jsonrpclib/jsonrpc.py", line 225, in _request
    check_for_errors(response)
  File "build/bdist.macosx-10.6-intel/egg/jsonrpclib/jsonrpc.py", line 529, in check_for_errors
    raise ProtocolError((code, message))
ProtocolError: (-32601, u'Method not found.')
192.168.0.5 - - [01/Dec/2011 21:06:16] "GET /xhr/currently_playing HTTP/1.1" 200 -
127.0.0.1 - - [01/Dec/2011 21:06:17] "GET /xhr/currently_playing HTTP/1.1" 200 -
192.168.0.5 - - [01/Dec/2011 21:06:21] "GET /xhr/sabnzbd HTTP/1.1" 200 -
192.168.0.5 - - [01/Dec/2011 21:06:21] "GET /xhr/currently_playing HTTP/1.1" 200



- nashant - 2011-12-01

Which repo did you clone, and when? That message is saying that it's trying to use an invalid XBMC api function. My repo could have had that in a few pushes ago. All fixed now though.


- T800 - 2011-12-01

nashant Wrote:Which repo did you clone, and when? That message is saying that it's trying to use an invalid XBMC api function. My repo could have had that in a few pushes ago. All fixed now though.

I did this:
git clone https://github.com/mrkipling/maraschino.git /home/yourusername/.maraschino

About 5 hours ago.

EDIT:
Sorry just realized it needs Pre Eden nightly.


- nashant - 2011-12-01

karandras, I'll look into an option to set the name.


- nashant - 2011-12-01

Yeah, T800. Needs pre-eden. But you may as well upgrade now. It's pretty much perfectly stable. And when you do upgrade, I'd recommend cloning from me, DejaVu or gugahoi. I remember reading that MrKipling doesn't have much time at the mo, so the newer features are in the forks.


- DejaVu - 2011-12-02

MrK is far too busy getting married at the moment.
I'm sure, once his life settles down a bit he'll bury his head into this for a few days.

Considering Maraschino seemed to spring from nowhere, I'm pretty certain the mods in the branches/forks are not going to take him a couple of days to perfect/add.

Lots of different features being added all over the place at the moment and I think all the Mods being worked on should be added together into a Testing Repo for others to try out before MrK's return...

Rather than keep cloning all over the place?

Thought?


- Shaolin - 2011-12-02

DejaVu Wrote:MrK is far too busy getting married at the moment.
I'm sure, once his life settles down a bit he'll bury his head into this for a few days.

Considering Maraschino seemed to spring from nowhere, I'm pretty certain the mods in the branches/forks are not going to take him a couple of days to perfect/add.

Lots of different features being added all over the place at the moment and I think all the Mods being worked on should be added together into a Testing Repo for others to try out before MrK's return...

Rather than keep cloning all over the place?

Thought?
+1 here

I'd certainly like to test a repo with all the features and mods you guys are working on rolled into one.
Big GrinBig GrinBig Grin


- nashant - 2011-12-02

Yeah, I think that'd be a cracking idea.


- karandras24 - 2011-12-02

nashant Wrote:karandras, I'll look into an option to set the name.

Thanks very much! It'll make life miles easier for me, it can get a bit confusing when you have 4 maraschino tabs open Laugh

nashant Wrote:Yeah, I think that'd be a cracking idea.

another +1 on the cracking idea.