So I was playing around with getting addons to work with a headless XBMC install. Specifically trakt and artwork downloader are very nice to have. Trakt to keep your watched status in sync when Sickbeard or Couchpotato replaces a video file, artwork downloader to have the latest artwork (duh).
Trakt (the new 2.0.0 version) is easy: just configure it on your XBMC with GUI and copy the settings over. Make sure to set it to update after sync. You could also use the XBMC API to run the plugin, but I don't really see a point if you're using it specifically to keep the watched status in sync. Download the zip from
github and extract it in your addons directory.
Artwork downloader is a little bit trickier as it does some GUI things which xbmc-server doesn't like. I took the master version from
github and made the following modifications:
In default.py set all 'self.settings.background' to 'True' (not sure if really necessary, but didn't care to test it without).
In resources/lib/utils.py comment the section between 'if not background:' and 'if background:' (place a # at the beginning of each line). Leave the two if-statements in tact! Also put 'return False' just above 'if background:' (don't comment it).
In resources/lib/viewer.py comment the lines 'xbmc.executebuiltin( "ActivateWindow(%d)" % ( self.WINDOW, ) )' and 'self.window = xbmcgui.Window( self.WINDOW )'
Don't forget to create a settings.xml file in userdata/addon_data/script.artwork.downloader/ (I took it from a client).
You can run the plugin with the following command (add it to your cron or something):
Code:
curl -i -H "Content-Type: application/json" -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"Addons.ExecuteAddon\",\"params\": {\"wait\": false,\"addonid\": \"script.artwork.downloader\",\"params\": {\"data\": \"None\",\"sender\": \"xbmc\", \"params\": \"update\" }},\"id\": 2}" http://[email protected]:port/jsonrpc