insert into macroheader values ('WEATHER_ALERT','CHECK WEATHER',0,0,1); insert into macrodetail values ('WEATHER_ALERT',1,37,'',NULL,'Change History:',0,'',''); insert into macrodetail values ('WEATHER_ALERT',2,37,'',NULL,'5-6: Changed usermessage all classes',0,'',''); insert into macrodetail values ('WEATHER_ALERT',3,37,'',NULL,'5-6: Fixed msgbox format.',0,'',''); insert into macrodetail values ('WEATHER_ALERT',4,37,'',NULL,'5-8: Changed retry count to 4',0,'',''); insert into macrodetail values ('WEATHER_ALERT',5,37,'',NULL,'5-8: Fixed retry msg type to old',0,'',''); insert into macrodetail values ('WEATHER_ALERT',6,37,'',NULL,'5-9: Changed reset msg',0,'',''); insert into macrodetail values ('WEATHER_ALERT',7,37,'',NULL,'**************** 2.4 LOAD **************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',9,37,'',NULL,'*************************************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',11,37,'',NULL,'Create Globals that will be used by WA',0,'',''); insert into macrodetail values ('WEATHER_ALERT',12,27,'',NULL,'IF (ph_getglobal_s("WA_TYPE") = " " ,"NOP","BYPASS_TYPE")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',14,10,'WA_TYPE',NULL,'" "',0,'',''); insert into macrodetail values ('WEATHER_ALERT',15,26,'',NULL,'BYPASS_TYPE',0,'',''); insert into macrodetail values ('WEATHER_ALERT',16,27,'',NULL,'IF (ph_getglobal_s("WA_CLASS") = " " ,"NOP","BYPASS_CLASS")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',18,10,'WA_CLASS',NULL,'9',0,'',''); insert into macrodetail values ('WEATHER_ALERT',19,26,'',NULL,'BYPASS_CLASS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',22,27,'',NULL,'IF (ph_getglobal_s("WA_ZONE") = "X", "NOP","START")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',23,37,'',NULL,'Pick a state and zone code then plug it into the WA_ZONE global',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',25,38,'',0,'ph_windowstate(1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',27,16,'',NULL,'999',0,'',''); insert into macrodetail values ('WEATHER_ALERT',28,37,'',NULL,'**************************************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',29,26,'',NULL,'START',0,'',''); insert into macrodetail values ('WEATHER_ALERT',30,15,'[TEMP4]',NULL,'"[GLOBAL91]"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',32,38,'',0,'IF (ph_getvar_s(3,99) = " ", ph_setvar_a(3,99,0),1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',34,38,'',0,'ph_deletefile("c:\PH\weather\Weather Alert.txt")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',35,38,'',0,'ph_deletefile("C:\PH\weather\WA_TYPE.txt")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',36,38,'',0,'ph_deletefile("C:\PH\weather\WA_SUMMARY.txt")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',37,38,'',0,'ph_deletefile("c:\PH\weather\RESET_TYPE.txt")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',38,38,'',0,'ph_deletefile("C:\PH\weather\WA_SUMMARY_ALL.txt")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',39,38,'',0,'ph_writefile("C:\PH\weather\Weather TEST-SORT.txt",8, "SORT TEST ")',1,'',''); insert into macrodetail values ('WEATHER_ALERT',40,38,'',0,'ph_writefile("C:\PH\weather\Weather TEST-SWAP.txt",9, "SWAP TEST ")',1,'',''); insert into macrodetail values ('WEATHER_ALERT',41,38,'',0,'ph_writefile("C:\PH\weather\Weather TEST-SORT-81-82.txt",9, "Test 81 ")',1,'',''); insert into macrodetail values ('WEATHER_ALERT',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',43,26,'',NULL,'SET_PARAMETERS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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,'','LAST CLASS'); insert into macrodetail values ('WEATHER_ALERT',45,15,'[LOCAL4]',NULL,'ph_getglobal_s("WA_TYPE")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',46,15,'[LOCAL8]',NULL,'ph_getvar_n(1,1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',47,26,'',NULL,'RETRY_URL',0,'',''); insert into macrodetail values ('WEATHER_ALERT',48,15,'[LOCAL10]',NULL,'ph_geturl("http://alerts.weather.gov/cap/wwaatmget.php?x={WA_ZONE}")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',49,27,'',NULL,'if (mid(ph_getvar_s(1,10),1,7) = ''*ERROR*'',"NOP","GOOD")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',50,36,'',NULL,'"INTERNET ERROR"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',51,38,'',0,'ph_addtovar(2,3,1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',52,27,'',NULL,'IF (ph_getvar_n(2,3)>2, "NOP", "RETRY_URL")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',53,38,'',0,'IF (ph_getvar_n(1,8)=8, 0, ph_setvar_a(2,3,0))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',54,27,'',NULL,'"ERROR_EXIT"',0,'','EXIT'); insert into macrodetail values ('WEATHER_ALERT',55,26,'',NULL,'GOOD',0,'',''); insert into macrodetail values ('WEATHER_ALERT',56,37,'',NULL,'******************** TESTING ONLY ******************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',58,37,'',NULL,'END OF TEST *******************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',59,38,'',0,' ph_setvar_s(1,1,"1")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',60,26,'',NULL,'RETRY',0,'',''); insert into macrodetail values ('WEATHER_ALERT',61,15,'[LOCAL1]',NULL,'posw( ph_getvar_s(1,10), "",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',62,27,'',NULL,'if (ph_getvar_n(1,1) = 0, "NO_ALERT", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',63,37,'',NULL,'**** TEST FOR VAILD HTTP ********',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',65,27,'',NULL,'if (ph_getvar_n(2,1) = 0, "NO_ALERT", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',66,15,'[LOCAL1]',NULL,'posw( ph_getvar_s(1,10), "http", ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',67,36,'',NULL,'"HIT"',1,'',''); insert into macrodetail values ('WEATHER_ALERT',68,26,'',NULL,'SAVE_HIT',0,'',''); insert into macrodetail values ('WEATHER_ALERT',69,15,'[LOCAL3]',NULL,' ph_getvar_n(1,1)',0,'','Save hit'); insert into macrodetail values ('WEATHER_ALERT',70,15,'[LOCAL9]',NULL,'posw( ph_getvar_s(1,10), "",ph_getvar_n(1,1) )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',71,15,'[TEMP1]',NULL,'ph_writefile("C:\PH\weather\WA_SAVE.txt", 9 , ph_getvar_s(1,10))',0,'','SAVE INPUT'); insert into macrodetail values ('WEATHER_ALERT',72,27,'',NULL,'IF (ph_getvar_n(2,1) = 1, "NOP", "DIR_OK")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',73,38,'',0,'ph_createdirectory("C:\PH") + ph_createdirectory("C:\PH\WEATHER")',0,'','CREATE PH\WEATHER'); insert into macrodetail values ('WEATHER_ALERT',74,27,'',NULL,'"SAVE_HIT"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',75,26,'',NULL,'DIR_OK',0,'',''); insert into macrodetail values ('WEATHER_ALERT',76,37,'',NULL,'(Get actual alert HTTP)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',78,15,'[LOCAL2]',NULL,'0',0,'',''); insert into macrodetail values ('WEATHER_ALERT',79,26,'',NULL,'RETRY_HIT',0,'',''); insert into macrodetail values ('WEATHER_ALERT',80,15,'[LOCAL10]',NULL,'ph_geturl(ph_getvar_s(1,5))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',81,27,'',NULL,'IF (ph_getvar_s(1,10)="*ERROR* - TIMEOUT WHILE CONNECTING ","NOP","HIT_GOOD")',0,'','TEST FOR ERROR'); insert into macrodetail values ('WEATHER_ALERT',82,38,'',0,'ph_addtovar(1,2,1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',83,27,'',NULL,'IF (ph_getvar_n(1,2)<3, "RETRY_HIT","NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',84,27,'',NULL,'"ERROR_EXIT"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',85,26,'',NULL,'HIT_GOOD',0,'',''); insert into macrodetail values ('WEATHER_ALERT',86,15,'[LOCAL2]',NULL,'0',0,'',''); insert into macrodetail values ('WEATHER_ALERT',87,37,'',NULL,'TESTING **************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',88,37,'',NULL,'NEXT 2 LINES FOR TESTING ONLY (Get initial HTTP)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',89,38,'',0,'ph_writefile("C:\PH\weather\Weather Alerts2.txt", 9 , ph_getvar_s(1,10))',1,'',''); insert into macrodetail values ('WEATHER_ALERT',90,15,'[LOCAL10]',NULL,'ph_readfile("C:\PH\weather\Weather Alerts2.txt")',1,'',''); insert into macrodetail values ('WEATHER_ALERT',91,37,'',NULL,'END OF TEST ******************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',92,37,'',NULL,'GET TYPE',0,'',''); insert into macrodetail values ('WEATHER_ALERT',93,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,10),"" )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',94,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',96,37,'',NULL,'TEST FOR TYPE TO IGNORE',0,'',''); insert into macrodetail values ('WEATHER_ALERT',97,27,'',NULL,'if (ph_getvar_s(1,5) = " ", "NO_ALERT","NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',98,37,'',NULL,'******************* IGNORE LIST *************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',100,10,'WA_TYPE',NULL,'ph_getvar_s(1,5)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',102,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,10),"", ph_getvar_n(1,1) )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',103,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',105,37,'',NULL,'***** SAVE ALERT *****************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',106,36,'',NULL,'"ALERT"',1,'',''); insert into macrodetail values ('WEATHER_ALERT',107,38,'',0,'ph_addtovar(3,80,1) + ph_addtovar(3,90,1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',108,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,90), ph_getvar_s(1,5))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',109,15,'[LOCAL10]',NULL,'ph_readfile("C:\PH\weather\WA_SAVE.txt")',0,'','Restore File'); insert into macrodetail values ('WEATHER_ALERT',110,15,'[LOCAL1]',NULL,'ph_getvar_n(1,3)',0,'','Restore POS'); insert into macrodetail values ('WEATHER_ALERT',111,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',112,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',115,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,9))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',116,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,10),"",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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,'','Urgency'); insert into macrodetail values ('WEATHER_ALERT',118,26,'',NULL,'CHECK_NEXT',0,'',''); insert into macrodetail values ('WEATHER_ALERT',119,36,'',NULL,'"LOOKING FOR ADDITIONAL ALERTS"',1,'',''); insert into macrodetail values ('WEATHER_ALERT',120,27,'',NULL,'"RETRY"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',121,26,'',NULL,'NO_ALERT',0,'',''); insert into macrodetail values ('WEATHER_ALERT',122,36,'',NULL,'"any recorded"',1,'',''); insert into macrodetail values ('WEATHER_ALERT',123,27,'',NULL,'IF (ph_getvar_n(3,80) = 80, "NOP","PROCESS")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',124,26,'',NULL,'ERROR_EXIT',0,'','THIS MAY BE NORMAL'); insert into macrodetail values ('WEATHER_ALERT',125,27,'',NULL,'IF (ph_getvar_s(1,8)< "5" , "RETRY_WA", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',126,27,'',NULL,'IF (ph_getvar_N(1,8)= 8, "NOP","DEFAULT_CHECK")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',127,27,'',NULL,'IF (ph_getvar_s(3,79)> "1" , "DEFAULT_CHECK", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',128,26,'',NULL,'RETRY_WA',0,'',''); insert into macrodetail values ('WEATHER_ALERT',129,38,'',0,'ph_addtovar(3,79,1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',130,27,'',NULL,'if (ph_getvar_n(3,79) > 10,"DEFAULT_CHECK", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',131,36,'',NULL,'"CHECK WEATHER RETRY 10 SECONDS"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',132,31,'',NULL,'10',0,'',''); insert into macrodetail values ('WEATHER_ALERT',133,27,'',NULL,'"RETRY_URL"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',134,26,'',NULL,'DEFAULT_CHECK',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',136,15,'[GLOBAL79]',NULL,'0',0,'',''); insert into macrodetail values ('WEATHER_ALERT',137,36,'',NULL,'"NO ALERTS FOUND IN YOUR ZONE" + " {WA_ZONE}"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',138,10,'WA_TYPE',NULL,'"NO ALERTS"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',139,27,'',NULL,'"EXIT"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',140,26,'',NULL,'PROCESS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',141,15,'[GLOBAL79]',NULL,'0',0,'','RESET ERR CNT'); insert into macrodetail values ('WEATHER_ALERT',142,15,'[GLOBAL89]',NULL,'ph_getvar_S(3,80)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',143,26,'',NULL,'REORDER',0,'',''); insert into macrodetail values ('WEATHER_ALERT',144,38,'',0,'ph_setvar_a(3,80,80)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',145,38,'',0,'ph_setvar_a(3,90,90)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',146,37,'',NULL,'PROCESS SAVED ALERTS',0,'','REORDER'); insert into macrodetail values ('WEATHER_ALERT',147,26,'',NULL,'REPROCESS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',148,38,'',0,'ph_addtovar(3,80,1) ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',149,38,'',0,'ph_addtovar(3,90,1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',150,27,'',NULL,'IF (ph_getvar_N(3,80) > ph_getvar_N(3,89) , "PROCESS_ALL", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',151,36,'',NULL,'"SORTING"',1,'',''); insert into macrodetail values ('WEATHER_ALERT',152,37,'',NULL,'**************************************************************',0,'','PROCESS TYPE AND SWAP IF CRITICAL'); insert into macrodetail values ('WEATHER_ALERT',153,37,'',NULL,'*******************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',154,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,ph_getvar_N(3,80)),"*",1)',0,'','LOAD CURRENT 8X'); insert into macrodetail values ('WEATHER_ALERT',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',156,37,'',NULL,'********************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',157,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,81,),"*",1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',158,15,'[LOCAL6]',NULL,'mid(ph_getvar_s(3,81),1,ph_getvar_n(1,9)-2)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',159,37,'',NULL,'*******************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',160,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,82,),"*",1)',0,'','LOAD 82'); insert into macrodetail values ('WEATHER_ALERT',161,15,'[LOCAL7]',NULL,'mid(ph_getvar_s(3,82),1,ph_getvar_n(1,9)-2)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',164,37,'',NULL,'********************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',165,27,'',NULL,'if (ph_getvar_s(1,5) = "Tornado Warning" OR ph_getvar_s(1,5) = "Tornado Watch" , "NOP","REPROCESS")',0,'','TORNADO ALERT?'); insert into macrodetail values ('WEATHER_ALERT',166,27,'',NULL,'IF (ph_getvar_s(3,82) = "0", "REPROCESS","NOP")',0,'','NO SWAPING'); insert into macrodetail values ('WEATHER_ALERT',167,27,'',NULL,'if (ph_getvar_s(1,6) = "Tornado Warning" , "SWAP82","NOP")',0,'','81 = T.WARN?'); insert into macrodetail values ('WEATHER_ALERT',168,27,'',NULL,'if (ph_getvar_s(1,5) = ph_getvar_s(1,6), "SWAP82", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',170,26,'',NULL,'SWAP',0,'',''); insert into macrodetail values ('WEATHER_ALERT',171,36,'',NULL,'"SWAP "',1,'',''); insert into macrodetail values ('WEATHER_ALERT',172,27,'',NULL,'iF (ph_getvar_n(3,89)> 81, "NOP", "REPROCESS")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',173,15,'[TEMP5]',NULL,'ph_getvar_s(3,81)',0,'','SAVE CURRENT 81'); insert into macrodetail values ('WEATHER_ALERT',174,15,'[GLOBAL81]',NULL,'ph_getvar_s(3,ph_getvar_N(3,80))',0,'','load 81'); insert into macrodetail values ('WEATHER_ALERT',175,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,80),ph_getvar_s(2,5))',0,'','replace 8x with old 81'); insert into macrodetail values ('WEATHER_ALERT',176,15,'[TEMP5]',NULL,'ph_getvar_s(3,91)',0,'','SAVE CURRENT 91'); insert into macrodetail values ('WEATHER_ALERT',177,15,'[GLOBAL91]',NULL,'ph_getvar_s(3,ph_getvar_N(3,90))',0,'','load 91'); insert into macrodetail values ('WEATHER_ALERT',178,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,90),ph_getvar_s(2,5))',0,'','replace 9x with old 91'); insert into macrodetail values ('WEATHER_ALERT',179,27,'',NULL,'"REPROCESS"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',180,26,'',NULL,'SWAP82',0,'',''); insert into macrodetail values ('WEATHER_ALERT',181,27,'',NULL,'if (ph_getvar_s(1,5) = ph_getvar_s(1,7), "REPROCESS", "NOP")',0,'','SAME ALERT?'); insert into macrodetail values ('WEATHER_ALERT',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',183,15,'[TEMP5]',NULL,'ph_getvar_s(3,82)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',184,15,'[GLOBAL82]',NULL,'ph_getvar_s(3,ph_getvar_N(3,80))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',185,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,80),ph_getvar_s(2,5))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',186,15,'[TEMP5]',NULL,'ph_getvar_s(3,92)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',187,15,'[GLOBAL92]',NULL,'ph_getvar_s(3,ph_getvar_N(3,90))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',188,38,'',0,'ph_setvar_s(3,ph_getvar_N(3,90),ph_getvar_s(2,5))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',189,27,'',NULL,'"REPROCESS"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',190,37,'',NULL,'**************************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',191,26,'',NULL,'PROCESS_ALL',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',193,15,'[GLOBAL80]',NULL,'80',0,'',''); insert into macrodetail values ('WEATHER_ALERT',194,15,'[GLOBAL90]',NULL,'90',0,'',''); insert into macrodetail values ('WEATHER_ALERT',195,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,81)," * ",1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',197,26,'',NULL,'LOAD_ALERT',0,'',''); insert into macrodetail values ('WEATHER_ALERT',198,36,'',NULL,'"ALERT"',1,'',''); insert into macrodetail values ('WEATHER_ALERT',199,38,'',0,'ph_addtovar(3,80,1) + ph_addtovar(3,90,1) ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',200,15,'[LOCAL5]',NULL,'ph_getvar_s(3,ph_getvar_N(3,80)) ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',201,38,'',0,'ph_setvar_s(2,9,"SUMMARY")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',202,27,'',NULL,'"CLEANUP"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',203,26,'',NULL,'SUMMARY',0,'',''); insert into macrodetail values ('WEATHER_ALERT',204,27,'',NULL,'if (ph_fileexists("C:\PH\weather\WA_SUMMARY.txt") = 0, "NOP","APPEND_TYPE")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',205,38,'',0,'ph_writefile("C:\PH\weather\WA_SUMMARY.txt", 9 , ph_getvar_s(1,5))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',206,27,'',NULL,'"SAVE_8X"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',207,26,'',NULL,'APPEND_TYPE',0,'',''); insert into macrodetail values ('WEATHER_ALERT',208,38,'',0,'ph_writefile("C:\PH\weather\WA_SUMMARY.txt", 0, ph_getvar_s(1,5))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',209,26,'',NULL,'SAVE_8X',0,'',''); insert into macrodetail values ('WEATHER_ALERT',210,38,'',0,'ph_addtovar(3,80,1) + ph_addtovar(3,90,1) ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',211,27,'',NULL,'IF (ph_getvar_n(3,80) > ph_getvar_n(3,89) ,"SAVE9X", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',212,15,'[LOCAL5]',NULL,'ph_getvar_s(3,ph_getvar_N(3,80)) ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',213,27,'',NULL,'IF (ph_getvar_n(3,80)> 82, "GET_SUMMARY", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',214,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(3,82)," * ",1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',215,15,'[TEMP6]',NULL,'mid(ph_getvar_s(3,82),1,ph_getvar_n(1,9)-1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',217,27,'',NULL,'"CLEANUP"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',218,26,'',NULL,'GET_SUMMARY',0,'',''); insert into macrodetail values ('WEATHER_ALERT',219,38,'',0,'ph_setvar_s(2,9,"SUMMARY_RTN")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',220,27,'',NULL,'"CLEANUP"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',221,26,'',NULL,'SUMMARY_RTN',0,'',''); insert into macrodetail values ('WEATHER_ALERT',222,27,'',NULL,'if (ph_fileexists("C:\PH\weather\WA_SUMMARY_ALL.txt") = 0, "NOP","APPEND_8X")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',224,27,'',NULL,'"SAVE_8X"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',225,26,'',NULL,'APPEND_8X',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',227,27,'',NULL,'"SAVE_8X"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',228,26,'',NULL,'SAVE9X',0,'',''); insert into macrodetail values ('WEATHER_ALERT',229,15,'[GLOBAL80]',NULL,'80',0,'',''); insert into macrodetail values ('WEATHER_ALERT',230,15,'[GLOBAL90]',NULL,'90',0,'',''); insert into macrodetail values ('WEATHER_ALERT',231,26,'',NULL,'SAVE DESCRIPTION',0,'',''); insert into macrodetail values ('WEATHER_ALERT',232,38,'',0,'ph_addtovar(3,80,1) + ph_addtovar(3,90,1) ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',233,36,'',NULL,'"SAVE DESCRIPTION"',1,'',''); insert into macrodetail values ('WEATHER_ALERT',234,15,'[LOCAL5]',NULL,'ph_getvar_s(3,ph_getvar_N(3,90)) ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',235,38,'',0,'ph_setvar_s(2,9,"DATA_RTN")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',236,37,'',NULL,'************ CLEANUP SOURCE FOR TTS *************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',237,26,'',NULL,'CLEANUP',0,'',''); insert into macrodetail values ('WEATHER_ALERT',238,38,'',0,'ph_usermessage("CLEANUP RTN - " + ph_getvar_s(2,9))',1,'',''); insert into macrodetail values ('WEATHER_ALERT',239,15,'[LOCAL5]',NULL,'ph_replaceallregex( "~129", " ", "[LOCAL5]",3 )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',240,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "<br>", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',241,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " TO ", " to " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',242,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "...", ". " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',243,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " .", ". " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',244,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "<:", " " ) ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',245,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "*", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',246,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "&", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',247,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "NM", "natical miles " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',248,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "WINDS", "whends" )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',249,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "WIND", "whend" )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',250,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "MPH", " miles per hour" )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',251,37,'',NULL,'******* TIME ZONE FOR TTS **********',0,'',''); insert into macrodetail values ('WEATHER_ALERT',252,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " EST", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',253,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " EDT", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',254,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "CST", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',255,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "CDT", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',256,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "MST", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',257,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "MDT", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',258,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "PST", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',259,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", "PDT", " " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',260,37,'',NULL,'********************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',261,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " KT ", " knots " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',262,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " KT. ", " knots " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',263,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " ft ", " feet " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',264,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " ne ", " North East" )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',265,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " nw ", " North West" )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',266,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " s ", " south " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',267,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " sw ", " South West" )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',268,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " UP ", " up " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',269,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " OF ", " of " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',270,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " AT ", " at " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',271,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " AS ", " as " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',272,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", ".", ". " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',273,15,'[LOCAL5]',NULL,'ph_replaceall( "[LOCAL5]", " MB ", " millibars " )',0,'',''); insert into macrodetail values ('WEATHER_ALERT',274,15,'[LOCAL5]',NULL,'lower(ph_getvar_s(1,5))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',275,36,'',NULL,'ph_getvar_s(2,9)',1,'',''); insert into macrodetail values ('WEATHER_ALERT',276,27,'',NULL,'ph_getvar_s(2,9)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',277,37,'',NULL,'*********** END OF CLEANUP **********************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',278,26,'',NULL,'DATA_RTN',0,'',''); insert into macrodetail values ('WEATHER_ALERT',279,27,'',NULL,'if (ph_fileexists("c:\PH\weather\Weather Alert.txt ") = 0, "NEW_FILE","APPEND")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',280,26,'',NULL,'NEW_FILE',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',282,27,'',NULL,'IF (ph_getvar_n(3,80) >= ph_getvar_n(3,89) , "FREQUENCY", "SAVE DESCRIPTION")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',283,26,'',NULL,'APPEND',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',285,27,'',NULL,'IF (ph_getvar_n(3,80) = ph_getvar_n(3,89) , "FREQUENCY", "SAVE DESCRIPTION")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',286,26,'',NULL,'FREQUENCY',0,'',''); insert into macrodetail values ('WEATHER_ALERT',287,38,'',0,'ph_setvar_s(1,9,"CLASS_9")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',288,37,'',NULL,'EVENT TIME BASED ON CLASS SETTING',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',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',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',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',294,38,'',0,'ph_writefile("c:\PH\weather\WA_TYPE.txt",8, ph_getglobal_s("WA_TYPE"))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',296,15,'[LOCAL10]',NULL,'mid(ph_getvar_s(1,9),7)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',299,15,'[GLOBAL99]',NULL,'0',0,'',''); insert into macrodetail values ('WEATHER_ALERT',300,27,'',NULL,'ph_getvar_s(1,9)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',301,26,'',NULL,'RETRY_CLASS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',302,38,'',0,'ph_addtovar(3,99,1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',303,36,'',NULL,'"RETRY " + ph_getvar_n(3,99)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',304,15,'[LOCAL9]',NULL,'"CLASS_" + ph_getvar_s(1,8)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',305,10,'WA_TYPE',NULL,'ph_getvar_s(1,4)',0,'','RESET LAST TYPE'); insert into macrodetail values ('WEATHER_ALERT',306,15,'[GLOBAL91]',NULL,'ph_getvar_s(2,4)',0,'','Reset last G91'); insert into macrodetail values ('WEATHER_ALERT',307,27,'',NULL,'ph_getvar_s(1,9)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',308,37,'',NULL,'***************************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',309,26,'',NULL,'SETUP_BROADCAST',0,'',''); insert into macrodetail values ('WEATHER_ALERT',310,37,'',NULL,'************** CREATE TIMED EVENT ********************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',311,37,'',NULL,'CLASS PROCESSING',0,'',''); insert into macrodetail values ('WEATHER_ALERT',312,26,'',NULL,'CLASS_1',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',315,15,'[TEMP10]',NULL,'1',0,'',''); insert into macrodetail values ('WEATHER_ALERT',316,27,'',NULL,'"BROADCAST"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',317,26,'',NULL,'CLASS_2',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',320,15,'[TEMP10]',NULL,'2',0,'',''); insert into macrodetail values ('WEATHER_ALERT',321,27,'',NULL,'"BROADCAST"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',322,26,'',NULL,'CLASS_3',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',325,15,'[TEMP10]',NULL,'3',0,'',''); insert into macrodetail values ('WEATHER_ALERT',326,27,'',NULL,'"BROADCAST"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',327,26,'',NULL,'CLASS_4',0,'',''); insert into macrodetail values ('WEATHER_ALERT',328,38,'',0,'IF (ph_getvar_n(1,8)=4 AND ph_getvar_n(3,100) < 6, ph_addtovar(3,100,1),ph_setvar_s(1,8,"4")+ ph_setvar_s(3,100,"0"))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',330,15,'[TEMP10]',NULL,'4',0,'',''); insert into macrodetail values ('WEATHER_ALERT',331,27,'',NULL,'"BROADCAST"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',332,26,'',NULL,'CLASS_5',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',335,15,'[TEMP10]',NULL,'5',0,'',''); insert into macrodetail values ('WEATHER_ALERT',336,27,'',NULL,'"BROADCAST"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',337,26,'',NULL,'CLASS_9',0,'',''); insert into macrodetail values ('WEATHER_ALERT',338,36,'',NULL,'"COUNT " + ph_getvar_N(3,100)',1,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',341,15,'[TEMP10]',NULL,'9',0,'',''); insert into macrodetail values ('WEATHER_ALERT',342,27,'',NULL,'"BROADCAST"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',343,37,'',NULL,'******************** FRQUENCY **********************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',344,37,'',NULL,'CLASS/FREQ/ANNOUNCE',0,'',''); insert into macrodetail values ('WEATHER_ALERT',345,37,'',NULL,' 1 1 6',0,'',''); insert into macrodetail values ('WEATHER_ALERT',346,37,'',NULL,' 2 1 10',0,'',''); insert into macrodetail values ('WEATHER_ALERT',347,37,'',NULL,' 3 2 20',0,'',''); insert into macrodetail values ('WEATHER_ALERT',348,37,'',NULL,' 4 5 10 ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',349,37,'',NULL,' 5 5 30',0,'',''); insert into macrodetail values ('WEATHER_ALERT',350,37,'',NULL,' 8 1 for retry',0,'',''); insert into macrodetail values ('WEATHER_ALERT',351,37,'',NULL,' 9 10 60 ',0,'',''); insert into macrodetail values ('WEATHER_ALERT',352,37,'',NULL,'**********************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',353,26,'',NULL,'BROADCAST',0,'',''); insert into macrodetail values ('WEATHER_ALERT',354,36,'',NULL,'"BROADCAST"',1,'',''); insert into macrodetail values ('WEATHER_ALERT',355,37,'',NULL,'*************** CHECK FOR CHANGE **************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',356,27,'',NULL,'IF (ph_getvar_n(2,10) = 1, "NOP", "CHANGE_TEST")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',357,15,'[LOCAL6]',NULL,'"[GLOBAL91]"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',358,15,'[LOCAL7]',NULL,'"[TEMP4]"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',359,27,'',NULL,'"CONT1"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',360,26,'',NULL,'CHANGE_TEST',0,'',''); insert into macrodetail values ('WEATHER_ALERT',361,15,'[LOCAL6]',NULL,'ph_readfile("c:\PH\weather\Weather Alert.txt")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',362,15,'[LOCAL7]',NULL,'ph_readfile("c:\PH\weather\Weather Alert Old.txt")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',363,26,'',NULL,'CONT1',0,'',''); insert into macrodetail values ('WEATHER_ALERT',364,38,'',0,'IF ("[LOCAL6]" = "[LOCAL7]", ph_setvar_s(2,2,"0"), ph_setvar_s(2,2,"1"))',0,'','T2=1 CHANGED'); insert into macrodetail values ('WEATHER_ALERT',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,'','ANY CHANGE'); insert into macrodetail values ('WEATHER_ALERT',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,'','DROP T.WARN'); insert into macrodetail values ('WEATHER_ALERT',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,'','DROP T.WATCH AND NO T.WARN'); insert into macrodetail values ('WEATHER_ALERT',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,'','DROP T.WARN AND NO T.WATCH'); insert into macrodetail values ('WEATHER_ALERT',369,37,'',NULL,'**************** SILIENT TTS AT NIGHT **************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',370,27,'',NULL,'IF ( NOW() > 22:00:00 OR NOW() < 07:00:00 , "EXIT", "NOP")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',371,37,'',NULL,'***********************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',372,27,'',NULL,'IF (ph_getvar_n(2,10)=1 ,"NOP", "CL1BYPASS")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',373,36,'',NULL,'"CLASS 1 MSG"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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,'','GOTO CLEANUP AND RTN TO MSG'); insert into macrodetail values ('WEATHER_ALERT',375,27,'',NULL,'ph_getvar_s(1,9)',0,'','GO TO CLEANUP OR EXIT'); insert into macrodetail values ('WEATHER_ALERT',376,26,'',NULL,'CL1BYPASS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',377,27,'',NULL,'IF (ph_getvar_n(2,10)=2 ,"NOP", "CL2BYPASS")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',378,36,'',NULL,'"CLASS 2 MSG"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',380,27,'',NULL,'ph_getvar_s(1,9)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',381,26,'',NULL,'CL2BYPASS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',382,27,'',NULL,'IF (ph_getvar_n(2,10)=3 ,"NOP", "CL3BYPASS")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',383,36,'',NULL,'"CLASS 3 MSG"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',385,27,'',NULL,'ph_getvar_s(2,9)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',386,26,'',NULL,'CL3BYPASS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',387,27,'',NULL,'IF (ph_getvar_n(2,10)=4 ,"NOP", "CL4BYPASS")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',388,36,'',NULL,'"CLASS 4 MSG"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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_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',390,27,'',NULL,'ph_getvar_s(2,9)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',391,26,'',NULL,'CL4BYPASS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',392,27,'',NULL,'IF (ph_getvar_n(2,10)=5 ,"NOP", "CL5BYPASS")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',393,36,'',NULL,'"CLASS 5 MSG"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',395,27,'',NULL,'ph_getvar_s(2,9)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',396,26,'',NULL,'CL5BYPASS',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',399,36,'',NULL,'"CLASS 9 MSG"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',401,27,'',NULL,'ph_getvar_s(2,9)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',402,37,'',NULL,'**************************************************************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',403,26,'',NULL,'TORNWARN_MSG',0,'',''); insert into macrodetail values ('WEATHER_ALERT',404,9,'',NULL,'ph_readfile("C:\PH\WEATHER\T_WARN.txt")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',405,9,'',NULL,'"[LOCAL5]"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',406,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',409,27,'',NULL,'"EXIT"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',410,26,'',NULL,'STD_MSG',0,'',''); insert into macrodetail values ('WEATHER_ALERT',411,36,'',NULL,'"STD_MSG"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',413,38,'',0,'ph_tts(ph_readfile("c:\PH\WEATHER\WEATHER ALERT.txt"))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',414,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',415,38,'',0,'ph_ssrequest("192.168.1.106", 8600, "chc", "XXXXX", "FORMULA", '' ph_tts(ph_readfile("W:\WEATHER\RESET_TYPE.txt")) + ph_tts(ph_readfile("W:\WEATHER\WEATHER ALERT.txt"))'') ',1,'',''); insert into macrodetail values ('WEATHER_ALERT',416,38,'',0,'ph_ssrequest("192.168.1.105", 8600, "chc", "XXXXX", "FORMULA", '' ph_tts(ph_readfile("W:\WEATHER\RESET_TYPE.txt")) + ph_tts(ph_readfile("W:\WEATHER\WEATHER ALERT.txt"))'') ',1,'',''); insert into macrodetail values ('WEATHER_ALERT',417,27,'',NULL,'"EXIT"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',418,26,'',NULL,'TYPE_ONLY',0,'',''); insert into macrodetail values ('WEATHER_ALERT',419,36,'',NULL,'"TYPE_ONLY"',1,'',''); insert into macrodetail values ('WEATHER_ALERT',420,9,'',NULL,'ph_getglobal_s("WA_TYPE")',0,'',''); insert into macrodetail values ('WEATHER_ALERT',421,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',422,38,'',0,'ph_ssrequest("192.168.1.106", 8600, "chc", "XXXXX", "FORMULA", '' ph_tts(ph_readfile("W:\WEATHER\RESET_TYPE.txt")) + ph_tts(ph_readfile("W:\WEATHER\WA_TYPE.txt"))'')',1,'',''); insert into macrodetail values ('WEATHER_ALERT',423,38,'',0,'ph_ssrequest("192.168.1.105", 8600, "chc", "XXXXX", "FORMULA", '' ph_tts(ph_readfile("W:\WEATHER\RESET_TYPE.txt")) + ph_tts(ph_readfile("W:\WEATHER\WA_TYPE.txt"))'')',1,'',''); insert into macrodetail values ('WEATHER_ALERT',424,27,'',NULL,'"EXIT"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',425,26,'',NULL,'SUMMARY1',0,'',''); insert into macrodetail values ('WEATHER_ALERT',426,36,'',NULL,'"SUMMARY1"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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,'','Surpress msg if retry'); insert into macrodetail values ('WEATHER_ALERT',428,38,'',0,'ph_tts(ph_readfile("c:\PH\WEATHER\WA_SUMMARY.txt"))',0,'',''); insert into macrodetail values ('WEATHER_ALERT',429,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',430,38,'',0,'ph_ssrequest("192.168.1.106", 8600, "chc", "XXXXX", "FORMULA", '' ph_tts(ph_readfile("W:\WEATHER\RESET_TYPE.txt")) + ph_tts(ph_readfile("W:\WEATHER\WA_SUMMARY.txt"))'')',1,'',''); insert into macrodetail values ('WEATHER_ALERT',431,38,'',0,'ph_ssrequest("192.168.1.105", 8600, "chc", "XXXXX", "FORMULA", '' ph_tts(ph_readfile("W:\WEATHER\RESET_TYPE.txt")) + ph_tts(ph_readfile("W:\WEATHER\WA_SUMMARY.txt"))'') ',1,'',''); insert into macrodetail values ('WEATHER_ALERT',432,27,'',NULL,'"EXIT"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',433,26,'',NULL,'SUMMARY_ALL',0,'',''); insert into macrodetail values ('WEATHER_ALERT',434,36,'',NULL,'"SUMMARY_ALL"',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',437,37,'',NULL,'********* SOCKET SERVER REQUEST *************',0,'',''); insert into macrodetail values ('WEATHER_ALERT',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',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',440,26,'',NULL,'EXIT',0,'',''); insert into macrodetail values ('WEATHER_ALERT',441,38,'',0,'IF ("[TEMP10]" = "1" ,ph_msgbox("Weather Alert","{WA_TYPE}",10),1)',0,'',''); insert into macrodetail values ('WEATHER_ALERT',442,36,'',NULL,'"EXIT"',0,'','');