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.
darksheep
Junior Member Posts: 10 Joined: Nov 2011 Reputation: 0 |
2012-05-15 20:58
Post: #21
|
| find quote |
sparkie2640
Junior Member Posts: 32 Joined: Sep 2008 Reputation: 2 |
2013-02-04 00:53
Post: #22
wget -Oz:\jsonrpc.log -q -T 1 -t 1 "http://username:password@192.168.0.50:8080/jsonrpc?request={\"jsonrpc\":\"2.0\",\"method\":\"GUI.ShowNotification\",\"params\":{\"title\":\"Download Complete\",\"message\":\"%1\"}}"
Where username is whatever username you're using, password is whatever password you're using. Change 192.168.0.50:8080 to whatever IP and port you're using and z:\jsonrpc.log to wherever you'd like the log file to be stored. When you call it, you can submit something like 'test.bat blah' and it will display "Download Complete: blah" on your tv screen. Edit - fixed quotes
(This post was last modified: 2013-02-05 05:15 by sparkie2640.)
|
| find quote |

Search
Help