![]() |
JSON RPC and the old HTTP API notification events? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174) +---- Thread: JSON RPC and the old HTTP API notification events? (/showthread.php?tid=90403) |
JSON RPC and the old HTTP API notification events? - solariz - 2011-01-12 Hi, due to the old HTTP API is deprecated I wonder if the old notification windows are still in XBMC and if they can be triggered by a RPC request ? In the old API it was easy possible to give a onscreen notification by requesting: /xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(<title>,<msg>)) In the JSON RPC Docu of Dharma I cant find a Notification or Exec function. So onscreen Notification over JSONRPC impossible ? Would be a shame. regards - Montellese - 2011-01-12 "Impossible" is a strong word. It just hasn't been implemented yet ![]() - solariz - 2011-01-13 damn - I doubt this. So at least for now - impossible ![]() Try eventserver api? - ncarthy - 2011-01-13 It's not JSON ![]() Heres the function signature in C Sharp /************************************************************/ /* SendNotification - Payload format */ /* %s - caption */ /* %s - message */ /* %c - icontype ( 0=>NOICON, 1=>JPEG , 2=>PNG , 3=>GIF ) */ /* %d - reserved ( 0 ) */ /* XX - imagedata ( can span multiple packets ) */ /************************************************************************/ public bool SendNotification(string Caption, string Message, IconType IconType, string IconFile) - darkscout - 2011-01-13 xbmc-send -a "Notification(Testing,XBMC Command Success.)" - solariz - 2011-01-13 Thanks to ncarthy & darkscout didn`t worked with the eventserver so far but seems exactly what I`m looking for. A "fire and forget" solution is fine, JSON of course would be better but I guess I`m fine with the Eventserver. Those Examples looking good: http://xbmc.svn.sourceforge.net/viewvc/xbmc/trunk/tools/EventClients/examples/c%23/XBMCDemoClient1.cs?revision=23097&view=markup - topfs2 - 2011-01-13 solariz Wrote:Hi, Exec will never happen but notification might .submit a track ticket for each missing method with as much detail possible with parameters and expected outcome from a call and result from the call. - fidoboy - 2011-04-15 There is any changes on this issue? There is no way to show on screen notifications using JSON RPC? There is any alternative way to do this from PHP sripts? - topfs2 - 2011-04-15 No way currently, please submit a feature request trac ticket for it and cc me and Montellese. Its a feature we want, but its easy to forget about it ![]() - fidoboy - 2011-04-15 Ok, i've created it: http://trac.xbmc.org/ticket/11443 I don't know how to cc it to other users, sorry.. |