nadler Super User
Joined: February 25 2006 Location: United States
Online Status: Offline Posts: 354
|
Posted: December 21 2006 at 10:37 | IP Logged
|
|
|
This is a simple macro to announce just the hour and minutes. I use a timed event to trigger it and a weather macro every hour during 6 am and 11 pm on weekdays. It and the weather macro are also triggered by a KPL button.
My family quickly tired of hearing the day and date as well as the time, this is the shortened result:
insert into macroheader values ('ABBREVIATED HOUR','ANNOUNCE TIME',0,0,1);
insert into macrodetail values ('ABBREVIATED HOUR',1,37,'',NULL,'Macro to Announce Hour and Minute Only. The first three lines set the announcement voice, set the speaker switch and set the button to the correct color in the control center and can be eliminated',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',2,38,'',NULL,'ph_ttssetvoice("VW Kate")',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',3,1,'AB8SS AMP B PC',NULL,'',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',4,38,'',NULL,'ph_setccobjbcolor("MY HOUSE","TB25",rgb(255, 0, 0 ))',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',5,15,'[LOCAL1]',NULL,'if(hour(now()) > 12,string(hour(now()) - 12 ) ,if(hour(now()) = 12,"12 P.M.",string(hour(now())) ))',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',6,15,'[LOCAL2]',NULL,'"It''s " +minute(now())+ " minutes after"',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',7,37,'',NULL,'The next line mutes itunes if playing, followed by the time announcemnt, followed by unmuting of itunes',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',8,41,'ITUNES MUTE',NULL,'',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',9,9,'',NULL,'ph_getvar_s(1,2)+ph_getvar_s(1,1) + ph_getvar_s(1,3)',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',10,31,'',NULL,'2',0,'');
insert into macrodetail values ('ABBREVIATED HOUR',11,41,'ITUNES MUTE',NULL,'',0,'');
|