Then you might look at this:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[MeasureSite]
Measure=WebParser
URL=https://www.spaceflightinsider.com/launch-schedule/
RegExp=(?siU)^(.*)$
FinishAction=[!EnableMeasureGroup NextMission]
[MeasureNextMission]
Measure=WebParser
Group=NextMission
URL=[MeasureSite]
RegExp=(?siU)Next Launch:.*<table>(.*)</table>
Disabled=1
[MeasureNextMissionName]
Measure=WebParser
Group=NextMission
URL=[MeasureNextMission]
RegExp=(?siU)<td class="mission"><a href.*>(.*)</a>
StringIndex=1
StringIndex2=1
[MeasureNextMissionVehicle]
Measure=WebParser
Group=NextMission
URL=[MeasureNextMission]
RegExp=(?siU)<td class="vehicle">(.*)</td>
StringIndex=1
StringIndex2=1
Disabled=1
[MeasureNextMissionDateTime]
Measure=WebParser
Group=NextMission
URL=[MeasureNextMission]
RegExp=(?siU)<th>Time</th>.*<td>(.*)</td>
StringIndex=1
StringIndex2=1
Disabled=1
[MeterNextMissionName]
Meter=String
MeasureName=MeasureNextMissionName
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
[MeterNextMissionVehicle]
Meter=String
MeasureName=MeasureNextMissionVehicle
Y=R
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
[MeterNextMissionDateTime]
Meter=String
MeasureName=MeasureNextMissionDateTime
Y=R
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
So the goal is to get the entire site into one "super parent" , that you then create a "parent" for the individual "chunk" of the code that contains the information you want. Then you create parent/child measures, using StringIndex=1 to get the result of parent, (the "child bit") and using a RegExp and StringIndex2=1 to extract the specific bit you want (the "parent" bit).
So in a sense [MeasureNextMissionName] is a "child / parent / child". StringIndex makes is a "child", RegExp makes it a "parent" and StringIndex2 makes it a "child" (of itself).
The long and the short of this is that if the "chunk" for "Next launch" fails, other "chunks" you might get with this same approach will not.
There are several ways to approach this, but the overarching goal should be to only hit the site itself one time. The idea here is much the same as your 7 separate "parent" measures, but having only one of the 7 actually trudge out to the site and download the information. All the others just use the information that first, "super parent" measures gets.