Showing posts with label IM. Show all posts
Showing posts with label IM. Show all posts

Tuesday, February 17, 2009

Blabber - an xPL Jabber Gateway

A couple months ago, I added Jabber functionality to my xPL sCU application. I've decided to make the Jabber portion available as a standalone xPL app called Blabber. This app will let you use IM to send it messages, which you can use in your automation scripts. It also allows your automation system to send instant messages back to you.

First, you'll need to set up a Jabber account which Blabber will use. Google probably has the most reliable Jabber server and it's what I use. Add your personal IM account to the Blabber account's roster. Once that's done, you can set up your config.txt file. It's just a single line file:

<user name>,<server>,<password>

For example, assuming your Blabber account is xplblabber@gmail.com then your config.txt file would be as follows:

xplblabber,gmail.com,your_password

After you've saved config.txt in the Blabber directory, you can start it up. You'll notice a debug window that prints information messages. Now you can interface to it.

When you IM with Blabber, it will generate sensor.basic messages:
source = doghouse-blabber.xyz
dest = *
type = xpl-trig

sensor.basic
{
   device=your_email@gmail.com/gmail.some_resource_numbers
   type=message
   current=the text of the message you sent
}

Blabber will also keep track of your status:

source = doghouse-blabber.xyz
dest = *
type = xpl-trig

sensor.basic
{
   device=your_email@gmail.com/gmail.some_resource_numbers
   type=status
   current=available
}

One thing you can use IM for is if you're not home, you can create a script that will forward the contents of osd.basic messages to you over IM. Just create a control.basic packet like this:

dest = doghouse-blabber.xyz
type = xpl-cmnd

control.basic
{
   device=your_email@gmail.com/gmail.some_resource_numbers
   current=somebody rang the doorbell
}

Download Blabber. I've only tested this on XP, but it should work on Win2k.

Wednesday, December 10, 2008

Jabber Re-Integration

I've finally completed integration of Jabber functionality into my xPL sCU app. I had coded it up months ago, but was too lazy to fully integrate it since I've been using xAP Jabber. Last night, I finally cleaned up the code and added response handlers in the xPL sCU hosted script. It's up & running so I've turned off xAP Jabber. I used jabber-net to build in the Jabber functionality.