From: Steve S. <st...@sw...> - 2003-08-12 04:11:00
|
Hello again! I also have another idea... PA zone groups. Why not be able to speak = to "rooms=3Dupstairs", and have that mean all PA zones that are = upstairs. As a matter of fact, I started to tackle this just after I started = writing this email. I now have the first step for this to work... I = edited read_table_a.pl, and added this elif... elsif($type eq "PA") { ($address, $name, $grouplist, @other) =3D @item_info; my ($serial, @other) =3D @other; $address =3D~ s/^(\S)(\S)$/$1H$2/; $code .=3D sprintf "\n\$pa_%s =3D new Serial_Item('%s', 'on', = '%s');\n", $name, $address, $serial; $address =3D~ s/^(\S)H(\S)$/$1L$2/; $code .=3D sprintf "\$pa_%s -> add ('%s', 'off');\n", $name, = $address; return $code; } Then, I created entries in my .mht file: # # Type Address Name Groups Serial Name = Other Info # PA, AA, kitchen, mainfloor, weeder PA, AB, server, basement, weeder PA, AG, master, upstairs, weeder The "Adddress" colum is always 2 characters. the left char "A" defines = the weeder board address, and the secons defines the port on that board. = The item code above takes care of the H and L in between. I assume there = might be a way to clean up the code. I also see the need for this to = work with the old weeder board as well. I plan to rewrite a portion of = the PA code to also incorporate groups, but that's not in this release. = BTW, the item code was based on the requirements for pa_control_evan.pl. Please feel free ti pick it apart in improve upon it... but I plan to = make improvements very soon. :) Steve ----- Original Message -----=20 From: Steve Switzer=20 To: Misterhouse-Users=20 Sent: Monday, August 11, 2003 4:13 PM Subject: PA System/Voice Brainstorms Hello! I've been doing some brainstorming lately, and have come up with = some ideas... Please excuse me if I get longwinded... :) ...clip... I think that's it for now... I'll bore you with my overthought = messages again sometime. :-) If these are indeed issues, then we can = work together on them. if not, then maybe I an be educated... Steve |