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
"Impossible" is a strong word. It just hasn't been implemented yet
damn - I doubt this.
So at least for now - impossible
It's not JSON
...but you can use the EventServer api to send a notification to the window. You can even send an icon apparently but I never got that to work.
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)
xbmc-send -a "Notification(Testing,XBMC Command Success.)"
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/x...iew=markup
solariz Wrote: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
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.
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?
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