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:
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./usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --pair
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
You need to add a line such as:vi /etc/crontab
This basically runs the script every 15 minutes, which should be enough to scrobble 20-minute shows.*/15 * * * * root /usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --daemon
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 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#if (self.NOTIFY_BOXEE):
self.boxee_client.showNotification("Scrobbled to Trakt!")
11) Reboot your NAS, start playing something on Boxee and watch it appear and scrobble on your trakt profile/usr/local/python26/bin/python /volume1/MEDIA/Scripts/boxee-trakt/TraktForBoxee.py --daemon
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!)
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.
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!)
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!)
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!)
Any chance on getting a windows app?
Bookmarks