Re: Skin help, WebParser RegExp matching error
Posted: January 12th, 2017, 10:33 pm
Ok, I finally figured out two of the "errors". The easiest one was the measure MeasureWET. Crazy name to me...it turns out to be used for a wind direction indicator! *GASPS* I'm guessing that Foreca.com had changed slightly how they built webpages, which made the original RegExp match-string bomb out.
I know, a measure name is totally arbitrary, but I had to change it to something I would not confuse with precipitation. The commented out RegExp is the one that was throwing the expression matching error. The one directly under it works...I learned in the process that Foreca uses numbered images to indicate the direction of the wind vector, and the earlier authors matched that with their own images.
So, this is what my Mass Effect Weather+Radar skin now looks like with he weather 'tab' active:
The red-circled item is a funky ellipsis, I would love to move it up and to the left a bit, because it looks off-center. But I've yet to identify a measure that displays it. The yellow-circled arrow is the newly revealed wind vector arrow after I figured out a way to fix the parsing error for MeasureWET.
This leads me to a question. If MeasureWET is there to select the appropriate current wind direction, why was there a need for a second one? At least I think that is what MeasureWET2 is supposed to be.
This looks exactly like MeasureWET, but I don't know why it is there. Nor can I figure out where it is displayed.
Oh, the other "error" I sussed out turns out not to be one. It dawned on me that MeasureWeatherIconD and WeatherIconN would only be "defined" on alternating 12 hour periods. Foreca.com would build the webpage using either a "day" set of icons or a "night" set...if they used one with a 'd' appended on the end of the image name, it is from the "day" set, and if the image had an 'n', it was from the "night" set. When WebParser finds one, it will not find the other. So I was chasing a bit of a red herring for awhile.
Now, if only I can figure out what MeasureF and MeasureOBN were supposed to be originally. As it is, these items not being defined doesn't seem to hurt the skin...maybe I should just comment them out for now?
Code: Select all
;[MeasureWET]
[MeasureWindDirect]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
;RegExp="(?siU).*img/symb-wind/w(.*).gif" alt=".*".*"
RegExp="(?siU)<img src.*/s/symb-wind/w(.*).gif" alt=".*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1
So, this is what my Mass Effect Weather+Radar skin now looks like with he weather 'tab' active:
The red-circled item is a funky ellipsis, I would love to move it up and to the left a bit, because it looks off-center. But I've yet to identify a measure that displays it. The yellow-circled arrow is the newly revealed wind vector arrow after I figured out a way to fix the parsing error for MeasureWET.
This leads me to a question. If MeasureWET is there to select the appropriate current wind direction, why was there a need for a second one? At least I think that is what MeasureWET2 is supposed to be.
Code: Select all
;[MeasureWET2]
[MeasureWindDirect2]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU).*img/symb-wind/w(.*).gif" alt="(.*)".*"
UpdateRate=#UpdateRateSeconds#
StringIndex=2
Oh, the other "error" I sussed out turns out not to be one. It dawned on me that MeasureWeatherIconD and WeatherIconN would only be "defined" on alternating 12 hour periods. Foreca.com would build the webpage using either a "day" set of icons or a "night" set...if they used one with a 'd' appended on the end of the image name, it is from the "day" set, and if the image had an 'n', it was from the "night" set. When WebParser finds one, it will not find the other. So I was chasing a bit of a red herring for awhile.
Now, if only I can figure out what MeasureF and MeasureOBN were supposed to be originally. As it is, these items not being defined doesn't seem to hurt the skin...maybe I should just comment them out for now?