Posts: 87
Joined: Aug 2010
Reputation:
1
Is there a way of catching XBMC events in Eventghost, or something similar that in turn might notify eventghost? A way that will not be deprecated in the near future?
I want to catch events like play, pause, screensaver on, screen saver off, etc...
Thanks.
Posts: 7,256
Joined: Nov 2008
Reputation:
121
No, or at least no easy way. What are you trying to do?
1 minute later: apart from JSON of course :-)
JR
Posts: 87
Joined: Aug 2010
Reputation:
1
I want to turn off my tv when screen saver gets activated, and turn on my tv when screen saver gets deactivated.
I have the actions to switch TV off and on in Eventghost, but no events to pair them with.
Thanks.
Posts: 815
Joined: Nov 2008
Reputation:
9
Doesn't sound like your a coder, but you'd have to write a listener that listens for that event and sends it to eventghost.
Can you possible just bind the tv on/off to the System.Idle event? You can customize the idle time if you need.
Posts: 87
Joined: Aug 2010
Reputation:
1
Just been a coder in c/c++ console apps for the last 15 years. So what you are saying might be a tad difficult. I don't want system idle because I have my system wide screen saver off, and only xbmc screen saver on. I am usually working on my primary display. I want only the tv switching off when xbmc screen saver gets activated.
Posts: 87
Joined: Aug 2010
Reputation:
1
Is there a working sample listener example somewhere?
Posts: 87
Joined: Aug 2010
Reputation:
1
Anyways does XBMC broadcast screen saver notifications?
I though I could add python calls to the slideshow screensaver addon, but sadly it seems all the functionality is inbuilt and not an addon.
I can turn my tv on and off using rs232. So it should be doable using pyserial or something like that. Only problem is where to make those calls from.
Posts: 87
Joined: Aug 2010
Reputation:
1
Does the skin get notified when the screen saver gets activated/deactivated?