Kodi Community Forum

Full Version: Popping up a message in XBMC remotely... a little help please....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I figured it out...I needed to use URL encoding for some characters. This worked:

Code:
GET /xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(ALERT!%2CWater%20In%20Basement!%2C6000%2CE:%5Calert.jpg))
I finally got messages stating as sent "OK!" from the browser, but this was by enabling the Webserver and not the Events server (and of course using the correct port, ect)

However, even though the event appears as "OK!" within the browser, nothing appears in my XBMC setup -- why is this?
This is a great use of xbmc with home automation systems

I use CQC and am looking at doing the same thing. I especially like the fact that I can send a notification to my daughter when it is dinner time without having to yell at her and then turn it off automatically after a set time if she does not get to the table as requested.

Mick
I had a similar problem and it turns out that the parser is just VERY picky.
for example this works just fine:
ExecBuiltIn(Notification(New Mail,3000,/home/andre/envelope.png))

but this doesn't
ExecBuiltIn(Notification(New Mail, 3000, /home/andre/envelope.png))

the only difference is the spaces following the commas. if they are there, xbmc wont show the image, but it will still pop up the dialog. its quite frustrating.

I've also noticed that the EventClient is unable to show anything on the screen at all. xbmc shows a notification that the client connected, but then the log just shows that the connection timed out.
to the OP, have you been able to get this working without the other popup dialog's icons to also be enlarged? it seems the xml change just increases the default image size for popups, so all XBMC notifications will ahve oversized icons now... as I understand it, its possible to create a custom dialog box that might be more suitable for something like this, but haven't had any success finding any information on how to do it. I'm not entirely sure its possible through the HTTP API.
Sorry, I have not idea how to do that one... The automated things are the only things I am sending now, so I use the same size icons for all of them.

Hopefully someone else can help with that one.....
thanks for that post, i was able to add it to my capisuite answering machine i run on a debian server ... so xbmc notifies me when i get a call and displays the callerid Smile pretty nice hehe Smile
I'll post details if anyone wants them.. however i got the program motion to work with this command.. it's awesome.

sudo wget http://username:pasword@localhost:8080/x...n\!,There\ Is\ Someone\ Approching,6000,%f\)\)

i am not sure that i need to use sudo, also motion takes alot of pictures even a 1fps, i am talking about hundreds here... also anyone know of a way to get a uvc webcam to work as a live stream in xbmc linux?
JohnWPB,

I just found this whilst getting CallerID to work with PBXInaflash (which is working now)

I am also a homeseer user and I am interested in sending messages to XBMC from homeseer - could you give me an example of how you are sending the message in a homeseer event? I assume its via a vbscript?

Jon
I am away in Hong Kong for the World Electronic Expo at the moment, I can check for you when I get home. I think I just fired the URL as a command line. It has been a while, so I am not sure. I will look for you when I get back in a couple of weeks.
Hi JohnWPB,

I'm trying to get this working - I can do it from a web browser and I get the message on XBMC, but now want to make an event in HS to do the same. I've created a txt file with the http command but can't get it to work. What's the method I need to use from the HS machine to run an event to display a message in XBMC?

Many thanks for any advice

Jon
I just figured out to send a message, if someone calls. XBMC now displays the CID and the name Wink

a simple (Text Example)
Code:
wget "http://xbmc:[email protected]:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(New%20Mail,You%20have%20Mail,20000))"
from any Linux-machine does the trick.

The first two "xbmc" are the User and Password of the XBMC WebIF. The "8080" after IP is the Port, the WebIF is running on.

Hope that helps
Hey I have been trying to get this to work from the terminal but i have been unsuccessful.

I am able to do the following from a browser.
Quote:http://192.168.1.6:8080/xbmcCmds/xbmcHtt...20000))%22

But when I do it from terminal.

Quote:[s3cur17y@htpc ~]$ wget "http://192.168.1.6:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(New%20Mail,You%20have%20Mail,20000))%22"
--2011-04-09 14:17:52-- http://192.168.1.6:8080/xbmcCmds/xbmcHtt...20000))%22
Connecting to 192.168.1.6:8080... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.


Does anyone have any clues?
s3cur17y Wrote:Does anyone have any clues?

why not use the xbmc-send command?

examples:
xbmc-send --host=127.0.0.1 -a "Notification(Automatic update service:,new update avaible,20000)"

xbmc-send --host=127.0.0.1 -a "Notification($1,$2,$3)"

where
$1 = Label
$2 = Text
$3 = time in millisec.
I would but I can't find it for Fedora
Pages: 1 2 3