Author |
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 19 2006 at 13:06 | IP Logged
|
|
|
Tony,
I read some more on the YAC site and Im wondering what version of YAC you're using. It appears that the latest version 1.6 and the site states that versions prior to 1.5 used a different protocol. If you've been using this awhile, is it possible that your version is less than 1.5? Other than that, I cant think of anything else.
Richard,
I'll be checking out your BubbleMessage. I don't use IM at all so Im not sure what would be involved to add support. Do you know if they have an SDK or some sort that allows external applications to interact with them?
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 19 2006 at 13:21 | IP Logged
|
|
|
I'm running 0.16 (latest). Maybe the installs are corrupt. I'll dig deeper this weekend.
|
Back to Top |
|
|
insysnet Newbie
Joined: May 09 2006 Location: United Kingdom
Online Status: Offline Posts: 18
|
Posted: May 20 2006 at 11:07 | IP Logged
|
|
|
These guys appear to have an SDK that is supposed to support a broad range of IM clients - but it's not cheap - http://www.interactiveni.com/sdk/sdkhome.htm. Maybe a bit more goggling might bring an OpenSource or Freeware solution to light?
I use MSN Messenger, but I know the market is pretty mixed - in my experience AOL and Skype are the most widely used. But I'm sure there are plenty of Yahoo, ICQ and Trillian users who would beg to differ.
I guess if you wanted to take IM support to it's ultimate extent it could actually allow users to have full bi-directional communication with PH.
Imagine the scenario...?
An external motion sensor triggers PH - PH sends an IM to you that pops up with "There's someone outside the house - would you like me to turn on the front door lights?"
You reply with "Yes. Upload Image Webcam Frontdoor"
PH receives the IM reply, then captures the Webcam image and performs an instant file transfer using the IM client.
etc.
Essentially, it's like TTS and Voice Recognition, but using two-way chat text.
The key benefit over email is the instanteous nature of the request and secondly that IM clients are now available for many platforms including mobile phones.
I'm probably running away with the possibilities here, so to rein in the scope again - I was simply looking for an outbound message to say some event has happened - this extra stuff just comes from thinking about the potential.
On the Bubble Message front, I forgot to include a README with the single EXE, so I have put one here - http://www.insysnet.com/homeauto/BubbMessReadme.txt
It just simply describes the useage - which is very similiar to JAC but with a few additional options to change the Icon in the bubble, split the bubble title/message (using ~) and display multiple lines using the ~ character in the message.
Thanks
__________________ Richard
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 20 2006 at 16:09 | IP Logged
|
|
|
Cool! Thanks Richard! The formula Dave posted now works, and it's instantaneous. Deploying to all my machines...
FYI: In PH, you need to use three tilde's to get one...
ph_sendsocketdata("ip",10629,"Incoming Call~~~Test Message")
Edited by TonyNo - May 20 2006 at 16:41
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 20 2006 at 16:28 | IP Logged
|
|
|
For the advanced version of ph_sendsocketdata, is there a way to broadcast to multiple addresses/IP's?
|
Back to Top |
|
|
insysnet Newbie
Joined: May 09 2006 Location: United Kingdom
Online Status: Offline Posts: 18
|
Posted: May 22 2006 at 04:23 | IP Logged
|
|
|
Glad you found it useful Tony. Let me know how it goes (if you find any bugs).
Thanks for the tip on the ~~~ - couldn't figure out why some of my formula's were returning !
Strangely I found that if I surrounded the ~ with spaces i.e. "Title ~ Hello There", rather than "Title~Hello There", it worked fine - but now I'll use the ~~~ instead of ~.
Thanks
__________________ Richard
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 22 2006 at 22:46 | IP Logged
|
|
|
Tony,
I started getting the same error you were getting Tony...the YAC client terminating with a Windows Send/Dont Send message. Don't know why but don't feel like you're alone.
Richard,
I like your ideas. It would be cool to be able to carry on a dialog through IM. I'll do some investigating and see what it will take to add IM support (two-way). It wont make it into the next beta but I may be able to do some work on it after Ive got the release version out. I also checked out your Bubble Message program. Pretty slick. Works great with the old ph_sendsocketdata and the new ph_sendsocketdata1. Nice work.
Tony,
Broadcasting to multiple IP's...Im not sure. From everything that Ive worked with on sockets, I have to give it a specific IP to setup a connection. Maybe, Im just behind on what's capable and it can be done...but I don't know how. What I could do is probably all multiple IP's separated by semicolons and then just open each one up separately. If you've got a site that you can point me to, it would be a great help .
Richard,
The ~ character in PowerHome is an escape character. Putting a tilde in front of another character creates an escape character. Like ~r is carriage return, ~n is line feed, and ~t is tab. ~~ is a tilde character. Because of the substitution and such that is going on, you sometimes need to escape twice, ie. ~~~ to equate to a single ~. The reason why the ~ around spaces worked is because ~space is not a valid escape character so it wasnt substituted.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 22 2006 at 22:57 | IP Logged
|
|
|
Thanks Dave!
YACTextSend can send to all.
http://sunflowerhead.com/software/yac/YACTextSend.zip
Send YAC a WM_COPYDATA message with a pointer to your COPYDATASTRUCT
* struct as lparam. YAC handles this message and will format, display,
* and broadcast your message to all listeners.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 22 2006 at 23:51 | IP Logged
|
|
|
Tony,
I'll check that out and see if I can figure out how it's doing it. I know YAC has the source code on their site so I'll see what's going on. I wouldnt be surprised though that it's using a continous connection (established when a YAC client opens) that the server tracks and then sends the commands sequentially to all connected clients.
I'll let you know what I find out.
Dave.
|
Back to Top |
|
|
Manny Senior Member
Joined: March 23 2003 Location: United States
Online Status: Offline Posts: 172
|
Posted: May 23 2006 at 03:06 | IP Logged
|
|
|
Maybe this helps regarding PowerHome sending out an IM accross the Internet.
Miranda IM is a open-source multi protocol instant messenger client for Microsoft Windows.
You can then use a plugin called: ExtSend
ExtSend is a simple and tiny tool that lets you send messages to contacts from a command-line or external applications. The tool is useful to send messages from applications on the remote computer on a schedule or an event (ex: send log messages from the web-server, from download manager when a job is done and so on).
|
Back to Top |
|
|
insysnet Newbie
Joined: May 09 2006 Location: United Kingdom
Online Status: Offline Posts: 18
|
Posted: May 23 2006 at 11:43 | IP Logged
|
|
|
Absolutely fantasic Manny!
Downloaded Miranda IM installation (don't download the zip file) and installed with just the MSN Messenger plugin (you get it from http://www.miranda-im.org/)
Then downloaded the ExtSend plugin and unzipped that into the plugins sub-folder - normally c:\program files\miranda im\plugins if you install to the default location (you can get the extsend.exe plugin from http://addons.miranda-im.org/details.php?action=viewfile&id= 504)
Configured my MSN Messenger account for the PowerHome server and bingo! I can get IM messages using the following formula (Win98):
ph_run('command.com /c "c:\program files\miranda im\plugins\extsend.exe" Rich -offline Hello')
For WinXP I guess it would be
ph_run('cmd.exe /c "c:\program files\miranda im\plugins\extsend.exe" Rich -offline Hello')
This formula assumes you install miranda to it's default location.
Thanks for the tip Manny!
__________________ Richard
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 25 2006 at 13:11 | IP Logged
|
|
|
Manny,
Great catch. I'll definately be taking a look at it to see what kind of integration can be done. Really appreciate the info.
Tony,
I checked out the YAC server code and such and it does address clients individually. What happens is that when a YAC listener starts up, it sends a message to the YAC server and says "Im here. Remember me". Then when the YAC server needs to send a message, it just sequentially goes through it's list and individually notifies each listener.
But, whilst doing this research and investigating the xAP protocol, I did discover that there is such a thing as "Broadcast IP's". It's rather limited in the amount of data and only works within the current clients subnet mask. Im not sure how I'll be able to leverage the info within PowerHome but it'll definately be something I look at and keep in my bag of tricks.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 25 2006 at 19:31 | IP Logged
|
|
|
Dave,
OK, I just figured there was some sort of broadcast method. No problem; I just concatenate multiple sendmessage's for each client now.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: June 02 2006 at 23:28 | IP Logged
|
|
|
Richard,
Does it make sense that BubbMess does not pop-up if you are running Firefox in kiosk mode (full screen)?
|
Back to Top |
|
|
insysnet Newbie
Joined: May 09 2006 Location: United Kingdom
Online Status: Offline Posts: 18
|
Posted: June 05 2006 at 07:01 | IP Logged
|
|
|
Do you get any other standard Windows balloon messages while running Firefox in kiosk mode (e.g. Desktop Cleanup Wizard, New Hardware installation, etc.)?
The BubbMess exe uses the standard Windows API call "Shell_NotifyIcon" to display the balloon message.
If you don't get any balloon messages, it may be a feature/limitation of the Windows API that balloon messages are not displayed when Windows is in a "Kiosk" mode environment.
__________________ Richard
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: June 05 2006 at 07:17 | IP Logged
|
|
|
YAC popped up, but now that I think of it, no. No other balloons.
|
Back to Top |
|
|
insysnet Newbie
Joined: May 09 2006 Location: United Kingdom
Online Status: Offline Posts: 18
|
Posted: June 05 2006 at 07:37 | IP Logged
|
|
|
I don't think there's a way to get round the API limitation without creating the code to draw the bubbles manually outside of the Windows API - which would be quite a big job.
I could probably throw up an always on top rectangle window that disappeared on click or a short delay if I knew how to detect whether the internet browser is in kiosk mode.
Next thing is figuring out when the internet browser is in kiosk mode...
__________________ Richard
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: June 05 2006 at 13:30 | IP Logged
|
|
|
Heh, don't worry about it. You've done enough!
|
Back to Top |
|
|
Manny Senior Member
Joined: March 23 2003 Location: United States
Online Status: Offline Posts: 172
|
Posted: March 17 2007 at 15:28 | IP Logged
|
|
|
Interesting article on using Twitter with HA for messages:
AH article
Oreilly Article
Twitter
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: March 17 2007 at 15:35 | IP Logged
|
|
|
Hey Manny. You may want to check out the new ph_openiewindow function...
Thread Linky
I just realized that this thread was originally about AIM and such, so maybe my response and the others on bubbmess should be in another thread.
Edited by TonyNo - March 17 2007 at 15:37
|
Back to Top |
|
|