Jump to content

XBMC Notifications


ajplante

Recommended Posts

ajplante

Is there anyway you could include support for notifications, either through a plugin or nativly, for XBMC's native JSON interface? It would be great to be notified when new shows are added right on my XBMB3C machine.

Link to comment
Share on other sites

what is the flow of information you're proposing? to notify xbmc via the json api or to receive notifications?

Link to comment
Share on other sites

ajplante

To notify the XBMC Json API via the mediabrowser server. I would like to be able to see when content is added to my server while I am watching a show on my HTPC downstairs. 

Link to comment
Share on other sites

Understood. This is a good idea.

 

The notification system is built in a modular fashion to allow multiple inputs and outputs.  If someone wanted to build a plugin to notify xbmc, it would be very easy. Here's an example from the Notify My Android plugin:

 

https://github.com/MediaBrowser/MediaBrowser.Plugins/blob/master/MediaBrowser.Plugins.NotifyMyAndroidNotifications/Notifier.cs#L43

 

It is basically just one method that needs to be implemented - SendNotification

Link to comment
Share on other sites

Or the guys could build this into their add-on.  They should already have the websocket connection that is getting these notifications now.

Link to comment
Share on other sites

xnappo

Probably we could use the xbmb3c websocket, but the normal notification system is already built in to the skins - so would be nice to just use it.

 

xnappo

Link to comment
Share on other sites

Probably we could use the xbmb3c websocket, but the normal notification system is already built in to the skins - so would be nice to just use it.

 

xnappo

 

Right - so can't the add-on subscribe to the websocket message that the server is already sending and translate to the message protocol understood by the skins?

Link to comment
Share on other sites

the server is only sending raw id's. so they'd have to listen and then query for whatever information the xbmc json api is expecting. Since snazy2000 is a veteran at this now, I'm sure a plugin is something he could do.

Link to comment
Share on other sites

xnappo

We would have to listen on our websocket port, then rebroadcast on the xbmc websocket port.  Do-able? Yes - but not sure that is the right way to go. 

 

xnappo

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...