![]() |
|
|||||||
| 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]" |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Dec 2008
Posts: 123
![]() |
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) 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. |
|
|
|
|
|
#2 |
|
Team-XBMC Python Coder
Join Date: Jan 2008
Location: US
Posts: 1,302
![]() |
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/ |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2008
Posts: 123
![]() |
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)) 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. |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Sep 2007
Posts: 23
![]() |
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">
|
|
|
|
|
|
#5 | |
|
Team-XBMC Developer
Join Date: Dec 2007
Location: Sweden
Posts: 1,860
![]() |
Quote:
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.
|
|
|
|
|
|
|
#6 |
|
Fan
Join Date: Jul 2008
Location: Seattle WA, US
Posts: 548
![]() |
Man that is killer. I like it. Talk about getting creative with your TV.
|
|
|
|
|
|
#7 | |
|
Senior Member
Join Date: Dec 2008
Posts: 123
![]() |
Quote:
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:
__________________
------------------------------------------ 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. |
|
|
|
|
|
|
#8 |
|
Skilled Skinner
Join Date: Nov 2004
Posts: 174
![]() |
genius, pure genius... great idea, sorry for not adding anything relivant to your thread, just wanted to say kudos!
|
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Dec 2008
Posts: 123
![]() |
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. |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Jan 2009
Posts: 22
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|