Code: Select all
; regexBase strings: 1 Header, 2 Current Conditions, 3 Forecast Issue Time, 4 Graphic Forecast, 5 Detailed Forecast, 6 Normals, 7 Averages, 8 Yesterday
regexBase=(?siU)property="mainContentOfPage"(.*)</ul>(.*)<h2>Forecast.*Forecast(.*)>(.*)Detailed Forecast(.*)Normals:(.*)<h2>Averages(.*)<h2>Yesterday(.*)</details>
; regexHeader strings: 1 City, 2 Province, 3 Province Abbreviation, 4 Alert Name, 5 Alert URL, 6 Alert Text, 7 Past24URL
regexHeader=(?siU).*property="name">(.*), <abbr title="(.*)">(.*)</abbr>.*<a href="(.*)">(?(?=<).*</div>.*class.*>)(.*)</.*href="(.*)">Past
; regexCurrent strings: 1 Current Icon, 2 Rounded Temperature, 3 Observed Time, 4 Condition, 5 Pressure, 6 Tendency, 7 Precise Temperature, 8 Dew Point, 9 Humidity, 10 Wind Direction, 11 Wind Speed, 12 Wind Gust, 13 Wind Chill/Heat Index Label, 14 Wind Chill/Heat Index Unit, 15 Visibility
regexCurrent=(?siU).*<img.*src="(.*)".*<span.*>(.*)<.*<dt>Date:(.*)</dl>.*<dt>Condition:.*class.*>(.*)<.*<dt>Pressure:.*class.*>(.*)<.*<dt>Tendency:.*class.*>(.*)<.*<dt>Temperature:.*class.*>(.*)<.*<dt>Dew point:.*class.*>(.*)<.*<dt>Humidity:.*class.*>(.*)<.*<dt>Wind:.*class.*>(?(?=\R).*title.*>(.*)<.*>(.*)<(?(?=br).*>(.*)<).*href=".*>(.*)<.*class.*>(.*)<).*<dt>Visibility.*class.*>(.*)<
;regexObserved strings: 1 Hour(12), 2 Minute, 3 AM/PM, 4 Timezone, 5 Weekday, 6 Date, 7 Month, 8 Year
regexObserved=(?siU).*class.*>(.*):(.*) (.*) (.*) (.*) (.*) (.*) (.*)</dd>
;regexIssued strings: 1 Hour(12), 2 Minute, 3 AM/PM, 4 Timezone, 5 Weekday, 6 Date, 7 Month, 8 Year
regexIssued=(?siU).*issued: (.*):(.*) (.*) (.*) (.*) (.*) (.*) (.*)</span
; regexGraphic strings: Day 1: 1 Weekday, 2 Date, 3 Month, 4 Icon, 5 High Temperature, 6 Day POP, 7 Day Text, 8 Low Temperature, 9 Night POP, 10 Night Text
Day 2: 11 Weekday, 12 Date, 13 Month, 14 Icon, 15 High Temperature, 16 Day POP, 17 Day Text, 18 Low Temperature, 19 Night POP, 20 Night Text
Day 3: 21 Weekday, 22 Date, 23 Month, 24 Icon, 25 High Temperature, 26 Day POP, 27 Day Text, 28 Low Temperature, 29 Night POP, 30 Night Text
Day 4: 31 Weekday, 32 Date, 33 Month, 34 Icon, 35 High Temperature, 36 Day POP, 37 Day Text, 38 Low Temperature, 39 Night POP, 40 Night Text
Day 5: 41 Weekday, 42 Date, 43 Month, 44 Icon, 45 High Temperature, 46 Day POP, 47 Day Text, 48 Low Temperature, 49 Night POP, 50 Night Text
Day 6: 51 Weekday, 52 Date, 53 Month, 54 Icon, 55 High Temperature, 56 Day POP, 57 Day Text, 58 Low Temperature, 59 Night POP, 60 Night Text
Day 7: 61 Weekday, 62 Date, 63 Month, 64 Icon, 65 High Temperature, 66 Day POP, 67 Day Text
regexGraphNight=.*div-row4.*title="min">(.*)<.*<p class=".*"(?(?= title).*>.*>(.*)<).*<p class.*>(.*)<
regexGraphDay=.*title="(.*)".*br>(\d+)[^\d].*title="(.*)".*<img.*src="(.*)".*title="max">(.*)<.*<p class=".*"(?(?= title).*>.*>(.*)<).*<p class.*>(.*)<
regexGraphic=(?siU).*div-row1 div-row-head(?(?=")#regexGraphDay#)#regexGraphNight##regexGraphDay##regexGraphNight##regexGraphDay##regexGraphNight##regexGraphDay##regexGraphNight##regexGraphDay##regexGraphNight##regexGraphDay##regexGraphNight##regexGraphDay#
; regexDetailed strings: 1 Day1, 2 Night1, 3 Day2, 4 Night2, 5 Day3, 6 Night3, 7 Day4, 8 Night4, 9 Day5, 10 Night5, 11 Day6, 12 Night6, 13 Day7
regexDetailDay=.*title.*<td>(.*)</td>
regexDetailed=(?siU).*title.*>(?(?=Today).*<td>(.*)</td>.*title).*<td>(.*)</td>#regexDetailDay##regexDetailDay##regexDetailDay##regexDetailDay##regexDetailDay##regexDetailDay##regexDetailDay##regexDetailDay##regexDetailDay##regexDetailDay##regexDetailDay#
; regexNormals strings: 1 Normal High, 2 Normal Low, 3 Sunrise, 4 Sunset
regexNormals=(?siU).*title="max">(.*)<.*title="min">(.*)<.*Sunrise.*<dd>([\d:]+)[^\d:].*Sunset.*<dd>([\d:]+)[^\d:]
; regexYesterday strings: 1 High, 2 Low, 3 Precipitation
regexYesterday=(?siU).*Maximum.*class.*>(.*)<.*Minimum.*class.*>(.*)<.*Precipitation.*class.*>(.*)<
; Main Site
; --------------------------------------
[msrSite]
Measure=WebParser
URL=#PageURL#
RegExp=#regexBase#
UpdateRate=#SiteUpdateRate#
; Graphic Forecast
; --------------------------------------
[msrGraphicGroup]
Measure=WebParser
URL=[msrSite]
RegExp=#regexGraphic#
StringIndex=#IndexGrahpic#
[msrGraphic1Icon]
Measure=WebParser
URL=#SiteURL#[msrGraphicGroup]
StringIndex=#GraphicIndexIcon#
Download=1
IfMatch=(?i)^.+$
IfMatchAction=[!ShowMeter mtrDay1Icon]
IfNotMatchAction=[!HideMeter mtrDay1Icon]
[msrGraphic2Icon]
Measure=WebParser
URL=#SiteURL#[msrGraphicGroup]
StringIndex=(#GraphicIndexIcon#+#GraphicIndexTotal#)
Download=1
[msrGraphic3Icon]
Measure=WebParser
URL=#SiteURL#[msrGraphicGroup]
StringIndex=(#GraphicIndexIcon#+(#GraphicIndexTotal#*2))
Download=1
; Display the Graphic Forecast.
; --------------------------------------
; Display the icon row.
[mtrDay1Icon]
Meter=Image
MeasureName=msrGraphic1Icon
X=#cell1Icon#
Y=#iconY#
W=#iconWidth#
H=#iconHeight#
SolidColor=#colorIconBG#
[mtrDay2Icon]
Meter=Image
MeasureName=msrGraphic2Icon
X=#cellWidth#r
Y=#iconY#
W=#iconWidth#
H=#iconHeight#
SolidColor=#colorIconBG#