XBMC Community Forum
Sending on-screen notifications using the JSON API - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: Sending on-screen notifications using the JSON API (/showthread.php?tid=130494)

Pages: 1 2


RE: Sending on-screen notifications using the JSON API - spiff - 2012-05-04 10:11

plink, totally agree, plong, donk


RE: Sending on-screen notifications using the JSON API - Bstrdsmkr - 2012-05-04 22:01

lol I find them useful for things that I actually want to be notified about. I do a lot of "passive watching" while doing something else. If a background process completes that noise definitely gets my attention


RE: Sending on-screen notifications using the JSON API - darksheep - 2012-05-14 12:00

Hi I have a powershell script that does some thing in the backround I would like it to send a msg to xbmc so that a msg would pop up on screen and say done for example.

Does any one have some sample code of how to do this ?

Ps my xbmc has a user name and password on the web interface and need to keep it ,for some other stuff i use.

Thank you for your time and help.


RE: Sending on-screen notifications using the JSON API - XBob - 2012-07-05 19:04

Might be usefull for someone..
Code:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id":1,"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"0Dough","message":"Gotcha"}}' http://xbmc:8080/jsonrpc

That single line is enought for me to display a OSD notification on XBMC from a remote computer on event.
In my case it's yet another rebuild of a android kernel Smile
I'm running latest nightly XBMC on a Ubuntu machine...


RE: Sending on-screen notifications using the JSON API - wipmonkey - 2012-08-11 00:51

(2012-07-05 19:04)XBob Wrote:  Might be usefull for someone..
Code:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id":1,"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"0Dough","message":"Gotcha"}}' http://xbmc:8080/jsonrpc

That single line is enought for me to display a OSD notification on XBMC from a remote computer on event.
In my case it's yet another rebuild of a android kernel Smile
I'm running latest nightly XBMC on a Ubuntu machine...

That didn't work for me.
I get this: {"error":{"code":-32601,"message":"Method not found."},"id":1,"jsonrpc":"2.0"}

Am I missing something here?.... I'm not running the latest unstable version never mind.