XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > Skin Help and Support

Skin Help and Support GUI and Web skins/themes suggestions and support (help) for all XBMC end-users.
Please, add platform prefix to topic threads that are not platform-independent!:
Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", "[WINDOWS]", and "[XBOX]"

Reply
 
Thread Tools Search this Thread Display Modes
Old 2009-02-17, 06:55   #1
JohnWPB
Senior Member
 
Join Date: Dec 2008
Posts: 123
JohnWPB is on a distinguished road
Default Popping up a message in XBMC remotely... a little help please....

I have done some research, and can not find exactly what I am looking for.

I am trying to pop up a window in XBMC remotely, with custom text passed to it. When the system is up and running, with the surround sound in the back of the house, it can be difficult to hear someone at the door at the front of the house.

I have the house automated with Home Seer, and it is capable of running scripts based on events ect. My doorbell is hooked to Home Seer, and can log when someone comes to the door, flash a light ect. I would also like to have a message pop up on XBMC when this happens.

Ideally I would like to pass "Someone is at the front door" as well as show a remote picture from the door camera in the dialog as well. (Just a still image that is captured whenever the doorbell is pressed). I can easily save the image to a network location with the same name to be used each time... something like Someoneatthedoor.jpg.

I also receive Caller ID with Home Seer, and would like to be able to pass this as a pop up as well when the phone rings.

This is the closest I could get with my research and digging through the online help documentation:

Code:
htt p://192.168.1.96:8088/xbmcCmds/xbmcHttp?command=ExecBuiltIn;Notification(Information!,This is a test notification)
I based the above on what I found in the debug log after passing an event with XBMC Notifier v1.0.1:
23:33:01 T:5268 M:1916645376 DEBUG: HttpApi Start command: ExecBuiltIn paras: ExecBuiltIn; Notification(Information!,This is a test notification)

Using that program pops up a 200 x 100 or so dialog box in the lower right corner with that text.

This is of course the debug log, and does not show the correct syntax of what was sent to XBMC.

How can I have a window or dialog pop up with custom text?
__________________
------------------------------------------
Bio Star Mobo | Nvidia GE Force 6600 Using DVI Out | P4 2.8 Ghz w/ 4 GB Ram | Windows MCE 2005 SP3 |65" Rear Projection @ 1280 Res | Just over 1,400 Movies

Have you entered your 5? - Support themoviedb.org as the open source movie information site. If each user entered or updated just 5 records on that site, it would be complete and the best source of movie data on the internet in no time at all.

Last edited by JohnWPB; 2009-02-17 at 07:02.
JohnWPB is offline   Reply With Quote
Old 2009-02-17, 07:06   #2
rwparris2
Team-XBMC Python Coder
 
Join Date: Jan 2008
Location: US
Posts: 1,302
rwparris2 is on a distinguished road
Default

the proper way to figure this out is to use the wiki. You'll see you need to use the http api to execute a builtin :

http://xbmc.org/wiki/?title=WebServe...I#The_Commands
http://xbmc.org/wiki/?title=List_of_Built_In_Functions

but... you're close with what you've put together, so I'll just tell you

instead of ExecBuiltIn;Notification() you want ExecBuiltIn(Notification())
__________________

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/


rwparris2 is offline   Reply With Quote
Old 2009-02-17, 07:42   #3
JohnWPB
Senior Member
 
Join Date: Dec 2008
Posts: 123
JohnWPB is on a distinguished road
Default Thank You!

I looked through the Wiki, and that is where I was able to get the "ExecBuiltIn" command.

With your help, I tried your alterations, and came up with this:

Code:
http://192.168.1.96:9777/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(testing,testing123))
Which is now working perfectly, so thank you!

I just did a test, and it passes the info, as well as a capture of the door cam. It is really tiny though to try to determine who is at the door. It could be a friend, or a vacuum salesman by looking at the thumbnail

I do not see a set of parameters for the X,Y positioning, nor the size of the window.... Searching through all text in the xml's also failed to turn up any XML's containing "notification"..... Is there any way to change the size and positioning of this dialog window, or is that internal to the core code?

Here is a screen cap of what I have so far, when someone approaches the door, the motion sensor sends a Signal to Home Seer, it then relays the info to XBMC. All in all, there is about a 1 second delay, which is totally acceptable.

__________________
------------------------------------------
Bio Star Mobo | Nvidia GE Force 6600 Using DVI Out | P4 2.8 Ghz w/ 4 GB Ram | Windows MCE 2005 SP3 |65" Rear Projection @ 1280 Res | Just over 1,400 Movies

Have you entered your 5? - Support themoviedb.org as the open source movie information site. If each user entered or updated just 5 records on that site, it would be complete and the best source of movie data on the internet in no time at all.

Last edited by JohnWPB; 2009-02-17 at 21:11.
JohnWPB is offline   Reply With Quote
Old 2009-02-19, 16:49   #4
canyonquest
Junior Member
 
Join Date: Sep 2007
Posts: 23
canyonquest is an unknown quantity at this point
Default

Quote:
Originally Posted by JohnWPB View Post
Is there any way to change the size and positioning of this dialog window, or is that internal to the core code?
One of the real developers may wish to correct me if I'm mistaken, but I believe this is skin-specific. Look in the DialogKaiToast.xml file for <control type="image" id="400">
canyonquest is offline   Reply With Quote
Old 2009-02-19, 17:15   #5
topfs2
Team-XBMC Developer
 
topfs2's Avatar
 
Join Date: Dec 2007
Location: Sweden
Posts: 1,860
topfs2 is an unknown quantity at this point
Default

Quote:
Originally Posted by JohnWPB View Post
Here is a screen cap of what I have so far, when someone approaches the door, the motion sensor sends a Signal to Home Seer, it then relays the info to XBMC. All in all, there is about a 1 second delay, which is totally acceptable.
You could try the EventClients otherwise, they are able to send Notifications. The wrappings is available in C/C++ Python and Java.

look on linuxbranch svn in tools/EventClients/examples/PROGRAMMINGLAUNGUAGE/
And there should be a example_notification in these.

They are very responsive and the gui message should popup way faster than a second on the home network.

Cheers,
Tobias
__________________
If you have problems please read this before posting

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.


topfs2 is offline   Reply With Quote
Old 2009-02-19, 19:00   #6
kizer
Fan
 
kizer's Avatar
 
Join Date: Jul 2008
Location: Seattle WA, US
Posts: 548
kizer is on a distinguished road
Default

Man that is killer. I like it. Talk about getting creative with your TV.
kizer is offline   Reply With Quote
Old 2009-02-19, 21:36   #7
JohnWPB
Senior Member
 
Join Date: Dec 2008
Posts: 123
JohnWPB is on a distinguished road
Default

Quote:
Originally Posted by canyonquest View Post
One of the real developers may wish to correct me if I'm mistaken, but I believe this is skin-specific. Look in the DialogKaiToast.xml file for <control type="image" id="400">
You my friend are NOT mistaken! Thank you, thank you thank you!!! I would have never figured out where to look for that! I would not begin to think that the image description would have been named "avatar".

It is working perfectly now! The below screen capture is what it now actually looks like. I didn't run outside to trip the motion sensor, I just fired the command manually At night, the motion sensor also trips a light above the door, so whoever is there will still be visible.



In case anyone else stumbling across this post wants to know how it is done, here are the changes to the DialogKaiToast.XML:

PHP Code:

                
<control type="group">
            <
control type="image">
                <
posx>-20</posx>
                <
posy>-100</posy>
                <
width>440</width>
                <
height>160</height>
                <
colordiffuse>DDFFFFFF</colordiffuse>
                <
texture>black-back.png</texture>
                <
bordertexture border="3">NoCover_1.png</bordertexture>
                <
bordersize>4</bordersize>
            </
control>
            <
control type="image" id="400">
                <
description>avatar</description>
                <
posx>-20</posx>
                <
posy>-90</posy>
                <
width>220</width>
                <
height>140</height>
                <
aspectratio>keep</aspectratio>
                <
texture>DefaultFileBig.png</texture>
            </
control>
            <
control type="label" id="401">
                <
description>Line 1 Label</description>
                <
posx>230</posx>
                <
posy>-40</posy>
                <
width>330</width>
                <
height>18</height>
                <
font>font22</font>
                <
textcolor>green</textcolor>
                <
align>left</align>
                <
aligny>center</aligny>
            </
control>
            <
control type="label" id="402">
                <
description>Line 2 Label</description>
                <
posx>215</posx>
                <
posy>-20</posy>
                <
width>330</width>
                <
height>20</height>
                <
font>font10</font>
                <
align>left</align>
                <
aligny>center</aligny>
            </
control>
        </
control
__________________
------------------------------------------
Bio Star Mobo | Nvidia GE Force 6600 Using DVI Out | P4 2.8 Ghz w/ 4 GB Ram | Windows MCE 2005 SP3 |65" Rear Projection @ 1280 Res | Just over 1,400 Movies

Have you entered your 5? - Support themoviedb.org as the open source movie information site. If each user entered or updated just 5 records on that site, it would be complete and the best source of movie data on the internet in no time at all.

Last edited by JohnWPB; 2009-02-20 at 02:30.
JohnWPB is offline   Reply With Quote
Old 2009-02-19, 23:02   #8
NineT9mustang
Skilled Skinner
 
NineT9mustang's Avatar
 
Join Date: Nov 2004
Posts: 174
NineT9mustang is on a distinguished road
Default

genius, pure genius... great idea, sorry for not adding anything relivant to your thread, just wanted to say kudos!
NineT9mustang is offline   Reply With Quote
Old 2009-02-20, 02:31   #9
JohnWPB
Senior Member
 
Join Date: Dec 2008
Posts: 123
JohnWPB is on a distinguished road
Default

Hehehe thanks for the kudos... Yea, with the remote messaging to XBMC, some really cool stuff can be done for sure!
__________________
------------------------------------------
Bio Star Mobo | Nvidia GE Force 6600 Using DVI Out | P4 2.8 Ghz w/ 4 GB Ram | Windows MCE 2005 SP3 |65" Rear Projection @ 1280 Res | Just over 1,400 Movies

Have you entered your 5? - Support themoviedb.org as the open source movie information site. If each user entered or updated just 5 records on that site, it would be complete and the best source of movie data on the internet in no time at all.
JohnWPB is offline   Reply With Quote
Old 2009-02-26, 13:48   #10
salnajjar
Junior Member
 
Join Date: Jan 2009
Posts: 22
salnajjar is on a distinguished road
Default

What's the correct parameter for setting an image in the notification dialogue?

I've tried using:
command=ExecBuiltIn(Notification(title,message,600 00,c:/image.jpg))
command=ExecBuiltIn(Notification(title,message,600 00,c:\image.jpg))
command=ExecBuiltIn(Notification(title,message,600 00,(c:\image.jpg)))
command=ExecBuiltIn(Notification(title,message,600 00,http://imageurl/image.jpg))

I can't find any information regarding this, if anyone can enlighten me... (I'm using the MediaStream skin).

Thanks

Seri

Last edited by salnajjar; 2009-02-26 at 13:57.
salnajjar is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:27.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project