insert into macroheader values ('WEATHER_ALERT_21B','CHECK WEATHER 2.1b',0,0,1); insert into macrodetail values ('WEATHER_ALERT_21B',1,37,'',NULL,'Change History:',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',2,37,'',NULL,'5-6: Changed usermessage all classes',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',3,37,'',NULL,'5-6: Fixed msgbox format.',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',4,37,'',NULL,'5-8: Changed retry count to 4',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',5,37,'',NULL,'5-8: Fixed retry msg type to old',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',6,37,'',NULL,'5-9: Changed reset msg.',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',7,37,'',NULL,'**************** 2.1b LOAD **************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',8,27,'',NULL,'IF (ph_getglobal_s("WA_ZONE") = " " OR ph_getglobal_s("WA_ZONE") = "X" OR ph_getglobal_s("WA_TYPE") = " " OR ph_getglobal_s("WA_CLASS") = " ", "NOP","START")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',9,37,'',NULL,'*************************************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',10,37,'',NULL,'This next set of code will be only executed if the WA_ZONE is not set',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',11,37,'',NULL,'Create Globals that will be used by WA',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',12,27,'',NULL,'IF (ph_getglobal_s("WA_TYPE") = " " ,"NOP","BYPASS_TYPE")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',13,38,'',0,'ph_setglobal_s("WA_TYPE","1") + IF (ph_getglobal_s("WA_TYPE") ="1", 0,ph_createglobal("WA_TYPE","X ") )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',14,10,'WA_TYPE',NULL,'" "',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',15,26,'',NULL,'BYPASS_TYPE',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',16,27,'',NULL,'IF (ph_getglobal_s("WA_CLASS") = " " ,"NOP","BYPASS_CLASS")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',17,38,'',0,'ph_setglobal_s("WA_CLASS","1") + IF (ph_getglobal_s("WA_CLASS") ="1", 0,ph_createglobal("WA_CLASS","X ") )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',18,10,'WA_CLASS',NULL,'9',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',19,26,'',NULL,'BYPASS_CLASS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',20,27,'',NULL,'IF (ph_getglobal_s("WA_ZONE") = " " OR ph_getglobal_s("WA_ZONE") = "X","NOP","START")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',21,38,'',0,'ph_setglobal_s("WA_ZONE","1") + IF (ph_getglobal_s("WA_ZONE") ="1",ph_setglobal_s("WA_ZONE","X"),ph_createglobal("WA_ZONE","X") )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',22,27,'',NULL,'IF (ph_getglobal_s("WA_ZONE") = "X", "NOP","START")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',23,37,'',NULL,'Pick a state and zone code then plug it into the WA_ZONE global',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',24,24,'No TTS',1,'''GO TO "http://alerts.weather.gov/" FIND YOUR ZONE NUMBER AND INSERT IT INTO "WA_ZONE" GLOBAL''',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',25,38,'',0,'ph_windowstate(1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',26,38,'',0,'ph_openiewindow("Weather ALERT ZONE NUMBER LOOKUP","http://alerts.weather.gov/", 128, -1, -1,5000,3000,0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',27,16,'',NULL,'999',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',28,37,'',NULL,'**************************************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',29,26,'',NULL,'START',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',30,15,'[TEMP4]',NULL,'"[GLOBAL91]"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',31,38,'',0,'ph_setvar_a(3,80,80) + ph_setvar_a(3,81,0) + ph_setvar_a(3,82,0) + ph_setvar_a(3,83,0) + ph_setvar_a(3,84,0) + ph_setvar_a(3,85,0) + ph_setvar_a(3,86,0) + ph_setvar_a(3,90,90) + ph_setvar_a(3,91,0) + ph_setvar_a(3,92,0) + ph_setvar_a(3,93,0) + ph_setvar_a(3,94,0) + ph_setvar_a(3,95,0) + ph_setvar_a(3,96,0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',32,38,'',0,'IF (ph_getvar_s(3,99) = " ", ph_setvar_a(3,99,0),1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',33,38,'',0,'ph_copyfile("c:\PH\weather\Weather Alert.txt", "c:\PH\weather\Weather Alert Old.txt", 9) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',34,38,'',0,'ph_deletefile("c:\PH\weather\Weather Alert.txt")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',35,38,'',0,'ph_deletefile("C:\PH\weather\WA_TYPE.txt")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',36,38,'',0,'ph_deletefile("C:\PH\weather\WA_SUMMARY.txt")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',37,38,'',0,'ph_deletefile("c:\PH\weather\RESET_TYPE.txt")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',38,38,'',0,'ph_deletefile("C:\PH\weather\WA_SUMMARY_ALL.txt")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',39,38,'',0,'ph_writefile("C:\PH\weather\Weather TEST-SORT.txt",8, "SORT TEST ")',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',40,38,'',0,'ph_writefile("C:\PH\weather\Weather TEST-SWAP.txt",9, "SWAP TEST ")',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',41,38,'',0,'ph_writefile("C:\PH\weather\Weather TEST-SORT-81-82.txt",9, "Test 81 ")',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',42,37,'',NULL,'********************* SYSTEM GLOBAL USAGE G79==CTR G80==BASE G81==-WA_TYPE/SUMMARY ii G88==WA_TYPE G89==MAX HIT G90==BASE G91==ALERT TEXT II G98==ALERT TEXT G99=>RETRY CNTR G100=ERR CNT SYSTEM LOCAL USAGE L1=>POS START L2==TEMP CTR L3==SAVE LAST POS L4==OLD TE TYPE L5==CUR DATA L6==TEMP DATA L7==TEMP DATA L8=>LAST TE CLASS L9=>POS END L10=>URL DATA SYSTEM TEMP USAGE T1==TEMP T2== T3==ERR RCVR T4==SAVED G91 T5==DATA T6==DATA T7==DATA T8==URGENT T9==MSG CTL T10=MSG CLASS *********************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',43,26,'',NULL,'SET_PARAMETERS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',44,38,'',0,'IF (ph_getvar_n(3,99) = 0 AND ph_getvar_n(1,1) <> 8, ph_setglobal_a("WA_CLASS",ph_getvar_n(1,1)),1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',45,15,'[LOCAL4]',NULL,'ph_getglobal_s("WA_TYPE")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',46,15,'[LOCAL8]',NULL,'ph_getvar_n(1,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',47,26,'',NULL,'RETRY_URL',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',48,15,'[LOCAL10]',NULL,'ph_geturl("http://alerts.weather.gov/cap/wwaatmget.php?x={WA_ZONE}")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',49,27,'',NULL,'if (mid(ph_getvar_s(1,10),1,7) = ''*ERROR*'',"NOP","GOOD")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',50,36,'',NULL,'"INTERNET ERROR"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',51,38,'',0,'ph_addtovar(2,3,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',52,27,'',NULL,'IF (ph_getvar_n(2,3)>2, "NOP", "RETRY_URL")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',53,38,'',0,'IF (ph_getvar_n(1,8)=8, 0, ph_setvar_a(2,3,0))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',54,27,'',NULL,'"ERROR_EXIT"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',55,26,'',NULL,'GOOD',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',56,37,'',NULL,'******************** TESTING ONLY ******************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',57,38,'',0,'ph_writefile("C:\PH\weather\Weather AlertsURL1.txt", 8 , ph_geturl("http://alerts.weather.gov/cap/wwaatmget.php?x={WA_ZONE}"))',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',58,37,'',NULL,'END OF TEST *******************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',59,38,'',0,' ph_setvar_s(1,1,"1")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',60,26,'',NULL,'RETRY',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',61,15,'[LOCAL1]',NULL,'posw( ph_getvar_s(1,10), "",ph_getvar_n(1,1))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',62,27,'',NULL,'if (ph_getvar_n(1,1) = 0, "NO_ALERT", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',63,37,'',NULL,'**** TEST FOR VAILD HTTP ********',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',64,15,'[TEMP1]',NULL,'POSW(ph_getvar_s(1,10,),"http://alerts.weather.gov/cap/wwacapget.php",ph_getvar_n(1,1,))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',65,27,'',NULL,'if (ph_getvar_n(2,1) = 0, "NO_ALERT", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',66,15,'[LOCAL1]',NULL,'posw( ph_getvar_s(1,10), "http", ph_getvar_n(1,1))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',67,36,'',NULL,'"HIT"',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',68,26,'',NULL,'SAVE_HIT',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',69,15,'[LOCAL3]',NULL,' ph_getvar_n(1,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',70,15,'[LOCAL9]',NULL,'posw( ph_getvar_s(1,10), "",ph_getvar_n(1,1) )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',71,15,'[TEMP1]',NULL,'ph_writefile("C:\PH\weather\WA_SAVE.txt", 9 , ph_getvar_s(1,10))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',72,27,'',NULL,'IF (ph_getvar_n(2,1) = 1, "NOP", "DIR_OK")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',73,38,'',0,'ph_createdirectory("C:\PH") + ph_createdirectory("C:\PH\WEATHER")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',74,27,'',NULL,'"SAVE_HIT"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',75,26,'',NULL,'DIR_OK',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',76,37,'',NULL,'(Get actual alert HTTP)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',77,15,'[LOCAL5]',NULL,'mid(ph_getvar_s(1,10), ph_getvar_n(1,1), ph_getvar_n(1,9) - ph_getvar_n(1,1))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',78,15,'[LOCAL2]',NULL,'0',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',79,26,'',NULL,'RETRY_HIT',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',80,15,'[LOCAL10]',NULL,'ph_geturl(ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',81,27,'',NULL,'IF (ph_getvar_s(1,10)="*ERROR* - TIMEOUT WHILE CONNECTING ","NOP","HIT_GOOD")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',82,38,'',0,'ph_addtovar(1,2,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',83,27,'',NULL,'IF (ph_getvar_n(1,2)<3, "RETRY_HIT","NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',84,27,'',NULL,'"ERROR_EXIT"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',85,26,'',NULL,'HIT_GOOD',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',86,15,'[LOCAL2]',NULL,'0',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',87,37,'',NULL,'TESTING **************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',88,37,'',NULL,'NEXT 2 LINES FOR TESTING ONLY (Get initial HTTP)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',89,38,'',0,'ph_writefile("C:\PH\weather\Weather Alerts2.txt", 9 , ph_getvar_s(1,10))',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',90,15,'[LOCAL10]',NULL,'ph_readfile("C:\PH\weather\Weather Alerts2.txt")',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',91,37,'',NULL,'END OF TEST ******************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',92,37,'',NULL,'GET TYPE',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',93,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,10),"" )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',94,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',95,15,'[LOCAL5]',NULL,'mid(ph_getvar_s(1,10), ph_getvar_n(1,1)+7, ph_getvar_n(1,9) - ph_getvar_n(1,1)-7 )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',96,37,'',NULL,'TEST FOR TYPE TO IGNORE',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',97,27,'',NULL,'if (ph_getvar_s(1,5) = " ", "NO_ALERT","NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',98,37,'',NULL,'******************* IGNORE LIST *************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',99,27,'',NULL,'if (ph_getvar_s(1,5) = "Red Flag Warning" OR ph_getvar_s(1,5) = "A RED FLAG" OR ph_getvar_s(1,5) = "Fire Weather Watch" OR ph_getvar_s(1,5) = "Dense Fog Advisory" OR ph_getvar_s(1,5) = "Flood Watch" OR ph_getvar_s(1,5) = "Flash Flood Watch" OR ph_getvar_s(1,5) = "Hydrologic Outlook" OR ph_getvar_s(1,5) = "Lake Wind Advisory", "CHECK_NEXT","NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',100,10,'WA_TYPE',NULL,'ph_getvar_s(1,5)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',101,38,'',0,'IF ("{WA_TYPE}" = "Tornado Warning" OR "{WA_TYPE}" = "Tornado Watch", ph_writefile("C:\PH\weather\Weather AlertsURL.txt", 8 , ph_getvar_s(1,10)),0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',102,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,10),"", ph_getvar_n(1,1) )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',103,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',104,15,'[LOCAL5]',NULL,'mid(ph_getvar_s(1,10), ph_getvar_n(1,1)+14, ph_getvar_n(1,9) - ph_getvar_n(1,1)-14 )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',105,37,'',NULL,'***** SAVE ALERT *****************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',106,36,'',NULL,'"ALERT"',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',107,38,'',0,'ph_addtovar(3,80,1) + ph_addtovar(3,90,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',108,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,90), ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',109,15,'[LOCAL10]',NULL,'ph_readfile("C:\PH\weather\WA_SAVE.txt")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',110,15,'[LOCAL1]',NULL,'ph_getvar_n(1,3)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',111,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',112,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',113,15,'[LOCAL5]',NULL,'mid(ph_getvar_s(1,10), ph_getvar_n(1,1)+9, ph_getvar_n(1,9) - ph_getvar_n(1,1)-9 )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',114,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,80),ph_getglobal_s("WA_TYPE") + " * " + ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',115,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,9))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',116,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',117,15,'[TEMP8]',NULL,'mid(ph_getvar_s(1,10), ph_getvar_n(1,1)+12, ph_getvar_n(1,9) - ph_getvar_n(1,1)-12 )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',118,26,'',NULL,'CHECK_NEXT',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',119,36,'',NULL,'"LOOKING FOR ADDITIONAL ALERTS"',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',120,27,'',NULL,'"RETRY"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',121,26,'',NULL,'NO_ALERT',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',122,36,'',NULL,'"any recorded"',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',123,27,'',NULL,'IF (ph_getvar_n(3,80) = 80, "NOP","PROCESS")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',124,26,'',NULL,'ERROR_EXIT',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',125,27,'',NULL,'IF (ph_getvar_s(1,8)< "5" , "RETRY_WA", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',126,27,'',NULL,'IF (ph_getvar_N(1,8)= 8, "NOP","DEFAULT_CHECK")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',127,27,'',NULL,'IF (ph_getvar_s(3,79)> "1" , "DEFAULT_CHECK", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',128,26,'',NULL,'RETRY_WA',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',129,38,'',0,'ph_addtovar(3,79,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',130,27,'',NULL,'if (ph_getvar_n(3,79) > 10, "DEFAULT_CHECK", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',131,36,'',NULL,'"CHECK WEATHER RETRY 10 SECONDS"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',132,31,'',NULL,'10',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',133,27,'',NULL,'"RETRY_URL"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',134,26,'',NULL,'DEFAULT_CHECK',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',135,38,'',0,'ph_createtimedevent1("CHECKING_WEATHER_ALERT",1,0,0,1,10,DATETIME(TODAY(),NOW()),2,''ph_macroparm("WEATHER_ALERT",9,10,0,0,0)'',"1")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',136,15,'[GLOBAL79]',NULL,'0',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',137,36,'',NULL,'"NO ALERTS FOUND IN YOUR ZONE" + " {WA_ZONE}"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',138,10,'WA_TYPE',NULL,'"NO ALERTS"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',139,27,'',NULL,'"EXIT"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',140,26,'',NULL,'PROCESS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',141,15,'[GLOBAL79]',NULL,'0',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',142,15,'[GLOBAL89]',NULL,'ph_getvar_S(3,80)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',143,26,'',NULL,'REORDER',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',144,38,'',0,'ph_setvar_a(3,80,80)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',145,38,'',0,'ph_setvar_a(3,90,90)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',146,37,'',NULL,'PROCESS SAVED ALERTS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',147,26,'',NULL,'REPROCESS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',148,38,'',0,'ph_addtovar(3,80,1) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',149,38,'',0,'ph_addtovar(3,90,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',150,27,'',NULL,'IF (ph_getvar_N(3,80) > ph_getvar_N(3,89) , "PROCESS_ALL", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',151,36,'',NULL,'"SORTING"',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',152,37,'',NULL,'**************************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',153,37,'',NULL,'*******************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',154,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,ph_getvar_N(3,80)),"*",1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',155,15,'[LOCAL5]',NULL,'mid(ph_getvar_s(3,ph_getvar_n(3,80)),1,ph_getvar_n(1,9)-2)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',156,37,'',NULL,'********************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',157,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,81,),"*",1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',158,15,'[LOCAL6]',NULL,'mid(ph_getvar_s(3,81),1,ph_getvar_n(1,9)-2)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',159,37,'',NULL,'*******************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',160,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,82,),"*",1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',161,15,'[LOCAL7]',NULL,'mid(ph_getvar_s(3,82),1,ph_getvar_n(1,9)-2)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',162,38,'',0,'ph_writefile("C:\PH\weather\Weather TEST-SORT.txt",0, ph_getvar_n(3,80) + " " + ph_getvar_s(1,5) +" NEXT ")',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',163,38,'',0,'ph_writefile("C:\PH\weather\Weather TEST-SORT-81-82.txt",0, "T6=81 " + ph_getvar_s(1,6) +" NEXT ")',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',164,37,'',NULL,'********************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',165,27,'',NULL,'if (ph_getvar_s(1,5) = "Tornado Warning" OR ph_getvar_s(1,5) = "Tornado Watch" , "NOP","REPROCESS")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',166,27,'',NULL,'IF (ph_getvar_s(3,82) = "0", "REPROCESS","NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',167,27,'',NULL,'if (ph_getvar_s(1,6) = "Tornado Warning" , "SWAP82","NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',168,27,'',NULL,'if (ph_getvar_s(1,5) = ph_getvar_s(1,6), "SWAP82", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',169,27,'',NULL,'IF (ph_getvar_s(1,6) = "Tornado Watch" AND ph_getvar_s(1,5) = "Tornado Watch", "SWAP82", "SWAP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',170,26,'',NULL,'SWAP',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',171,36,'',NULL,'"SWAP "',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',172,27,'',NULL,'iF (ph_getvar_n(3,89)> 81, "NOP", "REPROCESS")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',173,15,'[TEMP5]',NULL,'ph_getvar_s(3,81)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',174,15,'[GLOBAL81]',NULL,'ph_getvar_s(3,ph_getvar_N(3,80))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',175,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,80),ph_getvar_s(2,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',176,15,'[TEMP5]',NULL,'ph_getvar_s(3,91)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',177,15,'[GLOBAL91]',NULL,'ph_getvar_s(3,ph_getvar_N(3,90))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',178,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,90),ph_getvar_s(2,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',179,27,'',NULL,'"REPROCESS"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',180,26,'',NULL,'SWAP82',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',181,27,'',NULL,'if (ph_getvar_s(1,5) = ph_getvar_s(1,7), "REPROCESS", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',182,27,'',NULL,'if (ph_getvar_s(1,5) = "Tornado Warning" AND ph_getvar_s(1,7) = "Tornado Watch" , "REPROCESS","NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',183,15,'[TEMP5]',NULL,'ph_getvar_s(3,82)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',184,15,'[GLOBAL82]',NULL,'ph_getvar_s(3,ph_getvar_N(3,80))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',185,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,80),ph_getvar_s(2,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',186,15,'[TEMP5]',NULL,'ph_getvar_s(3,92)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',187,15,'[GLOBAL92]',NULL,'ph_getvar_s(3,ph_getvar_N(3,90))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',188,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,90),ph_getvar_s(2,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',189,27,'',NULL,'"REPROCESS"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',190,37,'',NULL,'**************************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',191,26,'',NULL,'PROCESS_ALL',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',192,38,'',0,'ph_writefile("C:\PH\weather\Weather TEST-PostSORT.txt",9, " 89= " + ph_getvar_s(3,89) + " 99= " + ph_getvar_s(3,99) + " 80= " + ph_getvar_s(3,80) + " 90= " + ph_getvar_s(3,90) + " 81= " + ph_getvar_s(3,81) + " 91= " + ph_getvar_S(3,91) + " 82= " + ph_getvar_s(3,82) + " 92= " + ph_getvar_s(3,92) + " 83= " + ph_getvar_S(3,83) + " 93= " + ph_getvar_s(3,93) + " 84= " + ph_getvar_S(3,84) + " 94= " + ph_getvar_s(3,94) )',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',193,15,'[GLOBAL80]',NULL,'80',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',194,15,'[GLOBAL90]',NULL,'90',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',195,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,81)," * ",1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',196,10,'WA_TYPE',NULL,'mid(ph_getvar_s(3,81),1,ph_getvar_n(1,9)-1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',197,26,'',NULL,'LOAD_ALERT',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',198,36,'',NULL,'"ALERT"',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',199,38,'',0,'ph_addtovar(3,80,1) + ph_addtovar(3,90,1) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',200,15,'[LOCAL5]',NULL,'ph_getvar_s(3,ph_getvar_N(3,80)) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',201,38,'',0,'ph_setvar_s(2,9,"SUMMARY")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',202,27,'',NULL,'"CLEANUP"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',203,26,'',NULL,'SUMMARY',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',204,27,'',NULL,'if (ph_fileexists("C:\PH\weather\WA_SUMMARY.txt") = 0, "NOP","APPEND_TYPE")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',205,38,'',0,'ph_writefile("C:\PH\weather\WA_SUMMARY.txt", 9 , ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',206,27,'',NULL,'"SAVE_8X"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',207,26,'',NULL,'APPEND_TYPE',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',208,38,'',0,'ph_writefile("C:\PH\weather\WA_SUMMARY.txt", 0, ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',209,26,'',NULL,'SAVE_8X',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',210,38,'',0,'ph_addtovar(3,80,1) + ph_addtovar(3,90,1) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',211,27,'',NULL,'IF (ph_getvar_n(3,80) > ph_getvar_n(3,89) ,"SAVE9X", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',212,15,'[LOCAL5]',NULL,'ph_getvar_s(3,ph_getvar_N(3,80)) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',213,27,'',NULL,'IF (ph_getvar_n(3,80)> 82, "GET_SUMMARY", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',214,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,82)," * ",1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',215,15,'[TEMP6]',NULL,'mid(ph_getvar_s(3,82),1,ph_getvar_n(1,9)-1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',216,38,'',0,'IF (ph_getvar_s(2,6)= "Tornado Watch", ph_setvar_s(2,9,"SUMMARY"), ph_setvar_s(2,9,"SUMMARY_RTN") )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',217,27,'',NULL,'"CLEANUP"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',218,26,'',NULL,'GET_SUMMARY',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',219,38,'',0,'ph_setvar_s(2,9,"SUMMARY_RTN")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',220,27,'',NULL,'"CLEANUP"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',221,26,'',NULL,'SUMMARY_RTN',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',222,27,'',NULL,'if (ph_fileexists("C:\PH\weather\WA_SUMMARY_ALL.txt") = 0, "NOP","APPEND_8X")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',223,38,'',0,'ph_writefile("C:\PH\weather\WA_SUMMARY_ALL.txt", 8 , ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',224,27,'',NULL,'"SAVE_8X"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',225,26,'',NULL,'APPEND_8X',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',226,38,'',0,'ph_writefile("C:\PH\weather\WA_SUMMARY_ALL.txt", 0 , " NEXT ALERT " + ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',227,27,'',NULL,'"SAVE_8X"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',228,26,'',NULL,'SAVE9X',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',229,15,'[GLOBAL80]',NULL,'80',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',230,15,'[GLOBAL90]',NULL,'90',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',231,26,'',NULL,'SAVE DESCRIPTION',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',232,38,'',0,'ph_addtovar(3,80,1) + ph_addtovar(3,90,1) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',233,36,'',NULL,'"SAVE DESCRIPTION"',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',234,15,'[LOCAL5]',NULL,'ph_getvar_s(3,ph_getvar_N(3,90)) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',235,38,'',0,'ph_setvar_s(2,9,"DATA_RTN")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',236,37,'',NULL,'************ CLEANUP SOURCE FOR TTS *************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',237,26,'',NULL,'CLEANUP',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',238,38,'',0,'ph_usermessage("CLEANUP RTN - " + ph_getvar_s(2,9))',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',239,15,'[LOCAL5]',NULL,'ph_replaceallregex( "~129", " ", "[LOCAL5]",3 )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',240,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "<br>", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',241,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " TO ", " to " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',242,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "...", ". " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',243,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " .", ". " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',244,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "<:", " " ) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',245,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "*", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',246,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "&", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',247,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "NM", "natical miles " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',248,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "WINDS", "whends" )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',249,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "WIND", "whend" )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',250,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "MPH", " miles per hour" )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',251,37,'',NULL,'******* TIME ZONE FOR TTS **********',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',252,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " EST", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',253,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " EDT", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',254,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "CST", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',255,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "CDT", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',256,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "MST", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',257,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "MDT", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',258,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "PST", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',259,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "PDT", " " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',260,37,'',NULL,'********************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',261,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " KT ", " knots " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',262,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " KT. ", " knots " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',263,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " ft ", " feet " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',264,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " ne ", " North East" )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',265,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " nw ", " North West" )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',266,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " s ", " south " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',267,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " sw ", " South West" )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',268,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " UP ", " up " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',269,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " OF ", " of " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',270,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " AT ", " at " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',271,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " AS ", " as " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',272,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", ".", ". " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',273,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " MB ", " millibars " )',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',274,15,'[LOCAL5]',NULL,'lower(ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',275,36,'',NULL,'ph_getvar_s(2,9)',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',276,27,'',NULL,'ph_getvar_s(2,9)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',277,37,'',NULL,'*********** END OF CLEANUP **********************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',278,26,'',NULL,'DATA_RTN',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',279,27,'',NULL,'if (ph_fileexists("c:\PH\weather\Weather Alert.txt ") = 0, "NEW_FILE","APPEND")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',280,26,'',NULL,'NEW_FILE',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',281,38,'',0,'ph_writefile("c:\PH\weather\Weather Alert.txt ", 9 , "WEATHER ALERT. " + ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',282,27,'',NULL,'IF (ph_getvar_n(3,80) >= ph_getvar_n(3,89) , "FREQUENCY", "SAVE DESCRIPTION")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',283,26,'',NULL,'APPEND',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',284,38,'',0,'ph_writefile("c:\PH\weather\Weather Alert.txt ", 0, ". ---------- NEXT ALERT ----- " + ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',285,27,'',NULL,'IF (ph_getvar_n(3,80) = ph_getvar_n(3,89) , "FREQUENCY", "SAVE DESCRIPTION")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',286,26,'',NULL,'FREQUENCY',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',287,38,'',0,'ph_setvar_s(1,9,"CLASS_9")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',288,37,'',NULL,'EVENT TIME BASED ON CLASS SETTING',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',289,38,'',0,'if (ph_getglobal_s("WA_TYPE") = "Tornado Warning" ,ph_setvar_s(1,9,"CLASS_1"),0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',290,38,'',0,'if (ph_getglobal_s("WA_TYPE") = "Tornado Watch" ,ph_setvar_s(1,9,"CLASS_2"),0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',291,38,'',0,'if (ph_getglobal_s("WA_TYPE") = "Severe Thunderstorm Warning" ,ph_setvar_s(1,9,"CLASS_3"),0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',292,38,'',0,'if (ph_getglobal_s("WA_TYPE") = "Severe Thunderstorm Watch" ,ph_setvar_s(1,9,"CLASS_4"),0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',293,38,'',0,'if (ph_getglobal_s("WA_TYPE") = "Severe Weather Statement" ,ph_setvar_s(1,9,"CLASS_5"),0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',294,38,'',0,'ph_writefile("c:\PH\weather\WA_TYPE.txt",8, ph_getglobal_s("WA_TYPE"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',295,38,'',0,'ph_writefile("c:\PH\weather\Weather Alert_LAST.txt",8 ,ph_getvar_s(1,5))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',296,15,'[LOCAL10]',NULL,'mid(ph_getvar_s(1,9),7)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',297,27,'',NULL,'if (ph_getvar_S(1,10) > "1" and ph_getvar_n(1,8) =1 AND ph_getvar_n(3,99) < 4, "RETRY_CLASS","NOP" ) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',298,27,'',NULL,'if (ph_getvar_S(1,10) > "2" and ph_getvar_n(1,8) =2 AND ph_getvar_n(3,99) < 4, "RETRY_CLASS","NOP" ) ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',299,15,'[GLOBAL99]',NULL,'0',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',300,27,'',NULL,'ph_getvar_s(1,9)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',301,26,'',NULL,'RETRY_CLASS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',302,38,'',0,'ph_addtovar(3,99,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',303,36,'',NULL,'"RETRY " + ph_getvar_n(3,99)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',304,15,'[LOCAL9]',NULL,'"CLASS_" + ph_getvar_s(1,8)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',305,10,'WA_TYPE',NULL,'ph_getvar_s(1,4)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',306,15,'[GLOBAL91]',NULL,'ph_getvar_s(2,4)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',307,27,'',NULL,'ph_getvar_s(1,9)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',308,37,'',NULL,'***************************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',309,26,'',NULL,'SETUP_BROADCAST',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',310,37,'',NULL,'************** CREATE TIMED EVENT ********************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',311,37,'',NULL,'CLASS PROCESSING',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',312,26,'',NULL,'CLASS_1',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',313,38,'',0,'IF (ph_getvar_n(1,8)=1 AND ph_getvar_n(3,100) < 6, ph_addtovar(3,100,1),ph_setvar_s(1,8,"1")+ ph_setvar_s(3,100,"0"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',314,38,'',0,'ph_createtimedevent1("TORNADO_WARNING_WEATHER_ALERT",1,0,0,1,1,DATETIME(TODAY(),NOW()),2,''ph_macroparm("WEATHER_ALERT",1,6,0,0,0)'',"1")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',315,15,'[TEMP10]',NULL,'1',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',316,27,'',NULL,'"BROADCAST"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',317,26,'',NULL,'CLASS_2',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',318,38,'',0,'IF (ph_getvar_n(1,8)=2 AND ph_getvar_n(3,100) < 10, ph_addtovar(3,100,1),ph_setvar_s(1,8,"2")+ ph_setvar_s(3,100,"0"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',319,38,'',0,'ph_createtimedevent1("TORNADO_WATCH_WEATHER_ALERT",1,0,0,1,1,DATETIME(TODAY(),NOW()),2,''ph_macroparm("WEATHER_ALERT",2,10,0,0,0)'',"1")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',320,15,'[TEMP10]',NULL,'2',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',321,27,'',NULL,'"BROADCAST"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',322,26,'',NULL,'CLASS_3',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',323,38,'',0,'IF (ph_getvar_n(1,8)=3 AND ph_getvar_n(3,100) < 10, ph_addtovar(3,100,1),ph_setvar_s(1,8,"3")+ ph_setvar_s(3,100,"0"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',324,38,'',0,'ph_createtimedevent1(" Severe_Thunderstorm_Warning_WEATHER_ALERT",1,0,0,1,2,DATETIME(TODAY(),NOW()),2,''ph_macroparm("WEATHER_ALERT",3,20,0,0,0)'',"1")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',325,15,'[TEMP10]',NULL,'3',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',326,27,'',NULL,'"BROADCAST"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',327,26,'',NULL,'CLASS_4',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',328,38,'',0,'IF (ph_getvar_n(3,100) < 6 AND ph_getglobal_s("WA_TYPE") = ph_getvar_s(1,4) AND ph_getvar_s(2,2) = "0", ph_usermessage("ALERT " + "{WA_TYPE}" + " NO CHANGE") + ph_setvar_a(2,9,"EXIT"),ph_setvar_a(3,100,0) + ph_setvar_a(2,9,"STD_MSG"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',329,38,'',0,'ph_createtimedevent1("Special_Weather_Warning_WEATHER_ALERT",1,0,0,1,5,DATETIME(TODAY(),NOW()),2,''ph_macroparm("WEATHER_ALERT",4,30,0,0,0)'',"1")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',330,15,'[TEMP10]',NULL,'4',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',331,27,'',NULL,'"BROADCAST"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',332,26,'',NULL,'CLASS_5',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',333,38,'',0,'IF (ph_getvar_n(1,8)=5 AND ph_getvar_n(3,100) < 6, ph_addtovar(3,100,1),ph_setvar_s(1,8,"5")+ ph_setvar_s(3,100,"0"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',334,38,'',0,'ph_createtimedevent1("SEVERE_WEATHER_ALERT",1,0,0,1,5,DATETIME(TODAY(),NOW()),2,''ph_macroparm("WEATHER_ALERT",5,30,0,0,0)'',"1")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',335,15,'[TEMP10]',NULL,'5',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',336,27,'',NULL,'"BROADCAST"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',337,26,'',NULL,'CLASS_9',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',338,36,'',NULL,'"COUNT " + ph_getvar_N(3,100)',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',339,38,'',0,'IF (ph_getvar_n(1,8)=9 AND ph_getvar_n(3,100) < 6, ph_addtovar(3,100,1),ph_setvar_s(1,8,"9")+ ph_setvar_s(3,100,"0"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',340,38,'',0,'ph_createtimedevent1(ph_getglobal_s("WA_TYPE")+"_WEATHER_ALERT",1,0,0,1,10,DATETIME(TODAY(),NOW()),2,''ph_macroparm("WEATHER_ALERT",9,60,0,0,0)'',"1")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',341,15,'[TEMP10]',NULL,'9',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',342,27,'',NULL,'"BROADCAST"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',343,37,'',NULL,'******************** FRQUENCY **********************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',344,37,'',NULL,'CLASS/FREQ/ANNOUNCE',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',345,37,'',NULL,' 1 1 6',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',346,37,'',NULL,' 2 1 10',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',347,37,'',NULL,' 3 2 20',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',348,37,'',NULL,' 4 5 10 ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',349,37,'',NULL,' 5 5 30',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',350,37,'',NULL,' 8 1 for retry',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',351,37,'',NULL,' 9 10 60 ',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',352,37,'',NULL,'**********************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',353,26,'',NULL,'BROADCAST',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',354,36,'',NULL,'"BROADCAST"',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',355,37,'',NULL,'*************** CHECK FOR CHANGE **************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',356,27,'',NULL,'IF (ph_getvar_n(2,10) = 1, "NOP", "CHANGE_TEST")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',357,15,'[LOCAL6]',NULL,'"[GLOBAL91]"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',358,15,'[LOCAL7]',NULL,'"[TEMP4]"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',359,27,'',NULL,'"CONT1"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',360,26,'',NULL,'CHANGE_TEST',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',361,15,'[LOCAL6]',NULL,'ph_readfile("c:\PH\weather\Weather Alert.txt")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',362,15,'[LOCAL7]',NULL,'ph_readfile("c:\PH\weather\Weather Alert Old.txt")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',363,26,'',NULL,'CONT1',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',364,38,'',0,'IF ("[LOCAL6]" = "[LOCAL7]", ph_setvar_s(2,2,"0"), ph_setvar_s(2,2,"1"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',365,38,'',0,'IF ("[LOCAL4]" <> "{WA_TYPE}" AND "[TEMP2]" = "1",ph_writefile("c:\PH\weather\RESET_TYPE.txt", 8, ph_getvar_s(1,4) + " is currently not active ") + ph_setvar_s(2,2,"2"),1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',366,38,'',0,'IF ("[LOCAL4]" <> "{WA_TYPE}" AND "[LOCAL4]" = "Tornado Warning", ph_writefile("c:\PH\weather\RESET_TYPE.txt", 8, ph_getvar_s(1,4) + " is currently not active ") + ph_setvar_s(2,2,"2"),1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',367,38,'',0,'IF ("[LOCAL4]" <> "{WA_TYPE}" AND "[LOCAL4]" = "Tornado Watch" AND "{WA_TYPE}" <> "Tornado Warning" , ph_writefile("c:\PH\weather\RESET_TYPE.txt", 8, ph_getvar_s(1,4) + " is currently not active ") + ph_setvar_s(2,2,"2") ,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',368,38,'',0,'IF ("[LOCAL4]" <> "{WA_TYPE}" AND "[LOCAL4]" = "Tornado Warning" AND "{WA_TYPE}" <> "Tornado Watch",ph_writefile("c:\PH\weather\RESET_TYPE.txt", 8, ph_getvar_s(1,4) + " is currently not active ") + ph_setvar_s(2,2,"2") ,1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',369,37,'',NULL,'**************** SILIENT TTS AT NIGHT **************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',370,27,'',NULL,'IF ( NOW() > 22:00:00 OR NOW() < 07:00:00 , "EXIT", "NOP")',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',371,37,'',NULL,'***********************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',372,27,'',NULL,'IF (ph_getvar_n(2,10)=1 ,"NOP", "CL1BYPASS")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',373,36,'',NULL,'"CLASS 1 MSG"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',374,38,'',0,'IF (ph_getvar_n(3,100) <6 AND ph_getglobal_s("WA_TYPE") = ph_getvar_s(1,4) AND ph_getvar_s(2,2) = "0", ph_usermessage("ALERT " + "{WA_TYPE}" + " NO CHANGE") + ph_setvar_a(1,9,"EXIT"),ph_setvar_a(3,100,0) + ph_setvar_a(1,9,"CLEANUP") + ph_setvar_a(2,9,"TORNWARN_MSG")+ ph_setvar_s(1,5,ph_getvar_s(3,91)))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',375,27,'',NULL,'ph_getvar_s(1,9)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',376,26,'',NULL,'CL1BYPASS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',377,27,'',NULL,'IF (ph_getvar_n(2,10)=2 ,"NOP", "CL2BYPASS")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',378,36,'',NULL,'"CLASS 2 MSG"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',379,38,'',0,'IF (ph_getvar_n(3,100) < 10 AND ph_getglobal_s("WA_TYPE") = ph_getvar_s(1,4) AND ph_getvar_s(2,2) = "0", ph_usermessage("ALERT " + "{WA_TYPE}" + " NO CHANGE") + ph_setvar_a(1,9,"EXIT"),ph_setvar_a(3,100,0) + ph_setvar_a(1,9,"CLEANUP") + ph_setvar_a(2,9,"TORNWARN_MSG")+ ph_setvar_s(1,5,ph_getvar_s(3,91)))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',380,27,'',NULL,'ph_getvar_s(1,9)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',381,26,'',NULL,'CL2BYPASS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',382,27,'',NULL,'IF (ph_getvar_n(2,10)=3 ,"NOP", "CL3BYPASS")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',383,36,'',NULL,'"CLASS 3 MSG"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',384,38,'',0,'IF (ph_getvar_n(3,100) < 10 AND ph_getglobal_s("WA_TYPE") = ph_getvar_s(1,4) AND ph_getvar_s(2,2) = "0", ph_usermessage("ALERT " + "{WA_TYPE}" + " NO CHANGE") + ph_setvar_a(2,9,"EXIT"),ph_setvar_a(3,100,0) + ph_setvar_a(2,9,"SUMMARY1"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',385,27,'',NULL,'ph_getvar_s(2,9)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',386,26,'',NULL,'CL3BYPASS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',387,27,'',NULL,'IF (ph_getvar_n(2,10)=4 ,"NOP", "CL4BYPASS")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',388,36,'',NULL,'"CLASS 4 MSG"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',389,38,'',0,'IF (ph_getvar_n(3,100) < 6 AND ph_getglobal_s("WA_TYPE") = ph_getvar_s(1,4) AND ph_getvar_s(2,2) = "0", ph_setvar_a(2,9,"EXIT"),ph_setvar_a(3,100,0) + ph_setvar_a(2,9,"STD_MSG"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',390,27,'',NULL,'ph_getvar_s(2,9)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',391,26,'',NULL,'CL4BYPASS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',392,27,'',NULL,'IF (ph_getvar_n(2,10)=5 ,"NOP", "CL5BYPASS")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',393,36,'',NULL,'"CLASS 5 MSG"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',394,38,'',0,'IF (ph_getvar_n(3,100) < 6 AND ph_getglobal_s("WA_TYPE") = ph_getvar_s(1,4) AND ph_getvar_s(2,2) = "0", ph_usermessage("ALERT " + "{WA_TYPE}" + " NO CHANGE") + ph_setvar_a(2,9,"EXIT"),ph_setvar_a(3,100,0) + ph_setvar_a(2,9,"STD_MSG"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',395,27,'',NULL,'ph_getvar_s(2,9)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',396,26,'',NULL,'CL5BYPASS',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',397,27,'',NULL,'IF (ph_getvar_N(2,10) <9 AND ph_getvar_N(3,100) =0, "SUMMARY1", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',398,27,'',NULL,'IF (ph_getvar_N(2,10) <9 AND ph_getvar_N(3,100) >0, "TYPE_ONLY", "NOP")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',399,36,'',NULL,'"CLASS 9 MSG"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',400,27,'',NULL,'IF (ph_getvar_n(2,10)=9 AND ph_getvar_n(3,100) < 6 AND ph_getglobal_s("WA_TYPE") = ph_getvar_s(1,4) AND ph_getvar_s(2,2) = "0", ph_usermessage("ALERT " + "{WA_TYPE}" + " NO CHANGE") + ph_setvar_a(2,9,"EXIT"),ph_setvar_a(3,100,0) + ph_setvar_a(2,9,"STD_MSG"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',401,27,'',NULL,'ph_getvar_s(2,9)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',402,37,'',NULL,'**************************************************************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',403,26,'',NULL,'TORNWARN_MSG',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',404,9,'',NULL,'ph_readfile("C:\PH\WEATHER\T_WARN.txt")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',405,9,'',NULL,'"[LOCAL5]"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',406,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',407,38,'',0,'ph_writefile("c:\PH\weather\T_WARN.txt", 8, ph_getvar_s(1,5)) + ph_ssrequest("192.168.1.106", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("W:\WEATHER\T_WARN.txt"))'') ',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',408,38,'',0,'ph_ssrequest("192.168.1.105", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("W:\WEATHER\T_WARN.txt"))'') ',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',409,27,'',NULL,'"EXIT"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',410,26,'',NULL,'STD_MSG',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',411,36,'',NULL,'"STD_MSG"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',412,38,'',0,'if (ph_getvar_n(2,2) = 2 AND ph_getvar_n(3,99) = 0, ph_tts(ph_readfile("c:\PH\WEATHER\RESET_TYPE.txt")),0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',413,38,'',0,'ph_tts(ph_readfile("c:\PH\WEATHER\WEATHER ALERT.txt"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',414,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',415,38,'',0,'ph_ssrequest("192.168.1.106", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("W:\WEATHER\WEATHER ALERT.txt"))'') ',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',416,38,'',0,'ph_ssrequest("192.168.1.105", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("W:\WEATHER\WEATHER ALERT.txt"))'') ',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',417,27,'',NULL,'"EXIT"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',418,26,'',NULL,'TYPE_ONLY',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',419,36,'',NULL,'"TYPE_ONLY"',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',420,9,'',NULL,'ph_getglobal_s("WA_TYPE")',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',421,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',422,38,'',0,'ph_ssrequest("192.168.1.106", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("W:\WEATHER\WA_TYPE.txt"))'')',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',423,38,'',0,'ph_ssrequest("192.168.1.105", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("W:\WEATHER\WA_TYPE.txt"))'')',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',424,27,'',NULL,'"EXIT"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',425,26,'',NULL,'SUMMARY1',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',426,36,'',NULL,'"SUMMARY1"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',427,38,'',0,'if (ph_getvar_n(2,2) = 2 AND ph_getvar_n(3,99) = 0, ph_tts(ph_readfile("c:\PH\WEATHER\RESET_TYPE.txt")),0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',428,38,'',0,'ph_tts(ph_readfile("c:\PH\WEATHER\WA_SUMMARY.txt"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',429,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',430,38,'',0,'ph_ssrequest("192.168.1.106", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("W:\WEATHER\WA_SUMMARY.txt"))'')',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',431,38,'',0,'ph_ssrequest("192.168.1.105", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("W:\WEATHER\WA_SUMMARY.txt"))'') ',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',432,27,'',NULL,'"EXIT"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',433,26,'',NULL,'SUMMARY_ALL',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',434,36,'',NULL,'"SUMMARY_ALL"',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',435,38,'',0,'if (ph_getvar_n(2,2) = 2 AND ph_getvar_n(3,99) = 0, ph_tts(ph_readfile("c:\PH\WEATHER\RESET_TYPE.txt")),0)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',436,38,'',0,'ph_tts(ph_readfile("c:\PH\WEATHER\WA_SUMMARY.txt") + ph_readfile("c:\PH\WEATHER\WA_SUMMARY_ALL.txt"))',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',437,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',438,38,'',0,'ph_ssrequest("192.168.1.106", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("c:\PH\WEATHER\WA_SUMMARY.txt") + ph_readfile("W:\WEATHER\WA_SUMMARY_ALL.txt"))'')',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',439,38,'',0,'ph_ssrequest("192.168.1.105", 8600, "chc", "XXXXX", "FORMULA", ''ph_tts(ph_readfile("W:\WEATHER\WA_SUMMARY.txt") + ph_readfile("W:\WEATHER\WA_SUMMARY_ALL.txt"))'')',1,''); insert into macrodetail values ('WEATHER_ALERT_21B',440,26,'',NULL,'EXIT',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',441,38,'',0,'IF ("[TEMP10]" = "1" ,ph_msgbox("Weather Alert","{WA_TYPE}",10),1)',0,''); insert into macrodetail values ('WEATHER_ALERT_21B',442,36,'',NULL,'"EXIT"',0,'');