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
snoopy1492 Offline
Junior Member
Posts: 17
Joined: Sep 2010
Reputation: 0
Post: #11
Thanks for those info! It helped a lot!

I have it working now, the only problem is that it's not working if I put an other alias than / into my apache conf :
Code:
client XXX.X.XX.XXX] File does not exist: /var/www/static
and also :
Code:
File does not exist: /var/www/xhr

I tried to work my way into your code but I don't know anything about Python or Flask so I did not figured out a way to make it work outside of the root...

So that's how I did it thanks to your info mrkipling! Smile

  1. Next to the file htpcfrontend.py, create an empty file named htpcfrontend.wsgi and place inside :
    Code:
    import sys
    sys.path.insert(0, "/location/of/the/files")
    from htpcfrontend import app as application
  2. Add a line into your apache configuration :
    Code:
    WSGIScriptAlias / /linktowhereyouinstalledtheprogram


EDIT :
Unfortunately I can't get the Trakt or XBMC widget to work... Wonder if it's because I'm using a XBMC build from two days ago, the JSON-RPC API could have been changed...
But regarding trakt, I don't know Sad

But still, it looks very promising! (and I love the design Smile )
Ah and while I'm thinking, it would be better if the application widget was opening a new tab/window rather than opening the link in the same window Wink

I will follow this thread daily then!
(This post was last modified: 2011-10-26 15:29 by snoopy1492.)
find quote
mrkipling Offline
Senior Member
Posts: 214
Joined: Apr 2011
Reputation: 3
Post: #12
snoopy1492 Wrote:Thanks for those info! It helped a lot!

EDIT :
Unfortunately I can't get the Trakt or XBMC widget to work... Wonder if it's because I'm using a XBMC build from two days ago, the JSON-RPC API could have been changed...
But regarding trakt, I don't know Sad

The JSON RPC API has changed quite significantly in Eden. I'm currently using the stable release, but perhaps I should switch to unstable and get ready for Eden.

Regarding Trakt, have you:

* entered your Trakt API key in the settings? (you can find this in your Trakt profile)
* entered your Trakt username in the settings?
* set your profile to public/unprotected?

I'm guessing that it's probably the last one. I should add support for protected profiles - it's on my todo list!

Edit: I've just updated my XBMC installation to get the latest nightly updates. The next development that I do will be to make the app work with the current API in the nightly builds (not least because it doesn't work for me any more unless I do that - I have motivation!)
(This post was last modified: 2011-10-27 01:19 by mrkipling.)
find quote
snoopy1492 Offline
Junior Member
Posts: 17
Joined: Sep 2010
Reputation: 0
Post: #13
Ok thanks, I'll wait for the updates Smile
find quote
mrkipling Offline
Senior Member
Posts: 214
Joined: Apr 2011
Reputation: 3
Post: #14
snoopy1492 Wrote:Ok thanks, I'll wait for the updates Smile

Okay, I hacked away at it this evening and now have it working with the unstable (Eden-pre) version of XBMC. It no longer works with Dharma. I feel that this is right way to go Smile

If you pull from the master branch and restart Apache then things should just start working (assuming that you've configured it correctly in settings.py). Let me know if you encounter any problems, feedback/bug reports would be much appreciated.

N.B. 'click to play' on recently added items doesn't work with the new API yet. That's the next thing that I'm working on though, and then all existing functionality will be working properly with the new API. Will probably be done tonight or tomorrow.
find quote
snoopy1492 Offline
Junior Member
Posts: 17
Joined: Sep 2010
Reputation: 0
Post: #15
Wow, that was fast!

So now, the XBMC latest episodes and currently playing work Big Grin, but I still don't have the trakt widget showing up... Sad

Thanks for the update!

PS: I would propose my help for this project as I'm a web developper myself, but I don't know anything about Python...
find quote
mrkipling Offline
Senior Member
Posts: 214
Joined: Apr 2011
Reputation: 3
Post: #16
snoopy1492 Wrote:Wow, that was fast!

So now, the XBMC latest episodes and currently playing work Big Grin, but I still don't have the trakt widget showing up... Sad

Thanks for the update!

PS: I would propose my help for this project as I'm a web developper myself, but I don't know anything about Python...

Short version: Trakt should now be working Smile

Long version: I'm guessing that you probably weren't using the trakt plugin to scrobble what you're watching from XBMC. The app used to make an API call to trakt to fetch what you're currently watching; this was good in some ways because trakt has some pretty useful info, and pretty lame in others because trakt is slow (both to update what you're watching and to make API calls to). (EDIT: this is not the case any more, trakt fixed these issues). Also, as I suspect the case may be here, if you're not scrobbling to trakt then it wouldn't know what you're watching and you wouldn't ever see the trakt module. I fixed this by changing the app so that it now uses what you're watching locally, and only uses the trakt API to get shouts.

I also changed the setting TRAKT_BACKGROUNDS to FANART_BACKGROUNDS as it now pulls fanart from your local XBMC machine vs. from trakt. A benefit of this is that you no longer need to use the trakt module if you want to have automatically switching fanart backgrounds.
(This post was last modified: 2011-11-01 12:23 by mrkipling.)
find quote
snoopy1492 Offline
Junior Member
Posts: 17
Joined: Sep 2010
Reputation: 0
Post: #17
Ok, good to know Smile

I'll test that tonight, I can't connect to my server, there was a power surge at my place and everything need to be restarted (I really need to setup wake-on-lan...)

Anyway, I was already using trakt to scrobble what I was watching, but not since the plugin was not fully working with pre-Eden build.

I'll let you know in a few hours if it's working Smile
find quote
rectifyer Offline
trakt.tv admin
Posts: 399
Joined: Oct 2009
Reputation: 18
Post: #18
@mrkipling since you're requiring eden, I would recommend using trakt utilities to handle scrobbling vs. the current dharma trakt plugin. Eden allows it to be notified and send updates to trakt instantly so it would solve that issue. The dharma plugin has to poll on a timer to see what is being watched which unfortunately makes it not instant.

I'd also be interested to get more details about the API slowness you are experiencing. Feel free to email support@ with any details so we can investigate.

Edit: API slowness seems to be caused by one of our providers. Have a ticket with them to fix it.

Cool project and looking forward to future (trakt!) enhancements.

[Image: all-thin-banner@2x.jpg]

trakt.tv - Track what you're watching. Discover new shows & movies.
forum thread - @trakt on twitter - support
(This post was last modified: 2011-10-28 00:33 by rectifyer.)
find quote
rudf0rd Offline
trakt.tv admin
Posts: 134
Joined: Aug 2010
Reputation: 34
Location: pdx, or
Post: #19
Awesome. Just got it working behind nginx + gunicorn!

http://cl.ly/0B3p002g3O2w1F2O270P

[Image: all-thin-banner.jpg]
find quote
mrkipling Offline
Senior Member
Posts: 214
Joined: Apr 2011
Reputation: 3
Post: #20
rectifyer Wrote:@mrkipling since you're requiring eden, I would recommend using trakt utilities to handle scrobbling vs. the current dharma trakt plugin. Eden allows it to be notified and send updates to trakt instantly so it would solve that issue. The dharma plugin has to poll on a timer to see what is being watched which unfortunately makes it not instant.

I'd also be interested to get more details about the API slowness you are experiencing. Feel free to email support@ with any details so we can investigate.

Edit: API slowness seems to be caused by one of our providers. Have a ticket with them to fix it.

Cool project and looking forward to future (trakt!) enhancements.

Thanks for the advice - I only started using pre-Eden a few days ago and didn't know that trakt had an updated plugin. I'll be sure to set that up over the weekend.

Glad that you figured out what's the causing the API slowness too Smile
find quote
Post Reply