ajplante 0 Posted October 24, 2014 Posted October 24, 2014 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.
Luke 38842 Posted October 24, 2014 Posted October 24, 2014 what is the flow of information you're proposing? to notify xbmc via the json api or to receive notifications?
ajplante 0 Posted October 27, 2014 Author Posted October 27, 2014 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.
Luke 38842 Posted October 27, 2014 Posted October 27, 2014 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
ebr 15436 Posted October 27, 2014 Posted October 27, 2014 Or the guys could build this into their add-on. They should already have the websocket connection that is getting these notifications now.
xnappo 1597 Posted October 27, 2014 Posted October 27, 2014 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
ebr 15436 Posted October 27, 2014 Posted October 27, 2014 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?
Luke 38842 Posted October 27, 2014 Posted October 27, 2014 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.
xnappo 1597 Posted October 27, 2014 Posted October 27, 2014 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
ajplante 0 Posted October 28, 2014 Author Posted October 28, 2014 I have no coding experience but I would be glad to toss a few satoshis at anyone who writes a plugin.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now