Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.
User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Luca Brasi »

Hi Jonib,

I have the a problem with the xbmc2 plugin form time to time. It stops getting json notifications from kodi randomly. I will notice that in the way that my htpc doesn't go to standby. I am handling this with another plugin which is triggered from kodi/xbmc2 on screensaver activation.
Now... I know this has been a topic some time ago but I can't figure out what the latest status was on that. And the thread is quiet long...
I am using 0.6.23 of your plugin. Please let me know if there was a solution back then or how I can help to solve this.
Thanks
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

Luca Brasi wrote:I have the a problem with the xbmc2 plugin form time to time. It stops getting json notifications from kodi randomly. I will notice that in the way that my htpc doesn't go to standby. I am handling this with another plugin which is triggered from kodi/xbmc2 on screensaver activation.
Now... I know this has been a topic some time ago but I can't figure out what the latest status was on that. And the thread is quiet long...
I am using 0.6.23 of your plugin. Please let me know if there was a solution back then or how I can help to solve this.
Thanks
Ver 0.6.33 is the last test and seems to improve the detection and connection to Kodi.
If your problem is fixed with it great, I need feedback that its working so I can have it included in EventGhost.
If not I would like more specific information about the problem like when does it loose the notification and stuff.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Luca Brasi »

Ah ok. I'll run it with 0.6.33 now for a while and check if it helps. I'll come back to if the connections gets lost again. I'll need some more help with debugging then I guess cause I have no clue how monitor this...
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Luca Brasi »

Hi Jonib,

after having 0.6.33 running for a while now I wanted to let you know that the connection was stable since. Seems that my probs got solved with this.
Thanks for your help!

Luca
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

Luca Brasi wrote:after having 0.6.33 running for a while now I wanted to let you know that the connection was stable since. Seems that my probs got solved with this.
Thanks for your help!
Thank you for letting me know, now I might be able to finish a release that I want to get included in EventGhost.

So anyone interested please report anything that needs fixing in ver 0.6.33, as I'll try in the coming week to focus fixing stuff in the plugin and get it included in EventGhost.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
fuxxi
Posts: 12
Joined: Mon Apr 25, 2016 9:00 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by fuxxi »

Does the plugin works with EG 0.5.0 Beta? Anybody tried already?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

fuxxi wrote:Does the plugin works with EG 0.5.0 Beta? Anybody tried already?
I haven't had a chance to test the new EventGhost beta yet, so no idea if there is any compatibility issues.

If there are reports that the included or the latest test version has problems. I'll up my priority testing it. Otherwise I don't know when I'll have an opportunity.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by blaher »

fuxxi wrote:Does the plugin works with EG 0.5.0 Beta? Anybody tried already?
version = "0.6.19" works with Beta 3, but the latest version = "0.6.33", says it can't find actions.dat.
fuxxi
Posts: 12
Joined: Mon Apr 25, 2016 9:00 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by fuxxi »

blaher wrote:but the latest version = "0.6.33", says it can't find actions.dat.
so it does with EG 0.4.x :wink: Thanks for that info - gonna install EG 0.5 now. :)
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by blaher »

I'm trying to switch profiles using json and was just curious why this doesn't work?

It works with an HTTP link calling json, but not from the plugin, i.e. this works:

import urllib; urllib.urlopen('http://192.168.0.194:8081/jsonrpc?reque ... t"},"id":1}')

Thanks.
Attachments
Capture.PNG
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

blaher wrote:I'm trying to switch profiles using json and was just curious why this doesn't work?
Using 0.6.33 and connecting to Kodi 16.1Rc3 it works fine for me. (Had to create a new profile)
What versions are you using?
version = "0.6.19" works with Beta 3, but the latest version = "0.6.33", says it can't find actions.dat.
This is not a problem unless you need the extra actions that can't be downloaded as the website changed and I haven't updated the plugin. Older versions don't have those actions.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by blaher »

jonib wrote:
blaher wrote:I'm trying to switch profiles using json and was just curious why this doesn't work?
Using 0.6.33 and connecting to Kodi 16.1Rc3 it works fine for me. (Had to create a new profile)
What versions are you using?
Thank you for testing that.
I'm using 16.1 Jarvis and 0.6.33D
Is this the correct format for the plugin json bit, or have I messed it up?

{"method":"Profiles.LoadProfile","params":{"profile":"night"},"id":1}

As an aside, I got this error when loading on EG 1722, but I don't get it on my main PC running EG beta 4...I'm not sure what I've done wrong.
Attachments
Capture.JPG
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

blaher wrote:Is this the correct format for the plugin json bit, or have I messed it up?

{"method":"Profiles.LoadProfile","params":{"profile":"night"},"id":1}
This one works for me (tested in Kodi 17 alpha2):

Code: Select all

{"jsonrpc":"2.0","method":"Profiles.LoadProfile","params":{"profile":"night"},"id":1}
As an aside, I got this error when loading on EG 1722, but I don't get it on my main PC running EG beta 4...I'm not sure what I've done wrong.
xbmcclient.py seems to be missing/corrupt should be in the XBMCRepeat directory.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by blaher »

Thanks for your help again. The reason it wasn't working on my other PC, was because I'm an idiot and copied the .ini file to xbmceventreceiver, instead of xbmcrepeat!

D'oh! :)
egbaud
Posts: 35
Joined: Tue Mar 18, 2014 1:30 am

How to identify files associated with u'id'

Post by egbaud »

I've depended on the Janitor add-on for Kodi to move watched tv and movies to a watched folder, which then gets cleaned out periodically. But with Krypton, Janitor is broken, and the author says he's not sure when he'll be able to fix it. So I was wondering if I could replace its functions with Eventghost and this plugin.

Whenever a show is marked as "Watched", XBMC2 fires the following event:

XBMC2.VideoLibrary.OnUpdate.episode {u'item': {u'id': 88408}, u'playcount': 1}

Does anybody know how to associate the episode id in this event with filenames for the watched media? I've looked in the .db files in kodi\userdata\database with the SQLite browser, and I can't find any reference to 88408 in any episode related table.

Any pointers?

UPDATE

Because I installed the WIndows Store version of Kodi Krypton, the appdata for Kodi moved to
C:\Users\MYUSERNAME\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi
I guess I'll need to figure out how to find the Kodi appdata programmatically, somehow.

I was able to find the relevant episode id in the database there. I'll report back if I'm able to identify the files associated with an episode based on episode id.
Post Reply