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.
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 using the 0.6.10 above and got this error:
Have you tried the 0.6.9 version? do you get the same errors?
The first line in your log is "XBMC2.System.OnQuit" did these errors happen after closing XBMC?
Hope it helps.
Thanks for reporting.

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:Have you tried the 0.6.9 version? do you get the same errors?
I had been using it, but not with json. I'll go back and try it later.
The first line in your log is "XBMC2.System.OnQuit" did these errors happen after closing XBMC?
Yes, immediately.

Code: Select all

14:48:25   XBMC2.Playlist.OnClear {u'playlistid': 0}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 0}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 1}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 2}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 3}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 4}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 5}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 6}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 7}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 8}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 9}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 10}
14:48:25   XBMC2.Playlist.OnAdd.unknown {u'playlistid': 0, u'position': 11}
14:48:25   XBMC2.Player.OnPlay.unknown {u'player': {u'playerid': 0, u'speed': 1}}
14:48:25   XBMC2.Player.OnPlay.unknown {u'player': {u'playerid': 0, u'speed': 1}}
14:48:28   Keyboard.X
14:48:28   XBMC2.Player.OnStop.unknown {u'end': False}
14:48:31   Keyboard.E
14:48:31   XBMC2.System.OnQuit 0
14:48:31   XBMC2: Disconnected from XBMC, not receiving JSON-RPC notifications.
No errors today, but it seems to disable json on quitting and I need to manually disable, then enable json before it'll work again. I use a Vera plugin for my lights http://forum.micasaverde.com/index.php/ ... 697.0.html, can json talk to both?

I also only get a XBMC2.System.OnStart trigger if XBMC is running when EG starts.

Cheers.
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 had been using it, but not with json. I'll go back and try it later.
Thanks, it would help me concentrate on the right part of the code.
Yes, immediately.
Hopefully I can figure out whats causing it, have no idea at the moment.
No errors today, but it seems to disable json on quitting and I need to manually disable, then enable json before it'll work again. I use a Vera plugin for my lights http://forum.micasaverde.com/index.php/ ... 697.0.html, can json talk to both?

I also only get a XBMC2.System.OnStart trigger if XBMC is running when EG starts.
Sounds like what eman457 reported before, unfortunately I haven't fixed it yet. I'll try to make a new test version with the fix this weekend.

There is a "Search" button in the XBMC2 plugins config dialog, does it work for you blaher? if it works it's a new problem, if it don't it's probably the same as for eman457.

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: There is a "Search" button in the XBMC2 plugins config dialog, does it work for you blaher? if it works it's a new problem, if it don't it's probably the same as for eman457.
With .10:

Code: Select all

12:07:51   JSON-RPC connected
12:07:51   HTTP API connected
12:08:00   Traceback (most recent call last) (1630):
12:08:00     File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 1278, in SearchForXBMC
12:08:00       for i in ssdpSearch().keys():
12:08:00     File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 1142, in ssdpSearch
12:08:00       with open(os.path.join(eg.folderPath.RoamingAppData, 'EventGhost', 'plugins', 'XBMC2', 'ssdp.log'), 'a') as f:
12:08:00   IOError: [Errno 2] No such file or directory: u'C:\\Users\\blaher\\AppData\\Roaming\\EventGhost\\plugins\\XBMC2\\ssdp.log'
12:08:08   XBMC2: Starting connection test, trying to connect to XBMC using 127.0.0.1:8080
12:08:08   JSON-RPC connected
12:08:08   JSON-RPC connection closed
12:08:08   XBMC2: JSON-RPC works.
12:08:15   JSON-RPC connected
12:08:15   HTTP API connected
12:08:15   XBMC2: Activating JSON-RPC notifications
12:08:15   XBMC2: Connected to XBMC ( 127.0.0.1 : 9090 ), ready to recive JSON-RPC notifications.
12:08:15   XBMC2.System.OnStart
12:08:21   Traceback (most recent call last) (1630):
12:08:21     File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 1278, in SearchForXBMC
12:08:21       for i in ssdpSearch().keys():
12:08:21     File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 1142, in ssdpSearch
12:08:21       with open(os.path.join(eg.folderPath.RoamingAppData, 'EventGhost', 'plugins', 'XBMC2', 'ssdp.log'), 'a') as f:
12:08:21   IOError: [Errno 2] No such file or directory: u'C:\\Users\\blaher\\AppData\\Roaming\\EventGhost\\plugins\\XBMC2\\ssdp.log'
12:08:23   XBMC2: Starting connection test, trying to connect to XBMC using 127.0.0.1:8080
12:08:23   JSON-RPC connected
12:08:23   JSON-RPC connection closed
12:08:23   XBMC2: JSON-RPC works.
12:08:28   JSON-RPC connected
12:08:28   HTTP API connected
12:08:35   XBMC2: Disconnected from XBMC, not receiving JSON-RPC notifications.
12:08:35   XBMC2: Deactivating JSON-RPC notifications
12:08:35   XBMC2: Activating JSON-RPC notifications
12:08:35   Task.Created.dwm
12:08:35   XBMC2: Connected to XBMC ( 127.0.0.1 :Task.NewWindow.dwm
12:08:35    9090 ), ready to recive JSON-RPC notifications.
12:08:35   Task.Deactivated.EventGhost
12:08:35   Task.Activated.dwm
12:08:35   XBMC2.System.OnStart
With .9, Search pressed once:

12:48:15 XBMC2: Search finished, results in address dropbox.
12:48:20 XBMC2: Search finished, results in address dropbox.

There isn't any other option though, just 127.0.0.1:80; I use 8080.
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:With .10:
When I put in the "ssdp.log" code I assumed there would be a "Plugins\XBMC2" dir. Great that you tested with the previous version also.
There isn't any other option though, just 127.0.0.1:80; I use 8080.
OK, seems your XBMC don't put in the port number in the ssdp network message. I'll try to make a new test version that don't need the port number today.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
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
Could you test the attached test version, it should at least detect when you start XBMC. Report any other problems you still have (or don't have) please.

jonib
Attachments
__init__.py
XBMC2 test version 0.6.11 XBMC detection fix
(98.42 KiB) Downloaded 478 times
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 »

Unfortunately it doesn't detect XBMC starting, unless I open XBMC, then start EG. Once XBMC shuts, I need to reload EG again for it to detect events.

Search no longer gives the error, just two messages:
12:02:44 XBMC2: Search finished, results in address dropbox.
12:02:44 Task.Created.dwm
12:02:44 Task.NewWindow.dwm
12:02:44 Task.Deactivated.EventGhost
12:02:44 Task.Activated.dwm
12:02:49 XBMC2: Search finished, results in address dropbox.

Below is what it detects:
Attachments
Untitled-1.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:Unfortunately it doesn't detect XBMC starting, unless I open XBMC, then start EG. Once XBMC shuts, I need to reload EG again for it to detect events.
Just got an idea, do you have any of the UPnP settings activated in XBMC? As the XBMC2 plugin uses SSDP (part of UPnP) to detect when XBMC starts.
Search no longer gives the error, just two messages:
Yeah, I removed the crashing code, but I don't understand why your getting the "Search finished" message twice. :(

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:Just got an idea, do you have any of the UPnP settings activated in XBMC? As the XBMC2 plugin uses SSDP (part of UPnP) to detect when XBMC starts.
UPnP is enabled on my router, but unchecked in XBMC. I also disabled the Vera plugin, (which does detect XBMC starting), just in case it was interfering.
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:UPnP is enabled on my router, but unchecked in XBMC.
Aha, you need at least one of the UPnP options in XBMC enabled, or the XBMC2 plugin won't be able to detect XBMC starting.
I also disabled the Vera plugin, (which does detect XBMC starting).
Interesting, do you know how the Vera plugin detects XBMC? As I would like to support all possible ways.

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:Aha, you need at least one of the UPnP options in XBMC enabled, or the XBMC2 plugin won't be able to detect XBMC starting.
I see, which option do you recommend?
Interesting, do you know how the Vera plugin detects XBMC? As I would like to support all possible ways.
No, sorry, it's beyond my ken, but attached are files it uses. Looking through it seems like a ping command might be used, but that's just a guess.
Attachments
Vera Files.rar
(37.33 KiB) Downloaded 216 times
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 see, which option do you recommend?
"Allow control of XBMC via UPnP" in XBMC config\Services\UPnP seems to be the one, if your not using the other features.
No, sorry, it's beyond my ken, but attached are files it uses. Looking through it seems like a ping command might be used, but that's just a guess.
Thanks, I'll see if there is anything useful.

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:Allow control of XBMC via UPnP" in XBMC config\Services\UPnP seems to be the one, if your not using the other features.
Sweet, that works perfectly now, even with the Vera plugin running concurrently.

Edit: viewtopic.php?f=9&t=1562&start=795#p27693 I managed to fix the error in this post by specifying my IP, rather than using 127.0.0.1. I was remoting into the machine with teamviewer and got the error on quitting with .11, but it seems to be good now.

Edit again: D'oh, just remoted in and got the same error on quitting.
MANswers
Posts: 17
Joined: Sat Apr 13, 2013 4:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by MANswers »

I have a added a few categories of movies in the main menu as playlist.
For eg:- Hollywood Movies, French Movies, Asian Movies, German Movies

How can i link these playlist directly?
I am using XBMC v12.2 Frodo on Windows 7.
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 »

MANswers wrote:I have a added a few categories of movies in the main menu as playlist.
For eg:- Hollywood Movies, French Movies, Asian Movies, German Movies

How can i link these playlist directly?
I am using XBMC v12.2 Frodo on Windows 7.
Don't have time right now but try the command from this post, you will need to use a test version with Frodo support.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Post Reply