Sending on-screen notifications using the JSON API

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
spiff Offline
Grumpy Bastard Developer
Posts: 12,179
Joined: Nov 2003
Reputation: 82
Post: #11
plink, totally agree, plong, donk

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Bstrdsmkr Offline
Fan
Posts: 648
Joined: Oct 2010
Reputation: 12
Post: #12
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
find quote
darksheep Offline
Junior Member
Posts: 10
Joined: Nov 2011
Reputation: 0
Question  RE: Sending on-screen notifications using the JSON API Post: #13
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.
find quote
XBob Offline
Junior Member
Posts: 3
Joined: Apr 2010
Reputation: 1
Post: #14
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...
find quote
wipmonkey Offline
Junior Member
Posts: 29
Joined: May 2009
Reputation: 0
Post: #15
(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.
(This post was last modified: 2012-08-11 00:59 by wipmonkey.)
find quote
Post Reply