It is currently March 28th, 2024, 11:10 pm

Unexpected/Missing results using lookahead

Get help with creating, editing & fixing problems with skins
Tical84
Posts: 25
Joined: November 24th, 2018, 9:34 pm

Re: Unexpected/Missing results using lookahead

Post by Tical84 »

Correct. I'm assuming I check for the time inside of "gameDate" and if it's after the current time it'll display the "currentPeriodOrdinal" and "currentPeriodTimeRemaining" and if it's before the current time it'll display the time from "gameDate"....right?
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

Post by balala »

Tical84 wrote: December 16th, 2018, 8:32 pm Correct. I'm assuming I check for the time inside of "gameDate" and if it's after the current time it'll display the "currentPeriodOrdinal" and "currentPeriodTimeRemaining" and if it's before the current time it'll display the time from "gameDate"....right?
We'll see. For now I won't work because soon I have to go to sleep, but tomorrow I'll take a look to see what can be done. :great:
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

Post by balala »

And finally here is a new version of the skin. This shows the results and if a game hasn't started yet, the scheduled time. Please test it and let me know if it fits your desire. We can modify it, if needed.
Replace the old code with this one:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,1

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
Away=(?(?=.*"gamePk").*"gameDate" : "(.*)",.*"abstractGameState" : "(.*)",.*"teams".*"score" : (\d*),.*"id" : (\d*),.*"score" : (\d*),.*"id" : (\d*),) 

[StateStyle]
X=5
Y=-5r
W=200
H=56
FontSize=14
FontColor=255,255,255,255
StringAlign=LeftCenter
AntiAlias=1
Text=Scheduled at:#CRLF#%1
Hidden=1

[MeasureNHL] 
Measure=WebParser 
UpdateRate=300
URL=https://statsapi.web.nhl.com/api/v1/schedule?expand=schedule.linescore
RegExp=(?siU)"totalItems" : (\d*),#Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away#
FinishAction=[!EnableMeasure "MeasureItemNum"][!UpdateMeasure "MeasureItemNum"]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 1;;;;;;;;;;;;;;;;;;

[MeasureItemNum]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=1
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!DisableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition2=(#CURRENTSECTION#=1)
IfTrueAction2=[!EnableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition3=(#CURRENTSECTION#=2)
IfTrueAction3=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition4=(#CURRENTSECTION#=3)
IfTrueAction4=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition5=(#CURRENTSECTION#=4)
IfTrueAction5=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition6=(#CURRENTSECTION#=5)
IfTrueAction6=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition7=(#CURRENTSECTION#=6)
IfTrueAction7=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition8=(#CURRENTSECTION#=7)
IfTrueAction8=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition9=(#CURRENTSECTION#=8)
IfTrueAction9=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition10=(#CURRENTSECTION#=9)
IfTrueAction10=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition11=(#CURRENTSECTION#=10)
IfTrueAction11=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition12=(#CURRENTSECTION#=11)
IfTrueAction12=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition13=(#CURRENTSECTION#=12)
IfTrueAction13=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!EnableMeasureGroup "Item12"]
Disabled=1

[MeasureGame1DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=2
Disabled=1
Group=Item1
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame1State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=3
Disabled=1
Group=Item1
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame1State"]
IfFalseAction=[!ShowMeter "MeterGame1State"]
DynamicVariables=1

[MeasureGame1AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=4
Disabled=1
Group=Item1

[MeterGame1AwayScore]
Meter=String
MeasureName=MeasureGame1AwayScore
x=310
y=10
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=6
Disabled=1
Group=Item1

[MeterGame1HomeScore]
Meter=String
MeasureName=MeasureGame1HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=5
Disabled=1
Group=Item1

[MeterGame1AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1AwayTeam
x=250
y=10
w=30
h=30

[MeasureGame1HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=7
Disabled=1
Group=Item1

[MeterGame1HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame1State]
Meter=String
MeasureName=MeasureGame1DateTime
MeterStyle=StateStyle

; [MeasureGame1Period]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=5

; [MeterGame1Period]
; Meter=String
; MeasureName=MeasureGame1Period
; x=370
; y=35
; w=40
; h=40
; FontSize=15
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1

; [MeasureGame1Clock]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=6

; [MeterGame1Clock]
; Meter=String
; MeasureName=MeasureGame1Clock
; x=r
; y=30r
; w=40
; h=40l
; FontSize=15
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 2;;;;;;;;;;;;;;;;;;

[MeasureGame2DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=8
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame2State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=9
Disabled=1
Group=Item2
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame2State"]
IfFalseAction=[!ShowMeter "MeterGame2State"]
DynamicVariables=1

[MeasureGame2AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=10
Disabled=1
Group=Item2

[MeterGame2AwayScore]
Meter=String
MeasureName=MeasureGame2AwayScore
x=310
y=80
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=12
Disabled=1
Group=Item2

[MeterGame2HomeScore]
Meter=String
MeasureName=MeasureGame2HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=11
Disabled=1
Group=Item2

[MeterGame2AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2AwayTeam
x=250
y=80
w=30
h=30

[MeasureGame2HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=13
Disabled=1
Group=Item2

[MeterGame2HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame2State]
Meter=String
MeasureName=MeasureGame2DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 3;;;;;;;;;;;;;;;;;;

[MeasureGame3DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=14
Disabled=1
Group=Item3
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame3State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=15
Disabled=1
Group=Item3
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame3State"]
IfFalseAction=[!ShowMeter "MeterGame3State"]
DynamicVariables=1

[MeasureGame3AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=16
Disabled=1
Group=Item3

[MeterGame3AwayScore]
Meter=String
MeasureName=MeasureGame3AwayScore
x=310
y=150
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=18
Disabled=1
Group=Item3

[MeterGame3HomeScore]
Meter=String
MeasureName=MeasureGame3HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=17
Disabled=1
Group=Item3

[MeterGame3AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3AwayTeam
x=250
y=150
w=30
h=30

[MeasureGame3HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=19
Disabled=1
Group=Item3

[MeterGame3HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame3State]
Meter=String
MeasureName=MeasureGame3DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 4;;;;;;;;;;;;;;;;;;

[MeasureGame4DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=20
Disabled=1
Group=Item4
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame4State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=21
Disabled=1
Group=Item4
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame4State"]
IfFalseAction=[!ShowMeter "MeterGame4State"]
DynamicVariables=1

[MeasureGame4AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=22
Disabled=1
Group=Item4

[MeterGame4AwayScore]
Meter=String
MeasureName=MeasureGame4AwayScore
x=310
y=220
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=24
Disabled=1
Group=Item4

[MeterGame4HomeScore]
Meter=String
MeasureName=MeasureGame4HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=23
Disabled=1
Group=Item4

[MeterGame4AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4AwayTeam
x=250
y=220
w=30
h=30

[MeasureGame4HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=25
Disabled=1
Group=Item4

[MeterGame4HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame4State]
Meter=String
MeasureName=MeasureGame4DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 5;;;;;;;;;;;;;;;;;;

[MeasureGame5DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=26
Disabled=1
Group=Item5
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame5State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=27
Disabled=1
Group=Item5
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame5State"]
IfFalseAction=[!ShowMeter "MeterGame5State"]
DynamicVariables=1

[MeasureGame5AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=28
Disabled=1
Group=Item5

[MeterGame5AwayScore]
Meter=String
MeasureName=MeasureGame5AwayScore
x=310
y=290
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=30
Disabled=1
Group=Item5

[MeterGame5HomeScore]
Meter=String
MeasureName=MeasureGame5HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=29
Disabled=1
Group=Item5

[MeterGame5AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5AwayTeam
x=250
y=290
w=30
h=30

[MeasureGame5HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=31
Disabled=1
Group=Item5

[MeterGame5HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame5State]
Meter=String
MeasureName=MeasureGame5DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 6;;;;;;;;;;;;;;;;;;

[MeasureGame6DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=32
Disabled=1
Group=Item6
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame6State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=33
Disabled=1
Group=Item6
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame6State"]
IfFalseAction=[!ShowMeter "MeterGame6State"]
DynamicVariables=1

[MeasureGame6AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=34
Disabled=1
Group=Item6

[MeterGame6AwayScore]
Meter=String
MeasureName=MeasureGame6AwayScore
x=310
y=360
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=36
Disabled=1
Group=Item6

[MeterGame6HomeScore]
Meter=String
MeasureName=MeasureGame6HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=35
Disabled=1
Group=Item6

[MeterGame6AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6AwayTeam
x=250
y=360
w=30
h=30

[MeasureGame6HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=37
Disabled=1
Group=Item6

[MeterGame6HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame6State]
Meter=String
MeasureName=MeasureGame6DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 7;;;;;;;;;;;;;;;;;;

[MeasureGame7DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=38
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame7State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=39
Disabled=1
Group=Item7
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame7State"]
IfFalseAction=[!ShowMeter "MeterGame7State"]
DynamicVariables=1

[MeasureGame7AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=40
Disabled=1
Group=Item7

[MeterGame7AwayScore]
Meter=String
MeasureName=MeasureGame7AwayScore
x=310
y=430
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=42
Disabled=1
Group=Item7

[MeterGame7HomeScore]
Meter=String
MeasureName=MeasureGame7HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=41
Disabled=1
Group=Item7

[MeterGame7AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7AwayTeam
x=250
y=430
w=30
h=30

[MeasureGame7HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=43
Disabled=1
Group=Item7

[MeterGame7HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame7State]
Meter=String
MeasureName=MeasureGame7DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 8;;;;;;;;;;;;;;;;;;

[MeasureGame8DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=44
Disabled=1
Group=Item8
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame8State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=45
Disabled=1
Group=Item8
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame8State"]
IfFalseAction=[!ShowMeter "MeterGame8State"]
DynamicVariables=1

[MeasureGame8AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=46
Disabled=1
Group=Item8

[MeterGame8AwayScore]
Meter=String
MeasureName=MeasureGame8AwayScore
x=310
y=500
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=48
Disabled=1
Group=Item8

[MeterGame8HomeScore]
Meter=String
MeasureName=MeasureGame8HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=47
Disabled=1
Group=Item8

[MeterGame8AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8AwayTeam
x=250
y=500
w=30
h=30

[MeasureGame8HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=49
Disabled=1
Group=Item8

[MeterGame8HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame8State]
Meter=String
MeasureName=MeasureGame8DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 9;;;;;;;;;;;;;;;;;;

[MeasureGame9DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=50
Disabled=1
Group=Item9
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame9State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=51
Disabled=1
Group=Item9
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame9State"]
IfFalseAction=[!ShowMeter "MeterGame9State"]
DynamicVariables=1

[MeasureGame9AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=52
Disabled=1
Group=Item9

[MeterGame9AwayScore]
Meter=String
MeasureName=MeasureGame9AwayScore
x=310
y=570
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=54
Disabled=1
Group=Item9

[MeterGame9HomeScore]
Meter=String
MeasureName=MeasureGame9HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=53
Disabled=1
Group=Item9

[MeterGame9AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9AwayTeam
x=250
y=570
w=30
h=30

[MeasureGame9HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=55
Disabled=1
Group=Item9

[MeterGame9HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame9State]
Meter=String
MeasureName=MeasureGame9DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 10;;;;;;;;;;;;;;;;;;

[MeasureGame10DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=56
Disabled=1
Group=Item10
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame10State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=57
Disabled=1
Group=Item10
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame10State"]
IfFalseAction=[!ShowMeter "MeterGame10State"]
DynamicVariables=1

[MeasureGame10AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=58
Disabled=1
Group=Item10

[MeterGame10AwayScore]
Meter=String
MeasureName=MeasureGame10AwayScore
x=310
y=640
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=60
Disabled=1
Group=Item10

[MeterGame10HomeScore]
Meter=String
MeasureName=MeasureGame10HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=59
Disabled=1
Group=Item10

[MeterGame10AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10AwayTeam
x=250
y=640
w=30
h=30

[MeasureGame10HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=61
Disabled=1
Group=Item10

[MeterGame10HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame10State]
Meter=String
MeasureName=MeasureGame10DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 11;;;;;;;;;;;;;;;;;;

[MeasureGame11DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=62
Disabled=1
Group=Item11
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame11State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=63
Disabled=1
Group=Item11
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame11State"]
IfFalseAction=[!ShowMeter "MeterGame11State"]
DynamicVariables=1

[MeasureGame11AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=64
Disabled=1
Group=Item11

[MeterGame11AwayScore]
Meter=String
MeasureName=MeasureGame11AwayScore
x=310
y=710
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=66
Disabled=1
Group=Item11

[MeterGame11HomeScore]
Meter=String
MeasureName=MeasureGame11HomeScore
x=r
y=30r
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=65
Disabled=1
Group=Item11

[MeterGame11AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11AwayTeam
x=250
y=710
w=30
h=30

[MeasureGame11HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=67
Disabled=1
Group=Item11

[MeterGame11HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame11State]
Meter=String
MeasureName=MeasureGame11DateTime
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 12;;;;;;;;;;;;;;;;;;

[MeasureGame12DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=68
Disabled=1
Group=Item12
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame12State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=69
Disabled=1
Group=Item12
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!HideMeter "MeterGame12State"]
IfFalseAction=[!ShowMeter "MeterGame12State"]
DynamicVariables=1

[MeasureGame12AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=70
Disabled=1
Group=Item12

[MeterGame12AwayScore]
Meter=String
MeasureName=MeasureGame12AwayScore
x=310
y=780
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=72
Disabled=1
Group=Item12

[MeterGame12HomeScore]
Meter=String
MeasureName=MeasureGame12HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=71
Disabled=1
Group=Item12

[MeterGame12AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12AwayTeam
x=250
y=780
w=30
h=30

[MeasureGame12HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=73
Disabled=1
Group=Item12

[MeterGame12HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame12State]
Meter=String
MeasureName=MeasureGame12DateTime
MeterStyle=StateStyle
Tical84
Posts: 25
Joined: November 24th, 2018, 9:34 pm

Re: Unexpected/Missing results using lookahead

Post by Tical84 »

Thanks again!
There are some tweaks I'd like to make, one of them being if the game is currently active show the period and time remaining in the same spot where it shows the start time if it hasn't started yet.
This one has me a little stumped because what I would like to grab is inside ""currentPeriodOrdinal" and "currentPeriodTimeRemaining" and those don't exist when the game hasn't started yet.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

Post by balala »

Tical84 wrote: December 18th, 2018, 1:12 am Thanks again!
There are some tweaks I'd like to make, one of them being if the game is currently active show the period and time remaining in the same spot where it shows the start time if it hasn't started yet.
Next version: I added the period. The remaining time is a bit harder to be added, because as you also said, it not always exists, so there a newer Lookahead assertion should have to be used. And there could be one more problem: a WebParser measure can return up to 99 string, not more. Now we are at 85 (last StringIndex is StringIndex=85), so we can't continue to add infinite more information to be returned.
So, first please check the following code and let me know what do you think about it:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,100

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
Away=(?(?=.*"gamePk").*"gameDate" : "(.*)",.*"abstractGameState" : "(.*)",.*"teams".*"score" : (\d*),.*"id" : (\d*),.*"score" : (\d*),.*"id" : (\d*),.*"currentPeriod" : (\d*),)

[StateStyle]
X=5
Y=-5r
W=200
H=56
FontSize=14
FontColor=255,255,255,255
StringAlign=LeftCenter
AntiAlias=1
Hidden=1

[MeasureNHL] 
Measure=WebParser 
UpdateRate=300
URL=https://statsapi.web.nhl.com/api/v1/schedule?expand=schedule.linescore
RegExp=(?siU)"totalItems" : (\d*),#Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away#
FinishAction=[!EnableMeasure "MeasureItemNum"][!UpdateMeasure "MeasureItemNum"]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 1;;;;;;;;;;;;;;;;;;

[MeasureItemNum]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=1
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!DisableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition2=(#CURRENTSECTION#=1)
IfTrueAction2=[!EnableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition3=(#CURRENTSECTION#=2)
IfTrueAction3=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition4=(#CURRENTSECTION#=3)
IfTrueAction4=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition5=(#CURRENTSECTION#=4)
IfTrueAction5=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition6=(#CURRENTSECTION#=5)
IfTrueAction6=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition7=(#CURRENTSECTION#=6)
IfTrueAction7=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition8=(#CURRENTSECTION#=7)
IfTrueAction8=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition9=(#CURRENTSECTION#=8)
IfTrueAction9=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition10=(#CURRENTSECTION#=9)
IfTrueAction10=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition11=(#CURRENTSECTION#=10)
IfTrueAction11=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition12=(#CURRENTSECTION#=11)
IfTrueAction12=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition13=(#CURRENTSECTION#=12)
IfTrueAction13=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!EnableMeasureGroup "Item12"]
Disabled=1

[MeasureGame1DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=2
Disabled=1
Group=Item1
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame1State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=3
Disabled=1
Group=Item1
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame1State Text "Period: %2"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
IfFalseAction=[!SetOption MeterGame1State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
DynamicVariables=1

[MeasureGame1AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=4
Disabled=1
Group=Item1

[MeterGame1AwayScore]
Meter=String
MeasureName=MeasureGame1AwayScore
x=310
y=10
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=6
Disabled=1
Group=Item1

[MeterGame1HomeScore]
Meter=String
MeasureName=MeasureGame1HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=5
Disabled=1
Group=Item1

[MeterGame1AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1AwayTeam
x=250
y=10
w=30
h=30

[MeasureGame1HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=7
Disabled=1
Group=Item1

[MeterGame1HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame1Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=8
Disabled=1
Group=Item1

[MeterGame1State]
Meter=String
MeasureName=MeasureGame1DateTime
MeasureName2=MeasureGame1Period
MeterStyle=StateStyle

; [MeasureGame1Period]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=5

; [MeterGame1Period]
; Meter=String
; MeasureName=MeasureGame1Period
; x=370
; y=35
; w=40
; h=40
; FontSize=15
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1

; [MeasureGame1Clock]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=6

; [MeterGame1Clock]
; Meter=String
; MeasureName=MeasureGame1Clock
; x=r
; y=30r
; w=40
; h=40l
; FontSize=15
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 2;;;;;;;;;;;;;;;;;;

[MeasureGame2DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=9
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame2State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=10
Disabled=1
Group=Item2
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame2State Text "Period: %2"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
IfFalseAction=[!SetOption MeterGame2State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
DynamicVariables=1

[MeasureGame2AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=11
Disabled=1
Group=Item2

[MeterGame2AwayScore]
Meter=String
MeasureName=MeasureGame2AwayScore
x=310
y=80
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=13
Disabled=1
Group=Item2

[MeterGame2HomeScore]
Meter=String
MeasureName=MeasureGame2HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=12
Disabled=1
Group=Item2

[MeterGame2AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2AwayTeam
x=250
y=80
w=30
h=30

[MeasureGame2HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=14
Disabled=1
Group=Item2

[MeterGame2HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame2Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=15
Disabled=1
Group=Item2

[MeterGame2State]
Meter=String
MeasureName=MeasureGame2DateTime
MeasureName2=MeasureGame2Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 3;;;;;;;;;;;;;;;;;;

[MeasureGame3DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=16
Disabled=1
Group=Item3
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame3State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=17
Disabled=1
Group=Item3
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame3State Text "Period: %2"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
IfFalseAction=[!SetOption MeterGame3State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
DynamicVariables=1

[MeasureGame3AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=18
Disabled=1
Group=Item3

[MeterGame3AwayScore]
Meter=String
MeasureName=MeasureGame3AwayScore
x=310
y=150
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=20
Disabled=1
Group=Item3

[MeterGame3HomeScore]
Meter=String
MeasureName=MeasureGame3HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=19
Disabled=1
Group=Item3

[MeterGame3AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3AwayTeam
x=250
y=150
w=30
h=30

[MeasureGame3HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=21
Disabled=1
Group=Item3

[MeterGame3HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame3Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=22
Disabled=1
Group=Item3

[MeterGame3State]
Meter=String
MeasureName=MeasureGame3DateTime
MeasureName2=MeasureGame3Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 4;;;;;;;;;;;;;;;;;;

[MeasureGame4DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=23
Disabled=1
Group=Item4
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame4State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=24
Disabled=1
Group=Item4
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame4State Text "Period: %2"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
IfFalseAction=[!SetOption MeterGame4State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
DynamicVariables=1

[MeasureGame4AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=25
Disabled=1
Group=Item4

[MeterGame4AwayScore]
Meter=String
MeasureName=MeasureGame4AwayScore
x=310
y=220
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=27
Disabled=1
Group=Item4

[MeterGame4HomeScore]
Meter=String
MeasureName=MeasureGame4HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=26
Disabled=1
Group=Item4

[MeterGame4AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4AwayTeam
x=250
y=220
w=30
h=30

[MeasureGame4HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=28
Disabled=1
Group=Item4

[MeasureGame4Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=29
Disabled=1
Group=Item4

[MeterGame4HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame4State]
Meter=String
MeasureName=MeasureGame4DateTime
MeasureName2=MeasureGame4Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 5;;;;;;;;;;;;;;;;;;

[MeasureGame5DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=30
Disabled=1
Group=Item5
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame5State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=31
Disabled=1
Group=Item5
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame5State Text "Period: %2"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
IfFalseAction=[!SetOption MeterGame5State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
DynamicVariables=1

[MeasureGame5AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=32
Disabled=1
Group=Item5

[MeterGame5AwayScore]
Meter=String
MeasureName=MeasureGame5AwayScore
x=310
y=290
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=34
Disabled=1
Group=Item5

[MeterGame5HomeScore]
Meter=String
MeasureName=MeasureGame5HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=33
Disabled=1
Group=Item5

[MeterGame5AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5AwayTeam
x=250
y=290
w=30
h=30

[MeasureGame5HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=35
Disabled=1
Group=Item5

[MeasureGame5Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=36
Disabled=1
Group=Item5

[MeterGame5HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame5State]
Meter=String
MeasureName=MeasureGame5DateTime
MeasureName2=MeasureGame5Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 6;;;;;;;;;;;;;;;;;;

[MeasureGame6DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=37
Disabled=1
Group=Item6
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame6State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=38
Disabled=1
Group=Item6
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame6State Text "Period: %2"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
IfFalseAction=[!SetOption MeterGame6State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
DynamicVariables=1

[MeasureGame6AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=39
Disabled=1
Group=Item6

[MeterGame6AwayScore]
Meter=String
MeasureName=MeasureGame6AwayScore
x=310
y=360
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=41
Disabled=1
Group=Item6

[MeterGame6HomeScore]
Meter=String
MeasureName=MeasureGame6HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=40
Disabled=1
Group=Item6

[MeterGame6AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6AwayTeam
x=250
y=360
w=30
h=30

[MeasureGame6HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=42
Disabled=1
Group=Item6

[MeasureGame6Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=43
Disabled=1
Group=Item6

[MeterGame6HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame6State]
Meter=String
MeasureName=MeasureGame6DateTime
MeasureName2=MeasureGame6Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 7;;;;;;;;;;;;;;;;;;

[MeasureGame7DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=44
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame7State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=45
Disabled=1
Group=Item7
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame7State Text "Period: %2"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
IfFalseAction=[!SetOption MeterGame7State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
DynamicVariables=1

[MeasureGame7AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=46
Disabled=1
Group=Item7

[MeterGame7AwayScore]
Meter=String
MeasureName=MeasureGame7AwayScore
x=310
y=430
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=48
Disabled=1
Group=Item7

[MeterGame7HomeScore]
Meter=String
MeasureName=MeasureGame7HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=47
Disabled=1
Group=Item7

[MeterGame7AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7AwayTeam
x=250
y=430
w=30
h=30

[MeasureGame7HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=49
Disabled=1
Group=Item7

[MeasureGame7Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=50
Disabled=1
Group=Item7

[MeterGame7HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame7State]
Meter=String
MeasureName=MeasureGame7DateTime
MeasureName2=MeasureGame7Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 8;;;;;;;;;;;;;;;;;;

[MeasureGame8DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=51
Disabled=1
Group=Item8
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame8State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=52
Disabled=1
Group=Item8
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame8State Text "Period: %2"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
IfFalseAction=[!SetOption MeterGame8State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
DynamicVariables=1

[MeasureGame8AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=53
Disabled=1
Group=Item8

[MeterGame8AwayScore]
Meter=String
MeasureName=MeasureGame8AwayScore
x=310
y=500
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=55
Disabled=1
Group=Item8

[MeterGame8HomeScore]
Meter=String
MeasureName=MeasureGame8HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=54
Disabled=1
Group=Item8

[MeterGame8AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8AwayTeam
x=250
y=500
w=30
h=30

[MeasureGame8HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=56
Disabled=1
Group=Item8

[MeasureGame8Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=57
Disabled=1
Group=Item8

[MeterGame8HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame8State]
Meter=String
MeasureName=MeasureGame8DateTime
MeasureName2=MeasureGame8Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 9;;;;;;;;;;;;;;;;;;

[MeasureGame9DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=58
Disabled=1
Group=Item9
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame9State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=59
Disabled=1
Group=Item9
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame9State Text "Period: %2"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
IfFalseAction=[!SetOption MeterGame9State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
DynamicVariables=1

[MeasureGame9AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=60
Disabled=1
Group=Item9

[MeterGame9AwayScore]
Meter=String
MeasureName=MeasureGame9AwayScore
x=310
y=570
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=62
Disabled=1
Group=Item9

[MeterGame9HomeScore]
Meter=String
MeasureName=MeasureGame9HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=61
Disabled=1
Group=Item9

[MeterGame9AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9AwayTeam
x=250
y=570
w=30
h=30

[MeasureGame9HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=63
Disabled=1
Group=Item9

[MeasureGame9Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=64
Disabled=1
Group=Item9

[MeterGame9HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame9State]
Meter=String
MeasureName=MeasureGame9DateTime
MeasureName2=MeasureGame9Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 10;;;;;;;;;;;;;;;;;;

[MeasureGame10DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=65
Disabled=1
Group=Item10
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame10State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=66
Disabled=1
Group=Item10
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame10State Text "Period: %2"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
IfFalseAction=[!SetOption MeterGame10State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
DynamicVariables=1

[MeasureGame10AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=67
Disabled=1
Group=Item10

[MeterGame10AwayScore]
Meter=String
MeasureName=MeasureGame10AwayScore
x=310
y=640
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=69
Disabled=1
Group=Item10

[MeterGame10HomeScore]
Meter=String
MeasureName=MeasureGame10HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=68
Disabled=1
Group=Item10

[MeterGame10AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10AwayTeam
x=250
y=640
w=30
h=30

[MeasureGame10HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=70
Disabled=1
Group=Item10

[MeasureGame10Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=71
Disabled=1
Group=Item10

[MeterGame10HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame10State]
Meter=String
MeasureName=MeasureGame10DateTime
MeasureName2=MeasureGame10Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 11;;;;;;;;;;;;;;;;;;

[MeasureGame11DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=72
Disabled=1
Group=Item11
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame11State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=73
Disabled=1
Group=Item11
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame11State Text "Period: %2"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
IfFalseAction=[!SetOption MeterGame11State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
DynamicVariables=1

[MeasureGame11AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=74
Disabled=1
Group=Item11

[MeterGame11AwayScore]
Meter=String
MeasureName=MeasureGame11AwayScore
x=310
y=710
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=76
Disabled=1
Group=Item11

[MeterGame11HomeScore]
Meter=String
MeasureName=MeasureGame11HomeScore
x=r
y=30r
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=75
Disabled=1
Group=Item11

[MeterGame11AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11AwayTeam
x=250
y=710
w=30
h=30

[MeasureGame11HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=77
Disabled=1
Group=Item11

[MeasureGame11Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=78
Disabled=1
Group=Item11

[MeterGame11HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame11State]
Meter=String
MeasureName=MeasureGame11DateTime
MeasureName2=MeasureGame11Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 12;;;;;;;;;;;;;;;;;;

[MeasureGame12DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=79
Disabled=1
Group=Item12
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame12State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=80
Disabled=1
Group=Item12
Substitute="Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=1)
IfTrueAction=[!SetOption MeterGame12State Text "Period: %2"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
IfFalseAction=[!SetOption MeterGame12State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
DynamicVariables=1

[MeasureGame12AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=81
Disabled=1
Group=Item12

[MeterGame12AwayScore]
Meter=String
MeasureName=MeasureGame12AwayScore
x=310
y=780
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=83
Disabled=1
Group=Item12

[MeterGame12HomeScore]
Meter=String
MeasureName=MeasureGame12HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=82
Disabled=1
Group=Item12

[MeterGame12AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12AwayTeam
x=250
y=780
w=30
h=30


[MeasureGame12HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=84
Disabled=1
Group=Item12

[MeasureGame12Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=85
Disabled=1
Group=Item12

[MeterGame12HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame12State]
Meter=String
MeasureName=MeasureGame12DateTime
MeasureName2=MeasureGame12Period
MeterStyle=StateStyle
Tical84
Posts: 25
Joined: November 24th, 2018, 9:34 pm

Re: Unexpected/Missing results using lookahead

Post by Tical84 »

Ya, that's what I thought re: time remaining. It would be nice to have but not critical if it can't be done.

If we can get timeremaining that's all I'd need. Each game has 7 strings now, I need 15 games total which makes 105(+1). If we can somehow get time remaining that would be 120(+1) total strings. Maybe we can do separate INI files? One for teams and scores, and one for start time/period? That way if someone else wants to use this skin but doesn't want the time remaining they can just not load that INI.

I have time tonight so I'm going to take a good look at your code. After all, I want to learn as well, not just blind copy. I think I have a plan, I just need to execute it.

Here is better HTML code. It has active games, games that are over, and games that haven't started yet.

Code: Select all

{
  "copyright" : "NHL and the NHL Shield are registered trademarks of the National Hockey League. NHL and NHL team marks are the property of the NHL and its teams. © NHL 2018. All Rights Reserved.",
  "totalItems" : 11,
  "totalEvents" : 0,
  "totalGames" : 11,
  "totalMatches" : 0,
  "wait" : 10,
  "dates" : [ {
    "date" : "2018-12-18",
    "totalItems" : 11,
    "totalEvents" : 0,
    "totalGames" : 11,
    "totalMatches" : 0,
    "games" : [ {
      "gamePk" : 2018020520,
      "link" : "/api/v1/game/2018020520/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T00:00:00Z",
      "status" : {
        "abstractGameState" : "Live",
        "codedGameState" : "4",
        "detailedState" : "In Progress - Critical",
        "statusCode" : "4",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 14,
            "losses" : 15,
            "ot" : 5,
            "type" : "league"
          },
          "score" : 2,
          "team" : {
            "id" : 17,
            "name" : "Detroit Red Wings",
            "link" : "/api/v1/teams/17"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 12,
            "losses" : 15,
            "ot" : 4,
            "type" : "league"
          },
          "score" : 3,
          "team" : {
            "id" : 4,
            "name" : "Philadelphia Flyers",
            "link" : "/api/v1/teams/4"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 3,
        "currentPeriodOrdinal" : "3rd",
        "currentPeriodTimeRemaining" : "END",
        "periods" : [ {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T00:08:28Z",
          "endTime" : "2018-12-19T00:43:26Z",
          "num" : 1,
          "ordinalNum" : "1st",
          "home" : {
            "goals" : 1,
            "shotsOnGoal" : 11,
            "rinkSide" : "right"
          },
          "away" : {
            "goals" : 0,
            "shotsOnGoal" : 8,
            "rinkSide" : "left"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T01:01:40Z",
          "endTime" : "2018-12-19T01:40:34Z",
          "num" : 2,
          "ordinalNum" : "2nd",
          "home" : {
            "goals" : 2,
            "shotsOnGoal" : 9,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 1,
            "shotsOnGoal" : 6,
            "rinkSide" : "right"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T01:58:47Z",
          "num" : 3,
          "ordinalNum" : "3rd",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 13,
            "rinkSide" : "right"
          },
          "away" : {
            "goals" : 1,
            "shotsOnGoal" : 8,
            "rinkSide" : "left"
          }
        } ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 4,
              "name" : "Philadelphia Flyers",
              "link" : "/api/v1/teams/4"
            },
            "goals" : 3,
            "shotsOnGoal" : 33,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 17,
              "name" : "Detroit Red Wings",
              "link" : "/api/v1/teams/17"
            },
            "goals" : 2,
            "shotsOnGoal" : 22,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          }
        },
        "powerPlayStrength" : "Even",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        },
        "powerPlayInfo" : {
          "situationTimeRemaining" : 0,
          "situationTimeElapsed" : 0,
          "inSituation" : false
        }
      },
      "venue" : {
        "id" : 5096,
        "name" : "Wells Fargo Center",
        "link" : "/api/v1/venues/5096"
      },
      "content" : {
        "link" : "/api/v1/game/2018020520/content"
      }
    }, {
      "gamePk" : 2018020521,
      "link" : "/api/v1/game/2018020521/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T01:00:00Z",
      "status" : {
        "abstractGameState" : "Live",
        "codedGameState" : "3",
        "detailedState" : "In Progress",
        "statusCode" : "3",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 18,
            "losses" : 11,
            "ot" : 5,
            "type" : "league"
          },
          "score" : 2,
          "team" : {
            "id" : 28,
            "name" : "San Jose Sharks",
            "link" : "/api/v1/teams/28"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 17,
            "losses" : 13,
            "ot" : 2,
            "type" : "league"
          },
          "score" : 0,
          "team" : {
            "id" : 30,
            "name" : "Minnesota Wild",
            "link" : "/api/v1/teams/30"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 2,
        "currentPeriodOrdinal" : "2nd",
        "currentPeriodTimeRemaining" : "01:29",
        "periods" : [ {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T01:09:01Z",
          "endTime" : "2018-12-19T01:42:13Z",
          "num" : 1,
          "ordinalNum" : "1st",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 8,
            "rinkSide" : "right"
          },
          "away" : {
            "goals" : 0,
            "shotsOnGoal" : 5,
            "rinkSide" : "left"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T02:00:49Z",
          "num" : 2,
          "ordinalNum" : "2nd",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 8,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 2,
            "shotsOnGoal" : 11,
            "rinkSide" : "right"
          }
        } ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 30,
              "name" : "Minnesota Wild",
              "link" : "/api/v1/teams/30"
            },
            "goals" : 0,
            "shotsOnGoal" : 16,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 28,
              "name" : "San Jose Sharks",
              "link" : "/api/v1/teams/28"
            },
            "goals" : 2,
            "shotsOnGoal" : 16,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          }
        },
        "powerPlayStrength" : "Even",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        },
        "powerPlayInfo" : {
          "situationTimeRemaining" : 89,
          "situationTimeElapsed" : 1111,
          "inSituation" : false
        }
      },
      "venue" : {
        "id" : 5098,
        "name" : "Xcel Energy Center",
        "link" : "/api/v1/venues/5098"
      },
      "content" : {
        "link" : "/api/v1/game/2018020521/content"
      }
    }, {
      "gamePk" : 2018020522,
      "link" : "/api/v1/game/2018020522/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T01:30:00Z",
      "status" : {
        "abstractGameState" : "Live",
        "codedGameState" : "3",
        "detailedState" : "In Progress",
        "statusCode" : "3",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 22,
            "losses" : 10,
            "ot" : 2,
            "type" : "league"
          },
          "score" : 1,
          "team" : {
            "id" : 18,
            "name" : "Nashville Predators",
            "link" : "/api/v1/teams/18"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 10,
            "losses" : 19,
            "ot" : 6,
            "type" : "league"
          },
          "score" : 0,
          "team" : {
            "id" : 16,
            "name" : "Chicago Blackhawks",
            "link" : "/api/v1/teams/16"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 2,
        "currentPeriodOrdinal" : "2nd",
        "currentPeriodTimeRemaining" : "16:47",
        "periods" : [ {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T01:39:52Z",
          "endTime" : "2018-12-19T02:13:32Z",
          "num" : 1,
          "ordinalNum" : "1st",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 12,
            "rinkSide" : "right"
          },
          "away" : {
            "goals" : 1,
            "shotsOnGoal" : 11,
            "rinkSide" : "left"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T02:31:56Z",
          "num" : 2,
          "ordinalNum" : "2nd",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 3,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 0,
            "shotsOnGoal" : 1,
            "rinkSide" : "right"
          }
        } ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 16,
              "name" : "Chicago Blackhawks",
              "link" : "/api/v1/teams/16"
            },
            "goals" : 0,
            "shotsOnGoal" : 15,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 18,
              "name" : "Nashville Predators",
              "link" : "/api/v1/teams/18"
            },
            "goals" : 1,
            "shotsOnGoal" : 12,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          }
        },
        "powerPlayStrength" : "Even",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        },
        "powerPlayInfo" : {
          "situationTimeRemaining" : 1007,
          "situationTimeElapsed" : 29,
          "inSituation" : false
        }
      },
      "venue" : {
        "id" : 5092,
        "name" : "United Center",
        "link" : "/api/v1/venues/5092"
      },
      "content" : {
        "link" : "/api/v1/game/2018020522/content"
      }
    }, {
      "gamePk" : 2018020523,
      "link" : "/api/v1/game/2018020523/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T01:30:00Z",
      "status" : {
        "abstractGameState" : "Live",
        "codedGameState" : "3",
        "detailedState" : "In Progress",
        "statusCode" : "3",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 22,
            "losses" : 10,
            "ot" : 2,
            "type" : "league"
          },
          "score" : 0,
          "team" : {
            "id" : 20,
            "name" : "Calgary Flames",
            "link" : "/api/v1/teams/20"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 16,
            "losses" : 14,
            "ot" : 3,
            "type" : "league"
          },
          "score" : 1,
          "team" : {
            "id" : 25,
            "name" : "Dallas Stars",
            "link" : "/api/v1/teams/25"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 2,
        "currentPeriodOrdinal" : "2nd",
        "currentPeriodTimeRemaining" : "18:22",
        "periods" : [ {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T01:37:10Z",
          "endTime" : "2018-12-19T02:17:06Z",
          "num" : 1,
          "ordinalNum" : "1st",
          "home" : {
            "goals" : 1,
            "shotsOnGoal" : 14,
            "rinkSide" : "right"
          },
          "away" : {
            "goals" : 0,
            "shotsOnGoal" : 6,
            "rinkSide" : "left"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T02:35:05Z",
          "num" : 2,
          "ordinalNum" : "2nd",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 2,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 0,
            "shotsOnGoal" : 0,
            "rinkSide" : "right"
          }
        } ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 25,
              "name" : "Dallas Stars",
              "link" : "/api/v1/teams/25"
            },
            "goals" : 1,
            "shotsOnGoal" : 16,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 20,
              "name" : "Calgary Flames",
              "link" : "/api/v1/teams/20"
            },
            "goals" : 0,
            "shotsOnGoal" : 6,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          }
        },
        "powerPlayStrength" : "Even",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        },
        "powerPlayInfo" : {
          "situationTimeRemaining" : 1102,
          "situationTimeElapsed" : 98,
          "inSituation" : false
        }
      },
      "venue" : {
        "id" : 5019,
        "name" : "American Airlines Center",
        "link" : "/api/v1/venues/5019"
      },
      "content" : {
        "link" : "/api/v1/game/2018020523/content"
      }
    }, {
      "gamePk" : 2018020524,
      "link" : "/api/v1/game/2018020524/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T02:00:00Z",
      "status" : {
        "abstractGameState" : "Live",
        "codedGameState" : "3",
        "detailedState" : "In Progress",
        "statusCode" : "3",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 12,
            "losses" : 15,
            "ot" : 4,
            "type" : "league"
          },
          "score" : 1,
          "team" : {
            "id" : 19,
            "name" : "St. Louis Blues",
            "link" : "/api/v1/teams/19"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 18,
            "losses" : 13,
            "ot" : 3,
            "type" : "league"
          },
          "score" : 0,
          "team" : {
            "id" : 22,
            "name" : "Edmonton Oilers",
            "link" : "/api/v1/teams/22"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 1,
        "currentPeriodOrdinal" : "1st",
        "currentPeriodTimeRemaining" : "03:35",
        "periods" : [ {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T02:07:45Z",
          "num" : 1,
          "ordinalNum" : "1st",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 8,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 1,
            "shotsOnGoal" : 9,
            "rinkSide" : "right"
          }
        } ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 22,
              "name" : "Edmonton Oilers",
              "link" : "/api/v1/teams/22"
            },
            "goals" : 0,
            "shotsOnGoal" : 8,
            "goaliePulled" : false,
            "numSkaters" : 4,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 19,
              "name" : "St. Louis Blues",
              "link" : "/api/v1/teams/19"
            },
            "goals" : 1,
            "shotsOnGoal" : 9,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : true
          }
        },
        "powerPlayStrength" : "5-on-4",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        },
        "powerPlayInfo" : {
          "situationTimeRemaining" : 120,
          "situationTimeElapsed" : 0,
          "inSituation" : true
        }
      },
      "venue" : {
        "id" : 5100,
        "name" : "Rogers Place",
        "link" : "/api/v1/venues/5100"
      },
      "content" : {
        "link" : "/api/v1/game/2018020524/content"
      }
    }, {
      "gamePk" : 2018020525,
      "link" : "/api/v1/game/2018020525/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T02:00:00Z",
      "status" : {
        "abstractGameState" : "Live",
        "codedGameState" : "3",
        "detailedState" : "In Progress",
        "statusCode" : "3",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 16,
            "losses" : 12,
            "ot" : 4,
            "type" : "league"
          },
          "score" : 0,
          "team" : {
            "id" : 2,
            "name" : "New York Islanders",
            "link" : "/api/v1/teams/2"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 14,
            "losses" : 16,
            "ot" : 2,
            "type" : "league"
          },
          "score" : 1,
          "team" : {
            "id" : 53,
            "name" : "Arizona Coyotes",
            "link" : "/api/v1/teams/53"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 1,
        "currentPeriodOrdinal" : "1st",
        "currentPeriodTimeRemaining" : "05:38",
        "periods" : [ {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T02:08:17Z",
          "num" : 1,
          "ordinalNum" : "1st",
          "home" : {
            "goals" : 1,
            "shotsOnGoal" : 8,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 0,
            "shotsOnGoal" : 9,
            "rinkSide" : "right"
          }
        } ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 53,
              "name" : "Arizona Coyotes",
              "link" : "/api/v1/teams/53"
            },
            "goals" : 1,
            "shotsOnGoal" : 8,
            "goaliePulled" : false,
            "numSkaters" : 4,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 2,
              "name" : "New York Islanders",
              "link" : "/api/v1/teams/2"
            },
            "goals" : 0,
            "shotsOnGoal" : 9,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : true
          }
        },
        "powerPlayStrength" : "5-on-4",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        },
        "powerPlayInfo" : {
          "situationTimeRemaining" : 120,
          "situationTimeElapsed" : 0,
          "inSituation" : true
        }
      },
      "venue" : {
        "id" : 5043,
        "name" : "Gila River Arena",
        "link" : "/api/v1/venues/5043"
      },
      "content" : {
        "link" : "/api/v1/game/2018020525/content"
      }
    }, {
      "gamePk" : 2018020526,
      "link" : "/api/v1/game/2018020526/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T03:00:00Z",
      "status" : {
        "abstractGameState" : "Preview",
        "codedGameState" : "2",
        "detailedState" : "Pre-Game",
        "statusCode" : "2",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 25,
            "losses" : 7,
            "ot" : 2,
            "type" : "league"
          },
          "score" : 0,
          "team" : {
            "id" : 14,
            "name" : "Tampa Bay Lightning",
            "link" : "/api/v1/teams/14"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 16,
            "losses" : 16,
            "ot" : 4,
            "type" : "league"
          },
          "score" : 0,
          "team" : {
            "id" : 23,
            "name" : "Vancouver Canucks",
            "link" : "/api/v1/teams/23"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 0,
        "periods" : [ ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 23,
              "name" : "Vancouver Canucks",
              "link" : "/api/v1/teams/23"
            },
            "goals" : 0,
            "shotsOnGoal" : 0,
            "goaliePulled" : false,
            "numSkaters" : 0,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 14,
              "name" : "Tampa Bay Lightning",
              "link" : "/api/v1/teams/14"
            },
            "goals" : 0,
            "shotsOnGoal" : 0,
            "goaliePulled" : false,
            "numSkaters" : 0,
            "powerPlay" : false
          }
        },
        "powerPlayStrength" : "Even",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        }
      },
      "venue" : {
        "id" : 5073,
        "name" : "Rogers Arena",
        "link" : "/api/v1/venues/5073"
      },
      "content" : {
        "link" : "/api/v1/game/2018020526/content"
      }
    }, {
      "gamePk" : 2018020527,
      "link" : "/api/v1/game/2018020527/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T03:30:00Z",
      "status" : {
        "abstractGameState" : "Preview",
        "codedGameState" : "1",
        "detailedState" : "Scheduled",
        "statusCode" : "1",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 22,
            "losses" : 9,
            "ot" : 2,
            "type" : "league"
          },
          "score" : 0,
          "team" : {
            "id" : 52,
            "name" : "Winnipeg Jets",
            "link" : "/api/v1/teams/52"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 11,
            "losses" : 20,
            "ot" : 3,
            "type" : "league"
          },
          "score" : 0,
          "team" : {
            "id" : 26,
            "name" : "Los Angeles Kings",
            "link" : "/api/v1/teams/26"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 0,
        "periods" : [ ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 26,
              "name" : "Los Angeles Kings",
              "link" : "/api/v1/teams/26"
            },
            "goals" : 0,
            "shotsOnGoal" : 0,
            "goaliePulled" : false,
            "numSkaters" : 0,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 52,
              "name" : "Winnipeg Jets",
              "link" : "/api/v1/teams/52"
            },
            "goals" : 0,
            "shotsOnGoal" : 0,
            "goaliePulled" : false,
            "numSkaters" : 0,
            "powerPlay" : false
          }
        },
        "powerPlayStrength" : "Even",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        }
      },
      "venue" : {
        "name" : "STAPLES Center",
        "link" : "/api/v1/venues/null"
      },
      "content" : {
        "link" : "/api/v1/game/2018020527/content"
      }
    }, {
      "gamePk" : 2018020517,
      "link" : "/api/v1/game/2018020517/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T00:00:00Z",
      "status" : {
        "abstractGameState" : "Final",
        "codedGameState" : "6",
        "detailedState" : "Final",
        "statusCode" : "6",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 13,
            "losses" : 13,
            "ot" : 6,
            "type" : "league"
          },
          "score" : 5,
          "team" : {
            "id" : 13,
            "name" : "Florida Panthers",
            "link" : "/api/v1/teams/13"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 20,
            "losses" : 10,
            "ot" : 5,
            "type" : "league"
          },
          "score" : 2,
          "team" : {
            "id" : 7,
            "name" : "Buffalo Sabres",
            "link" : "/api/v1/teams/7"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 3,
        "currentPeriodOrdinal" : "3rd",
        "currentPeriodTimeRemaining" : "Final",
        "periods" : [ {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T00:07:41Z",
          "endTime" : "2018-12-19T00:40:00Z",
          "num" : 1,
          "ordinalNum" : "1st",
          "home" : {
            "goals" : 1,
            "shotsOnGoal" : 6,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 0,
            "shotsOnGoal" : 9,
            "rinkSide" : "right"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T00:58:24Z",
          "endTime" : "2018-12-19T01:38:38Z",
          "num" : 2,
          "ordinalNum" : "2nd",
          "home" : {
            "goals" : 1,
            "shotsOnGoal" : 17,
            "rinkSide" : "right"
          },
          "away" : {
            "goals" : 1,
            "shotsOnGoal" : 11,
            "rinkSide" : "left"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T01:56:30Z",
          "endTime" : "2018-12-19T02:34:45Z",
          "num" : 3,
          "ordinalNum" : "3rd",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 9,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 4,
            "shotsOnGoal" : 16,
            "rinkSide" : "right"
          }
        } ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 7,
              "name" : "Buffalo Sabres",
              "link" : "/api/v1/teams/7"
            },
            "goals" : 2,
            "shotsOnGoal" : 32,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 13,
              "name" : "Florida Panthers",
              "link" : "/api/v1/teams/13"
            },
            "goals" : 5,
            "shotsOnGoal" : 36,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          }
        },
        "powerPlayStrength" : "Even",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        },
        "powerPlayInfo" : {
          "situationTimeRemaining" : 0,
          "situationTimeElapsed" : 1142,
          "inSituation" : false
        }
      },
      "venue" : {
        "id" : 5039,
        "name" : "KeyBank Center",
        "link" : "/api/v1/venues/5039"
      },
      "content" : {
        "link" : "/api/v1/game/2018020517/content"
      }
    }, {
      "gamePk" : 2018020518,
      "link" : "/api/v1/game/2018020518/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T00:00:00Z",
      "status" : {
        "abstractGameState" : "Final",
        "codedGameState" : "5",
        "detailedState" : "Game Over",
        "statusCode" : "5",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 21,
            "losses" : 10,
            "ot" : 2,
            "type" : "league"
          },
          "score" : 7,
          "team" : {
            "id" : 10,
            "name" : "Toronto Maple Leafs",
            "link" : "/api/v1/teams/10"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 11,
            "losses" : 13,
            "ot" : 7,
            "type" : "league"
          },
          "score" : 2,
          "team" : {
            "id" : 1,
            "name" : "New Jersey Devils",
            "link" : "/api/v1/teams/1"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 3,
        "currentPeriodOrdinal" : "3rd",
        "currentPeriodTimeRemaining" : "END",
        "periods" : [ {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T00:07:11Z",
          "endTime" : "2018-12-19T00:48:03Z",
          "num" : 1,
          "ordinalNum" : "1st",
          "home" : {
            "goals" : 1,
            "shotsOnGoal" : 8,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 3,
            "shotsOnGoal" : 11,
            "rinkSide" : "right"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T01:06:11Z",
          "endTime" : "2018-12-19T01:44:16Z",
          "num" : 2,
          "ordinalNum" : "2nd",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 9,
            "rinkSide" : "right"
          },
          "away" : {
            "goals" : 2,
            "shotsOnGoal" : 10,
            "rinkSide" : "left"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T02:02:35Z",
          "endTime" : "2018-12-19T02:37:01Z",
          "num" : 3,
          "ordinalNum" : "3rd",
          "home" : {
            "goals" : 1,
            "shotsOnGoal" : 12,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 2,
            "shotsOnGoal" : 10,
            "rinkSide" : "right"
          }
        } ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 1,
              "name" : "New Jersey Devils",
              "link" : "/api/v1/teams/1"
            },
            "goals" : 2,
            "shotsOnGoal" : 29,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : true
          },
          "away" : {
            "team" : {
              "id" : 10,
              "name" : "Toronto Maple Leafs",
              "link" : "/api/v1/teams/10"
            },
            "goals" : 7,
            "shotsOnGoal" : 31,
            "goaliePulled" : false,
            "numSkaters" : 4,
            "powerPlay" : false
          }
        },
        "powerPlayStrength" : "5-on-4",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        },
        "powerPlayInfo" : {
          "situationTimeRemaining" : 60,
          "situationTimeElapsed" : 60,
          "inSituation" : true
        }
      },
      "venue" : {
        "name" : "Prudential Center",
        "link" : "/api/v1/venues/null"
      },
      "content" : {
        "link" : "/api/v1/game/2018020518/content"
      }
    }, {
      "gamePk" : 2018020519,
      "link" : "/api/v1/game/2018020519/feed/live",
      "gameType" : "R",
      "season" : "20182019",
      "gameDate" : "2018-12-19T00:00:00Z",
      "status" : {
        "abstractGameState" : "Final",
        "codedGameState" : "6",
        "detailedState" : "Final",
        "statusCode" : "6",
        "startTimeTBD" : false
      },
      "teams" : {
        "away" : {
          "leagueRecord" : {
            "wins" : 19,
            "losses" : 12,
            "ot" : 5,
            "type" : "league"
          },
          "score" : 1,
          "team" : {
            "id" : 24,
            "name" : "Anaheim Ducks",
            "link" : "/api/v1/teams/24"
          }
        },
        "home" : {
          "leagueRecord" : {
            "wins" : 15,
            "losses" : 13,
            "ot" : 5,
            "type" : "league"
          },
          "score" : 3,
          "team" : {
            "id" : 3,
            "name" : "New York Rangers",
            "link" : "/api/v1/teams/3"
          }
        }
      },
      "linescore" : {
        "currentPeriod" : 3,
        "currentPeriodOrdinal" : "3rd",
        "currentPeriodTimeRemaining" : "Final",
        "periods" : [ {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T00:08:14Z",
          "endTime" : "2018-12-19T00:45:16Z",
          "num" : 1,
          "ordinalNum" : "1st",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 5,
            "rinkSide" : "right"
          },
          "away" : {
            "goals" : 0,
            "shotsOnGoal" : 8,
            "rinkSide" : "left"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T01:03:37Z",
          "endTime" : "2018-12-19T01:39:04Z",
          "num" : 2,
          "ordinalNum" : "2nd",
          "home" : {
            "goals" : 0,
            "shotsOnGoal" : 5,
            "rinkSide" : "left"
          },
          "away" : {
            "goals" : 1,
            "shotsOnGoal" : 6,
            "rinkSide" : "right"
          }
        }, {
          "periodType" : "REGULAR",
          "startTime" : "2018-12-19T01:57:25Z",
          "endTime" : "2018-12-19T02:35:15Z",
          "num" : 3,
          "ordinalNum" : "3rd",
          "home" : {
            "goals" : 3,
            "shotsOnGoal" : 14,
            "rinkSide" : "right"
          },
          "away" : {
            "goals" : 0,
            "shotsOnGoal" : 1,
            "rinkSide" : "left"
          }
        } ],
        "shootoutInfo" : {
          "away" : {
            "scores" : 0,
            "attempts" : 0
          },
          "home" : {
            "scores" : 0,
            "attempts" : 0
          }
        },
        "teams" : {
          "home" : {
            "team" : {
              "id" : 3,
              "name" : "New York Rangers",
              "link" : "/api/v1/teams/3"
            },
            "goals" : 3,
            "shotsOnGoal" : 24,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          },
          "away" : {
            "team" : {
              "id" : 24,
              "name" : "Anaheim Ducks",
              "link" : "/api/v1/teams/24"
            },
            "goals" : 1,
            "shotsOnGoal" : 15,
            "goaliePulled" : false,
            "numSkaters" : 5,
            "powerPlay" : false
          }
        },
        "powerPlayStrength" : "Even",
        "hasShootout" : false,
        "intermissionInfo" : {
          "intermissionTimeRemaining" : 0,
          "intermissionTimeElapsed" : 0,
          "inIntermission" : false
        },
        "powerPlayInfo" : {
          "situationTimeRemaining" : 0,
          "situationTimeElapsed" : 35,
          "inSituation" : false
        }
      },
      "venue" : {
        "id" : 5054,
        "name" : "Madison Square Garden",
        "link" : "/api/v1/venues/5054"
      },
      "content" : {
        "link" : "/api/v1/game/2018020519/content"
      }
    } ],
    "events" : [ ],
    "matches" : [ ]
  } ]
}
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

Post by balala »

Tical84 wrote: December 19th, 2018, 2:58 am Ya, that's what I thought re: time remaining. It would be nice to have but not critical if it can't be done.
Needs deeper researches. I hope it is possible. Let's see...

Tical84 wrote: December 19th, 2018, 2:58 am If we can get timeremaining that's all I'd need. Each game has 7 strings now, I need 15 games total which makes 105(+1). If we can somehow get time remaining that would be 120(+1) total strings. Maybe we can do separate INI files? One for teams and scores, and one for start time/period? That way if someone else wants to use this skin but doesn't want the time remaining they can just not load that INI.
This is a possibility, but even better would be (at least in my opinion), to have both parent WebParser measures into the same .ini skin. No need to add them to different skins. One skin can have as many parent WebParser measure as needed.
Tical84 wrote: December 19th, 2018, 2:58 am I have time tonight so I'm going to take a good look at your code. After all, I want to learn as well, not just blind copy. I think I have a plan, I just need to execute it.
Ok, go ahead (first take a look at the below reply, too). It's good if people want to learn and you'll get here all needed help.
Tical84 wrote: December 19th, 2018, 2:58 am Here is better HTML code. It has active games, games that are over, and games that haven't started yet.
The last posted HTML code shown that there is a third possibility as well: Final (I suppose this means the game has ended?). So, I had to modify the Substitute options and the IfConditions of the [MeasureGame1State] - [MeasureGame12State] measures.
The updated code:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,100

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
Away=(?(?=.*"gamePk").*"gameDate" : "(.*)",.*"abstractGameState" : "(.*)",.*"teams".*"score" : (\d*),.*"id" : (\d*),.*"score" : (\d*),.*"id" : (\d*),.*"currentPeriod" : (\d*),)

[StateStyle]
X=5
Y=-5r
W=200
H=56
FontSize=14
FontColor=255,255,255,255
StringAlign=LeftCenter
AntiAlias=1
;Text=Scheduled at:#CRLF#%1
Hidden=1

[MeasureNHL] 
Measure=WebParser 
UpdateRate=300
URL=file://#@#Results.inc
;URL=https://statsapi.web.nhl.com/api/v1/schedule?expand=schedule.linescore
RegExp=(?siU)"totalItems" : (\d*),#Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away##Away#
FinishAction=[!EnableMeasure "MeasureItemNum"][!UpdateMeasure "MeasureItemNum"]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 1;;;;;;;;;;;;;;;;;;

[MeasureItemNum]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=1
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!DisableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition2=(#CURRENTSECTION#=1)
IfTrueAction2=[!EnableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition3=(#CURRENTSECTION#=2)
IfTrueAction3=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition4=(#CURRENTSECTION#=3)
IfTrueAction4=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition5=(#CURRENTSECTION#=4)
IfTrueAction5=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition6=(#CURRENTSECTION#=5)
IfTrueAction6=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition7=(#CURRENTSECTION#=6)
IfTrueAction7=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition8=(#CURRENTSECTION#=7)
IfTrueAction8=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition9=(#CURRENTSECTION#=8)
IfTrueAction9=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition10=(#CURRENTSECTION#=9)
IfTrueAction10=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition11=(#CURRENTSECTION#=10)
IfTrueAction11=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition12=(#CURRENTSECTION#=11)
IfTrueAction12=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition13=(#CURRENTSECTION#=12)
IfTrueAction13=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!EnableMeasureGroup "Item12"]
Disabled=1

[MeasureGame1DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=2
Disabled=1
Group=Item1
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame1State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=3
Disabled=1
Group=Item1
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame1State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame1State Text "Period: %2"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame1State Text "Game ended"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
DynamicVariables=1

[MeasureGame1AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=4
Disabled=1
Group=Item1

[MeterGame1AwayScore]
Meter=String
MeasureName=MeasureGame1AwayScore
x=310
y=10
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=6
Disabled=1
Group=Item1

[MeterGame1HomeScore]
Meter=String
MeasureName=MeasureGame1HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=5
Disabled=1
Group=Item1

[MeterGame1AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1AwayTeam
x=250
y=10
w=30
h=30

[MeasureGame1HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=7
Disabled=1
Group=Item1

[MeterGame1HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame1Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=8
Disabled=1
Group=Item1

[MeterGame1State]
Meter=String
MeasureName=MeasureGame1DateTime
MeasureName2=MeasureGame1Period
MeterStyle=StateStyle

; [MeasureGame1Period]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=5

; [MeterGame1Period]
; Meter=String
; MeasureName=MeasureGame1Period
; x=370
; y=35
; w=40
; h=40
; FontSize=15
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1

; [MeasureGame1Clock]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=6

; [MeterGame1Clock]
; Meter=String
; MeasureName=MeasureGame1Clock
; x=r
; y=30r
; w=40
; h=40l
; FontSize=15
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 2;;;;;;;;;;;;;;;;;;

[MeasureGame2DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=9
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame2State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=10
Disabled=1
Group=Item2
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame2State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame2State Text "Period: %2"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame2State Text "Game ended"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
DynamicVariables=1

[MeasureGame2AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=11
Disabled=1
Group=Item2

[MeterGame2AwayScore]
Meter=String
MeasureName=MeasureGame2AwayScore
x=310
y=80
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=13
Disabled=1
Group=Item2

[MeterGame2HomeScore]
Meter=String
MeasureName=MeasureGame2HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=12
Disabled=1
Group=Item2

[MeterGame2AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2AwayTeam
x=250
y=80
w=30
h=30

[MeasureGame2HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=14
Disabled=1
Group=Item2

[MeterGame2HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame2Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=15
Disabled=1
Group=Item2

[MeterGame2State]
Meter=String
MeasureName=MeasureGame2DateTime
MeasureName2=MeasureGame2Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 3;;;;;;;;;;;;;;;;;;

[MeasureGame3DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=16
Disabled=1
Group=Item3
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame3State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=17
Disabled=1
Group=Item3
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame3State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame3State Text "Period: %2"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame3State Text "Game ended"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
DynamicVariables=1

[MeasureGame3AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=18
Disabled=1
Group=Item3

[MeterGame3AwayScore]
Meter=String
MeasureName=MeasureGame3AwayScore
x=310
y=150
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=20
Disabled=1
Group=Item3

[MeterGame3HomeScore]
Meter=String
MeasureName=MeasureGame3HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=19
Disabled=1
Group=Item3

[MeterGame3AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3AwayTeam
x=250
y=150
w=30
h=30

[MeasureGame3HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=21
Disabled=1
Group=Item3

[MeterGame3HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame3Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=22
Disabled=1
Group=Item3

[MeterGame3State]
Meter=String
MeasureName=MeasureGame3DateTime
MeasureName2=MeasureGame3Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 4;;;;;;;;;;;;;;;;;;

[MeasureGame4DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=23
Disabled=1
Group=Item4
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame4State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=24
Disabled=1
Group=Item4
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame4State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame4State Text "Period: %2"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame4State Text "Game ended"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
DynamicVariables=1

[MeasureGame4AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=25
Disabled=1
Group=Item4

[MeterGame4AwayScore]
Meter=String
MeasureName=MeasureGame4AwayScore
x=310
y=220
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=27
Disabled=1
Group=Item4

[MeterGame4HomeScore]
Meter=String
MeasureName=MeasureGame4HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=26
Disabled=1
Group=Item4

[MeterGame4AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4AwayTeam
x=250
y=220
w=30
h=30

[MeasureGame4HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=28
Disabled=1
Group=Item4

[MeasureGame4Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=29
Disabled=1
Group=Item4

[MeterGame4HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame4State]
Meter=String
MeasureName=MeasureGame4DateTime
MeasureName2=MeasureGame4Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 5;;;;;;;;;;;;;;;;;;

[MeasureGame5DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=30
Disabled=1
Group=Item5
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame5State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=31
Disabled=1
Group=Item5
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame5State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame5State Text "Period: %2"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame5State Text "Game ended"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
DynamicVariables=1

[MeasureGame5AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=32
Disabled=1
Group=Item5

[MeterGame5AwayScore]
Meter=String
MeasureName=MeasureGame5AwayScore
x=310
y=290
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=34
Disabled=1
Group=Item5

[MeterGame5HomeScore]
Meter=String
MeasureName=MeasureGame5HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=33
Disabled=1
Group=Item5

[MeterGame5AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5AwayTeam
x=250
y=290
w=30
h=30

[MeasureGame5HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=35
Disabled=1
Group=Item5

[MeasureGame5Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=36
Disabled=1
Group=Item5

[MeterGame5HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame5State]
Meter=String
MeasureName=MeasureGame5DateTime
MeasureName2=MeasureGame5Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 6;;;;;;;;;;;;;;;;;;

[MeasureGame6DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=37
Disabled=1
Group=Item6
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame6State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=38
Disabled=1
Group=Item6
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame6State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame6State Text "Period: %2"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame6State Text "Game ended"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
DynamicVariables=1

[MeasureGame6AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=39
Disabled=1
Group=Item6

[MeterGame6AwayScore]
Meter=String
MeasureName=MeasureGame6AwayScore
x=310
y=360
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=41
Disabled=1
Group=Item6

[MeterGame6HomeScore]
Meter=String
MeasureName=MeasureGame6HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=40
Disabled=1
Group=Item6

[MeterGame6AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6AwayTeam
x=250
y=360
w=30
h=30

[MeasureGame6HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=42
Disabled=1
Group=Item6

[MeasureGame6Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=43
Disabled=1
Group=Item6

[MeterGame6HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame6State]
Meter=String
MeasureName=MeasureGame6DateTime
MeasureName2=MeasureGame6Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 7;;;;;;;;;;;;;;;;;;

[MeasureGame7DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=44
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame7State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=45
Disabled=1
Group=Item7
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame7State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame7State Text "Period: %2"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame7State Text "Game ended"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
DynamicVariables=1

[MeasureGame7AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=46
Disabled=1
Group=Item7

[MeterGame7AwayScore]
Meter=String
MeasureName=MeasureGame7AwayScore
x=310
y=430
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=48
Disabled=1
Group=Item7

[MeterGame7HomeScore]
Meter=String
MeasureName=MeasureGame7HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=47
Disabled=1
Group=Item7

[MeterGame7AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7AwayTeam
x=250
y=430
w=30
h=30

[MeasureGame7HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=49
Disabled=1
Group=Item7

[MeasureGame7Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=50
Disabled=1
Group=Item7

[MeterGame7HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame7State]
Meter=String
MeasureName=MeasureGame7DateTime
MeasureName2=MeasureGame7Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 8;;;;;;;;;;;;;;;;;;

[MeasureGame8DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=51
Disabled=1
Group=Item8
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame8State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=52
Disabled=1
Group=Item8
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame8State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame8State Text "Period: %2"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame8State Text "Game ended"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
DynamicVariables=1

[MeasureGame8AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=53
Disabled=1
Group=Item8

[MeterGame8AwayScore]
Meter=String
MeasureName=MeasureGame8AwayScore
x=310
y=500
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=55
Disabled=1
Group=Item8

[MeterGame8HomeScore]
Meter=String
MeasureName=MeasureGame8HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=54
Disabled=1
Group=Item8

[MeterGame8AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8AwayTeam
x=250
y=500
w=30
h=30

[MeasureGame8HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=56
Disabled=1
Group=Item8

[MeasureGame8Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=57
Disabled=1
Group=Item8

[MeterGame8HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame8State]
Meter=String
MeasureName=MeasureGame8DateTime
MeasureName2=MeasureGame8Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 9;;;;;;;;;;;;;;;;;;

[MeasureGame9DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=58
Disabled=1
Group=Item9
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame9State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=59
Disabled=1
Group=Item9
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame9State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame9State Text "Period: %2"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame9State Text "Game ended"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
DynamicVariables=1

[MeasureGame9AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=60
Disabled=1
Group=Item9

[MeterGame9AwayScore]
Meter=String
MeasureName=MeasureGame9AwayScore
x=310
y=570
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=62
Disabled=1
Group=Item9

[MeterGame9HomeScore]
Meter=String
MeasureName=MeasureGame9HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=61
Disabled=1
Group=Item9

[MeterGame9AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9AwayTeam
x=250
y=570
w=30
h=30

[MeasureGame9HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=63
Disabled=1
Group=Item9

[MeasureGame9Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=64
Disabled=1
Group=Item9

[MeterGame9HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame9State]
Meter=String
MeasureName=MeasureGame9DateTime
MeasureName2=MeasureGame9Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 10;;;;;;;;;;;;;;;;;;

[MeasureGame10DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=65
Disabled=1
Group=Item10
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame10State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=66
Disabled=1
Group=Item10
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame10State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame10State Text "Period: %2"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame10State Text "Game ended"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
DynamicVariables=1

[MeasureGame10AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=67
Disabled=1
Group=Item10

[MeterGame10AwayScore]
Meter=String
MeasureName=MeasureGame10AwayScore
x=310
y=640
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=69
Disabled=1
Group=Item10

[MeterGame10HomeScore]
Meter=String
MeasureName=MeasureGame10HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=68
Disabled=1
Group=Item10

[MeterGame10AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10AwayTeam
x=250
y=640
w=30
h=30

[MeasureGame10HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=70
Disabled=1
Group=Item10

[MeasureGame10Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=71
Disabled=1
Group=Item10

[MeterGame10HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame10State]
Meter=String
MeasureName=MeasureGame10DateTime
MeasureName2=MeasureGame10Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 11;;;;;;;;;;;;;;;;;;

[MeasureGame11DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=72
Disabled=1
Group=Item11
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame11State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=73
Disabled=1
Group=Item11
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame11State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame11State Text "Period: %2"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame11State Text "Game ended"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
DynamicVariables=1

[MeasureGame11AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=74
Disabled=1
Group=Item11

[MeterGame11AwayScore]
Meter=String
MeasureName=MeasureGame11AwayScore
x=310
y=710
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=76
Disabled=1
Group=Item11

[MeterGame11HomeScore]
Meter=String
MeasureName=MeasureGame11HomeScore
x=r
y=30r
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=75
Disabled=1
Group=Item11

[MeterGame11AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11AwayTeam
x=250
y=710
w=30
h=30

[MeasureGame11HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=77
Disabled=1
Group=Item11

[MeasureGame11Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=78
Disabled=1
Group=Item11

[MeterGame11HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame11State]
Meter=String
MeasureName=MeasureGame11DateTime
MeasureName2=MeasureGame11Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 12;;;;;;;;;;;;;;;;;;

[MeasureGame12DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=79
Disabled=1
Group=Item12
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\1 \2"

[MeasureGame12State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=80
Disabled=1
Group=Item12
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame12State Text "Scheduled at:#CRLF#%1"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame12State Text "Period: %2"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame12State Text "Game ended"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
DynamicVariables=1

[MeasureGame12AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=81
Disabled=1
Group=Item12

[MeterGame12AwayScore]
Meter=String
MeasureName=MeasureGame12AwayScore
x=310
y=780
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=83
Disabled=1
Group=Item12

[MeterGame12HomeScore]
Meter=String
MeasureName=MeasureGame12HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=82
Disabled=1
Group=Item12

[MeterGame12AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12AwayTeam
x=250
y=780
w=30
h=30


[MeasureGame12HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=84
Disabled=1
Group=Item12

[MeasureGame12Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=85
Disabled=1
Group=Item12

[MeterGame12HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame12State]
Meter=String
MeasureName=MeasureGame12DateTime
MeasureName2=MeasureGame12Period
MeterStyle=StateStyle
Tical84
Posts: 25
Joined: November 24th, 2018, 9:34 pm

Re: Unexpected/Missing results using lookahead

Post by Tical84 »

You posted a quote twice but I had already noticed that. I just added "final: 1" to the substitute so "live" and "final" both substitute to 1. Is that what you did?
I also removed the "\1" from the date/time since I don't need the date as it will always only show the current date.

Edit: nevermind. Your way is better.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

Post by balala »

Tical84 wrote: December 19th, 2018, 5:20 pm You posted a quote twice but I had already noticed that. I just added "final: 1" to the substitute so "live" and "final" both substitute to 1. Is that what you did?
I also removed the "\1" from the date/time since I don't need the date as it will always only show the current date.
No, take care first I posted a code accidentally (some errors with my mouse?), but in the meantime I fixed my previous post. The code posted then wasn't the corrected one. Take a look to my previous post now, please. Sorry...
Tical84
Posts: 25
Joined: November 24th, 2018, 9:34 pm

Re: Unexpected/Missing results using lookahead

Post by Tical84 »

Yes, I saw the edit after I posted. Thank you.

Last night I changed the location of some things so I'll incorporate what you did, then send back a revised skin later tonight (tomorrow your time)