From: Michael B. <mb...@bl...> - 2008-03-29 04:02:45
|
Hi everyone, I'm new to this group having just brought up MH on a Linux server running Ubuntu 6.06. I'm located in NW Washington State right on the coast and about 25 miles south of the Canadian border. I wrote software professionally for 20+ years including lots of perl and C/C++ code for a big company that makes airplanes around here :-) I've also been an electronics "tinkerer" for many years playing with Basic Stamps, etc. At any rate, I'm excited to finally have my own MH installation and have begun to play with it. I'm finding to documentation on the object model to be a little lacking and so I hope everyone will humor me as I come up to speed on some of this stuff. Right now I'm trying to simply understand the proper way to catch an X10 signal. I'm using the following example code copied from one source: ----------------------------------------------------------------------- #--- Respond if the A4 button is pushed ON $test_button = new Serial_Item('XA4'); if (state_now $test_button eq ON) { my $remark = "You just pushed the A4 button"; print_log "$remark"; #speak $remark; } --------------------------------------------------------------------------- X10 debug in my print log shows that the signal is coming across: 03/28/08 08:41:26 PM X10: Incoming data=XA4 03/28/08 08:27:14 PM X10: Incoming data=XA4 But the code above doesn't execute... can someone give me some pointers as to why? Do I need to declare the object as an X10 object instead of a serial object? Thanks - I look forward to more involvement with you all. Michael Burr |