insert into macroheader values ('GET_WEATHER','GET WEATHER',0,0,1); insert into macrodetail values ('GET_WEATHER',1,27,'',NULL,'IF (ph_getglobal_s("CURFORECAST")= "", "NOP", "START")',0,'',''); insert into macrodetail values ('GET_WEATHER',2,38,'',0,'ph_setvar_s(2,1,ph_getglobal_s("CURTEMP")) + ph_setglobal_s("CURTEMP","1") + IF (ph_getglobal_s("CURTEMP") ="1", ph_setglobal_s("CURTEMP",ph_getvar_s(2,1)), ph_createglobal("CURTEMP","") )',0,'',''); insert into macrodetail values ('GET_WEATHER',3,38,'',0,'ph_setvar_s(2,1,ph_getglobal_s("CURWINDCHILL")) + ph_setglobal_s("CURWINDCHILL","1") + IF (ph_getglobal_s("CURWINDCHILL") ="1", ph_setglobal_s("CURWINDCHILL",ph_getvar_s(2,1)), ph_createglobal("CURWINDCHILL","") )',0,'',''); insert into macrodetail values ('GET_WEATHER',4,38,'',0,'ph_setvar_s(2,1,ph_getglobal_s("CURHUMIDITY")) + ph_setglobal_s("CURHUMIDITY","1") + IF (ph_getglobal_s("CURHUMIDITY") ="1", ph_setglobal_s("CURHUMIDITY",ph_getvar_s(2,1)), ph_createglobal("CURHUMIDITY","") )',0,'',''); insert into macrodetail values ('GET_WEATHER',5,38,'',0,'ph_setvar_s(2,1,ph_getglobal_s("CURFORECAST")) + ph_setglobal_s("CURFORECAST","1") + IF (ph_getglobal_s("CURFORECAST") ="1", ph_setglobal_s("CURFORECAST",ph_getvar_s(2,1)), ph_createglobal("CURFORECAST","") )',0,'',''); insert into macrodetail values ('GET_WEATHER',6,26,'',NULL,'START',0,'',''); insert into macrodetail values ('GET_WEATHER',7,37,'',NULL,'***************************************************************',0,'',''); insert into macrodetail values ('GET_WEATHER',8,37,'',NULL,'**** MUST ENTER YOUR ZIP IN NEXT LINE *************',0,'',''); insert into macrodetail values ('GET_WEATHER',9,15,'[LOCAL5]',NULL,'ph_geturl( "mobile.wunderground.com/cgi-bin/findweather/getForecast?brand=mobile&query=99692")',0,'',''); insert into macrodetail values ('GET_WEATHER',10,37,'',NULL,'****************** TESTING ONLY ******************',0,'',''); insert into macrodetail values ('GET_WEATHER',11,38,'',0,'ph_writefile("C:\PH\WEATHER\GET_WEATHER.TXT",9,ph_getvar_s(1,5))',1,'',''); insert into macrodetail values ('GET_WEATHER',12,38,'',0,'ph_setvar_s(1,5,ph_READfile("C:\PH\WEATHER\GET_WEATHER.TXT"))',1,'',''); insert into macrodetail values ('GET_WEATHER',13,37,'',NULL,'**********************************************************',0,'',''); insert into macrodetail values ('GET_WEATHER',14,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,5),"Temperature",1)',0,'',''); insert into macrodetail values ('GET_WEATHER',15,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,5),"",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('GET_WEATHER',16,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,5),"",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('GET_WEATHER',17,10,'CURTEMP',NULL,'mid(ph_getvar_s(1,5),ph_getvar_n(1,1)+3,ph_getvar_n(1,9)-ph_getvar_n(1,1)-3)',0,'',''); insert into macrodetail values ('GET_WEATHER',18,15,'[LOCAL4]',NULL,'"The temperature is " + "{CURTEMP}" + " degrees"',0,'',''); insert into macrodetail values ('GET_WEATHER',19,27,'',NULL,'if (posw("[LOCAL5]", "Windchill") = 0, "BYPASS_WC","NOP")',0,'',''); insert into macrodetail values ('GET_WEATHER',20,10,'CURWINDCHILL',NULL,'ph_regexdiff(">Windchill~255","","[LOCAL5]",1,0)',0,'',''); insert into macrodetail values ('GET_WEATHER',21,15,'[LOCAL4]',NULL,'"[LOCAL4]" + ", with a windchill of " + "{CURWINDCHILL}" + " degrees, "',0,'',''); insert into macrodetail values ('GET_WEATHER',22,26,'',NULL,'BYPASS_WC',0,'',''); insert into macrodetail values ('GET_WEATHER',23,15,'[LOCAL3]',NULL,'ph_regexdiff("Humidity~255","","[LOCAL5]",1,0)',0,'',''); insert into macrodetail values ('GET_WEATHER',24,10,'CURHUMIDITY',NULL,'"[LOCAL3]"',0,'',''); insert into macrodetail values ('GET_WEATHER',25,37,'',NULL,'*************** ESTIMATED ****************************',0,'',''); insert into macrodetail values ('GET_WEATHER',26,38,'',0,'IF ("{CURHUMIDITY}" = "255%", ph_setglobal_s("CURHUMIDITY" ,"around " + RAND(100) + "%"), 0)',0,'',''); insert into macrodetail values ('GET_WEATHER',27,37,'',NULL,'***********************************************************',0,'',''); insert into macrodetail values ('GET_WEATHER',28,15,'[LOCAL4]',NULL,'"[LOCAL4]" + " and the humidity is " + "{CURHUMIDITY}" + "."',0,'',''); insert into macrodetail values ('GET_WEATHER',29,37,'',NULL,'******************** FOR TTS USE ********************',0,'',''); insert into macrodetail values ('GET_WEATHER',30,10,'TEMP_STR',NULL,'"[LOCAL4]"',0,'',''); insert into macrodetail values ('GET_WEATHER',31,37,'',NULL,'***********************************************************',0,'',''); insert into macrodetail values ('GET_WEATHER',32,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,5),"Forecast as of",1)',0,'',''); insert into macrodetail values ('GET_WEATHER',33,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,5),"",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('GET_WEATHER',34,15,'[LOCAL4]',NULL,'mid(ph_getvar_s(1,5),ph_getvar_n(1,1),ph_getvar_n(1,9)-ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('GET_WEATHER',35,15,'[LOCAL1]',NULL,'posw(ph_getvar_s(1,5),''alt="" />
'',ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('GET_WEATHER',36,15,'[LOCAL9]',NULL,'posw(ph_getvar_s(1,5),"

",ph_getvar_n(1,1))',0,'',''); insert into macrodetail values ('GET_WEATHER',37,10,'CURFORECAST',NULL,'ph_getvar_s(1,4) + " " + mid(ph_getvar_s(1,5),ph_getvar_n(1,1)+15,ph_getvar_n(1,9)-ph_getvar_n(1,1)-15)',0,'',''); insert into macrodetail values ('GET_WEATHER',38,26,'',NULL,'EXIT',0,'','');