i mean for saving some local cpu cycles i can understand, but think my 12 core system can handle a 30KB webpage
how can i get over this limit without having to involve learning another programming language or over complicating things. i read about using Lua, but i know little to nothing about it, i have experience in php.
ideally, i would break up the webparser and make several calls, but i want to limit requests as i am using an API which has limits on number of calls, so i want to do it in one http request.
this is what i am after and it's failing..
the data is parsed in 3 parts. one entry of current weather conditions, ten entries of detailed 10 day forecast and ten entries of the 10 day weekly temperatures. the code would work if it wasn't for the string limit. i don't get what the fuss is all about. seems like a trivial amount to impose such restriction on something that runs every 15 mins and takes all but 2-3 seconds to process it. it would be nice if i could just download the xml data and somehow use rainmeter to fetch an array of the data, but my guess is it requires some other scripting knowledge which as ive noted earlier, is no bueno.
i've attached the xml of the weather data in case someone wants to help, it would be appreciated. i suppose it's a good thing i did not have plans to use all the weather data in the xml as rainmeter doesn't seem interested in being able to handle the little bit i want from it
Code: Select all
GET_CURRENT=<display_location>.*<city>(.*)</city>.*<observation_time>Last Updated on (.*), (.*) (.*)</observation_time>.*<weather>(.*)</weather>.*<temp_f>(.*)</temp_f>.*<relative_humidity>(.*)</relative_humidity>.*<wind_string>(.*)</wind_string>.*<wind_dir>(.*)</wind_dir>.*<wind_degrees>(.*)</wind_degrees>.*<wind_mph>(.*)</wind_mph>.*<wind_gust_mph>(.*)</wind_gust_mph>.*<pressure_in>(.*)</pressure_in>.*<pressure_trend>(.*)</pressure_trend>.*<dewpoint_f>(.*)</dewpoint_f>.*<heat_index_string>(.*)</heat_index_string>.*<heat_index_f>(.*)</heat_index_f>.*<windchill_string>(.*)</windchill_string>
GET_FORECAST=(?(?=.*<period>).*<icon>(.*)</icon>.*<title>(.*)</title>.*<fcttext>(.*)</fcttext>.*<pop>(.*)</pop>)
GET_FUTURE=(?(?=.*<weekday>(.*)</weekday>).*<high>.*<fahrenheit>(.*)</fahrenheit>.*</high>.*<low>.*<fahrenheit>(.*)</fahrenheit>.*</low>.*<conditions>(.*)</conditions>.*<icon>(.*)</icon>)
RegExp="(?siU)#GET_CURRENT#
#GET_FORECAST##GET_FORECAST##GET_FORECAST##GET_FORECAST##GET_FORECAST##GET_FORECAST##GET_FORECAST##GET_FORECAST##GET_FORECAST##GET_FORECAST#
#GET_FUTURE##GET_FUTURE##GET_FUTURE##GET_FUTURE##GET_FUTURE##GET_FUTURE##GET_FUTURE##GET_FUTURE##GET_FUTURE##GET_FUTURE#"