Page 22 of 23 FirstFirst ... 1220212223 LastLast
Results 211 to 220 of 226

Thread: Trakt.tv

  1. #211
    Join Date
    Dec 2010
    Posts
    135

    Default

    Quote Originally Posted by TuftyMcTavish View Post
    I'm running the script on OSX too, xnowimcoolx. I ignored all the instructions on the Startup script as I recall. I created a little AppleScript app that runs the python script instead.

    The only problem I have is that if the BoxeeBox isn't on when the script start, it totally fails and won't work until I restart it. So I have to run downstairs, start BoxeeBox, run upstairs again to restart the script, then charge back downstairs to watch telly. I've yet to look into why this might be.

    I also have lots of problems shutting down my iMac if the BoxeeBox wasn't on as the AppleScript/python file is reporting an error message that I have to find and close first.

    All round I have to say this is highly inelegant, but I'll get to figuring out what to do about it shortly I hope!!! Love the concept, just got to improve the execution. Then I need to figure out how to move it over to my Synology, but the start-up timing issues are concerning me.
    I'm working on scrobbee with ernie now, development has stalled a bit due to busy schedules, but hopefully we'll have something working soon. I'm aware of the issues with the current solutions, but will not attempt to fix it here.

  2. #212

    Default

    So, after wanting to try the python script to scrooble to trakt, I finally decided last night to try and install it on my Synology DS1511+ NAS and decided to share the procedure, as it might help someone achive the same results

    1) download the script from GitHub and extract it to a Shared Folder of your choice. In my case: "/volume1/MEDIA/Scripts/boxee-trakt".

    2) Make sure you have python installed on your Synology. I used the SynoBlog package

    3) Edit "config_example.ini", replace your Boxee IP Address, trakt username and password and set "NotifyBoxee = No" (will explain it later).

    4) Rename config_example.ini to config.ini (I also made a copy and renamed it to settings.cfg, as I wasn't sure which filename was correct).

    5) Open a Terminal window, ssh/telnet into your NAS as root and type:
    /usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --pair
    6) A code should appear in your Boxee Box which you should type in the terminal window to pair with your device. There are some issues with pairing in this thread but I didn't have any, so I'm afraid I can't help you there.

    7) If everything went OK, you should be able to play a Movie/TV Episode in Boxee and it should appear within seconds on your trakt profile.

    8) Now, we need to make sure that the script runs even after your turn off your NAS. Instead of using the startup script, I decided to set a cronjob so that the script runs every few minutes. The reason for that is, I believe if you run the script when you power-on your NAS, but the Boxee Box is powered-off, the script will fail and it won't scrobble the next time you play something. If you set a cronjob every few minutes, it will continuously run the script. I didn't notice any performance issues using this method, but someone might see something against it which I'm not so feel free to correct me.

    9) In the Terminal window again, type
    vi /etc/crontab
    You need to add a line such as:
    */15 * * * * root /usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --daemon
    This basically runs the script every 15 minutes, which should be enough to scrobble 20-minute shows.

    10) Finally, I wanted to get Boxee to notify me only when it actually scrobbles an episode to trakt, but without bothering me everytime it runs the cronjob script.
    So I edited TraktForBoxee.py on notepad.
    Look for the line with: "self.boxee_client.showNotification("Scrobbled to Trakt!")" and comment the line before
    #if (self.NOTIFY_BOXEE):
    self.boxee_client.showNotification("Scrobbled to Trakt!")
    If you now want to be sure you didn't mess up anything, run the script once again. If it doesn't give you an error message, you should be fine
    /usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --daemon
    11) Reboot your NAS, start playing something on Boxee and watch it appear and scrobble on your trakt profile


    dieterblomme ,Really looking forward to scrobbee, but until then, this will do the job
    Current Setup:
    Synology DS1511+ (8TB)
    1x Apple TV2 with Plex and XBMC
    1x Roku LT with Plex
    1x Boxee Box (SOLD!)

  3. #213
    Join Date
    Dec 2010
    Posts
    135

    Default

    The instructions are very nicely done, thanks!
    Scrobbee will wait a bit longer, both iernie and I are very busy ATM, but it will come
    as far as for you cronjob: this will start the script every so often, and unless I'm severely mistaken, it might start several scripts next to each other. This might result in duplicate notifications to trakt.
    I would consider adding the option and specifying the PID file, that way if the script is already running, it won't start a new one ... The downside is that you'll need to remove the pidfile if you reboot the nas.

  4. #214

    Default

    Quote Originally Posted by dieterblomme View Post
    as far as for you cronjob: this will start the script every so often, and unless I'm severely mistaken, it might start several scripts next to each other. This might result in duplicate notifications to trakt.
    I would consider adding the option and specifying the PID file, that way if the script is already running, it won't start a new one ... The downside is that you'll need to remove the pidfile if you reboot the nas.
    Oh, crap lol. I have no idea how to check if the script is indeed running multiple times. As far as trakt goes, I haven't noticed multiple scroobles, but it is possible.

    Can you confirm if I was correct? If I run the script (without cronjob) and the BBox is powered-off or not responding, the script will fail and it won't scrobble the next time I power up Boxee, correct?
    Current Setup:
    Synology DS1511+ (8TB)
    1x Apple TV2 with Plex and XBMC
    1x Roku LT with Plex
    1x Boxee Box (SOLD!)

  5. #215
    Join Date
    Dec 2010
    Posts
    135

    Default

    Quote Originally Posted by samukas View Post
    Oh, crap lol. I have no idea how to check if the script is indeed running multiple times. As far as trakt goes, I haven't noticed multiple scroobles, but it is possible.

    Can you confirm if I was correct? If I run the script (without cronjob) and the BBox is powered-off or not responding, the script will fail and it won't scrobble the next time I power up Boxee, correct?
    Yes, that seems correct. You can check on the CL by command ps -ax or just ps I think.
    You won't have multiple scrobbles, if they are sent close together, trakt only accepts the first...

  6. #216

    Default

    Quote Originally Posted by dieterblomme View Post
    Yes, that seems correct. You can check on the CL by command ps -ax or just ps I think.
    You won't have multiple scrobbles, if they are sent close together, trakt only accepts the first...
    Well, if I have notifications on the script set to "ON", I only see one scrobble taking place.
    I do see the "You are watching" notification every time the script runs (so, every 15 minutes), that's why I disabled them.

    I will check the command-line when I get home. Thanks for your help

    What I was basically trying to achive was to prevent a case where my NAS reboots (or I simply power it down and on again in a few hours) and I forget to power up the BBox as well and it won't scrobble to trakt.
    Last edited by samukas; April 3rd, 2012 at 05:23 AM.
    Current Setup:
    Synology DS1511+ (8TB)
    1x Apple TV2 with Plex and XBMC
    1x Roku LT with Plex
    1x Boxee Box (SOLD!)

  7. #217
    Join Date
    Dec 2010
    Posts
    135

    Default

    Quote Originally Posted by samukas View Post
    Well, if I have notifications on the script set to "ON", I only see one scrobble taking place.
    I do see the "You are watching" notification every time the script runs (so, every 15 minutes), that's why I disabled them.

    I will check the command-line when I get home. Thanks for your help

    What I was basically trying to achive was to prevent a case where my NAS reboots (or I simply power it down and on again in a few hours) and I forget to power up the BBox as well and it won't scrobble to trakt.
    yeah, that is a bitch, i'm working on circumventing this in scrobbee, but it's not that easy. the python wrapper for the boxee api is not written extremely well...

  8. #218

    Default

    Indeed it seems to be running multiple instances.

    9111 root 8924 S /usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --daemon
    13025 root 8928 S /usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --daemon
    16773 root 8924 S /usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --daemon
    20478 root 8920 S /usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --daemon
    24210 root 8928 S /usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --daemon
    Current Setup:
    Synology DS1511+ (8TB)
    1x Apple TV2 with Plex and XBMC
    1x Roku LT with Plex
    1x Boxee Box (SOLD!)

  9. #219
    Join Date
    Dec 2010
    Posts
    135

    Default

    Quote Originally Posted by samukas View Post
    Indeed it seems to be running multiple instances.
    as i figured
    i don't have a solution though atm, sry :s

  10. #220
    Join Date
    Dec 2010
    Location
    SC
    Posts
    956

    Default

    Any chance on getting a windows app?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •