Popping up a message in XBMC remotely... a little help please....
#31
If anyone's looking for an easy way to do this, I've made some shell scripts to send popup messages to XBMC. They might be particularly useful if you're using Frodo, because the HTTP API isn't present in Frodo so there's also a script based on the JSON-RPC API, which Frodo can use. They're available at www.timmeredith.com. Ironically, I named them xbmc-send, didn't know there was already one of those... I'll probably get around to changing the name. Anyway, they should work fine on Fedora, along with most other types of Linux, plus MacOSX, and Windows if you have Cygwin.
Reply
#32
(2012-11-25, 14:36)tradeJmark Wrote: If anyone's looking for an easy way to do this, I've made some shell scripts to send popup messages to XBMC. They might be particularly useful if you're using Frodo, because the HTTP API isn't present in Frodo so there's also a script based on the JSON-RPC API, which Frodo can use. They're available at www.timmeredith.com. ...

I've tried playing around with the JSON-RPC based script on a Raspberry Pi with no success, I'm just wondering... Is the JSON-RPC API something supported by XBMC12 out of the box? or is it an add-on I need to install from a repository?

Thanks.

Reply
#33
(2012-12-12, 14:34)MacOCD Wrote:
(2012-11-25, 14:36)tradeJmark Wrote: If anyone's looking for an easy way to do this, I've made some shell scripts to send popup messages to XBMC. They might be particularly useful if you're using Frodo, because the HTTP API isn't present in Frodo so there's also a script based on the JSON-RPC API, which Frodo can use. They're available at www.timmeredith.com. ...

I've tried playing around with the JSON-RPC based script on a Raspberry Pi with no success, I'm just wondering... Is the JSON-RPC API something supported by XBMC12 out of the box? or is it an add-on I need to install from a repository?

Thanks.

It gets sent over HTTP, so you need to go into the settings then pick services and turn on the http one under Webserver. Make sure it's on port 8080 and don't set a username and password. There's a way to use it with the username and password but I forget it so I'll have to look into that for you.
Reply
#34
(2012-12-12, 18:55)tradeJmark Wrote: If anyone's looking for an easy way to do this, I've made some shell scripts to send popup messages to XBMC. They might be particularly useful if you're using Frodo, because the HTTP API isn't present in Frodo so there's also a script based on the JSON-RPC API, which Frodo can use. They're available at www.timmeredith.com. ...

Hi

New Linux & XBMC user, currently using Frodo RC3. Was looking for a way to send popup notifications from my home automation system (VeraLite) to the XBMC PC and saw this thread. Wondering why the HTTP API was removed from Frodo ?

How do I setup and use the shell scripts mentioned here ? I downloaded the .tar file and can see a file called "xbmc-send-json5" but I am not sure what to do with it.

Many Thanks
Reply
#35
There should be a ReadMe file that explains it all, but basically a command should look like this: 'xbmc-send-json5 "This is a title" "This is a message" your.ip.address.here'
Reply
#36
Hi

I did read the readme and changed the IP address and port number to my XBMC PC. I don't know where to save the xbmc-send-json5 file to? or how to run it.



If I enter this in my browser I do get a popup in XBMC OK:

Code:
http://192.168.1.5:81/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:{%22title%22:%22Motion%20Detected%22,%22message%22:%22Front%20Door%22},%22id%22:1}

In my home automation system this is the current code I use to send a popup message to Windows Media Center:

Code:
luup.inet.wget("http://192.168.1.5:40510/msgbox%20%22Motion%22%20%22Detected%20Front%20Garden%22%205")

I tried adding the below in to Vera, to try and send a popup to XBMC, but I get a code error.

Code:
luup.inet.wget("http://192.168.1.5:81/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:{%22title%22:%22Motion%20Detected%22,%22message%22:%22Front%20Door%22},%22id%22:1}")

I've asked the question on our Vera forum here.

EDIT: See here
Reply
#37
(2013-01-14, 23:08)cw-kid Wrote: Hi

I did read the readme and changed the IP address and port number to my XBMC PC. I don't know where to save the xbmc-send-json5 file to? or how to run it.



If I enter this in my browser I do get a popup in XBMC OK:

Code:
http://192.168.1.5:81/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:{%22title%22:%22Motion%20Detected%22,%22message%22:%22Front%20Door%22},%22id%22:1}

In my home automation system this is the current code I use to send a popup message to Windows Media Center:

Code:
luup.inet.wget("http://192.168.1.5:40510/msgbox%20%22Motion%22%20%22Detected%20Front%20Garden%22%205")

I tried adding the below in to Vera, to try and send a popup to XBMC, but I get a code error.

Code:
luup.inet.wget("http://192.168.1.5:81/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:{%22title%22:%22Motion%20Detected%22,%22message%22:%22Front%20Door%22},%22id%22:1}")

It shouldn't matter where you put it, just either add wherever you put it to your PATH (ex. add 'export PATH = $PATH:/path/to/script' to your home/.profile) or every time you run the file, go to the folder it's in and run it with ./ (ex. './xbmc-send-json5 title message ipadresss').
Reply
#38
I tried every example with my own ip adres (locally and remote)

but till now NO succes

i even cant get a popup when using the browser (chrome)

http://192.168.2.4:8088/jsonrpc?request=...%22id%22:1}

i have currently NO username and password in xbmc.

anny help ?

ps notifications from sickbeard are working! (remote media pc)

even from the tes button in sickbeard

i need to send a notification from Delphi when i know how to send it in http browser
Reply

Logout Mark Read Team Forum Stats Members Help
Popping up a message in XBMC remotely... a little help please....0