I had written my reply when you posted yours, so I'm posting this as well, if interested. Take into account especially to disable the [InfoGMClan] measure (second point), to avoid error messages in log.
Final solution probably is between what Yincognito and I said. Here is what I mean: you probably have to:
- Replace the URL of the [InfoGMClan] measure, by the following: URL=https://api.worldoftanks.ru/wot/globalmap/claninfo/?application_id=bf049cf6db102d4f0536904348d02500&clan_id=[&MeasureGMCompetitor] (see red what has been replaced).
- Since when you're refreshing / loading the skin, the [MeasureGMCompetitor] measure doesn't have a value and it takes a while it to get the value (all WebParser measures needs a few seconds to get their values), add a Disabled=1 option to the [InfoGMClan] measure. With this you get it disabled when you're refreshing / loading the skin. To get it enabled when the [MeasureGMCompetitor] measure gets its value, you have to enable it throguh the FinishAction option, added to the [InfoGM] measure. In paralel, you have to update the [InfoGMClan] measure as well, to get it parsing the site. So, add the following FinishAction option to the [InfoGM] measure: FinishAction=[!EnableMeasure "InfoGMClan"][!CommandMeasure "InfoGMClan" "Update"].
With these updates, the code looks like this:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
@Include=#@#Settings.inc
fontName=Roboto Condensed
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
ImageAlpha=100
ImageAlpha2=50
UpdateTime=3000
ClanID=422394
;422394
;Последние 3 цифры ID Клана
ClanID3=418551
Discord=C:\Users\%UserName%\AppData\Local\Discord\Update.exe --processStart Discord.exe
WoT=D:\Games\World_of_Tanks_RU\WorldOfTanks.exe
[InfoGM]
Measure=WebParser
URL=https://api.worldoftanks.ru/wot/globalmap/clanbattles/?application_id=bf049cf6db102d4f0536904348d02500&clan_id=#ClanID#
UpdateRate=#UpdateTime#
RegExp=.*attack_type.*:.*,.*front_id.*:.*,.*front_name.*:.*,.*competitor_id.*:(.*),.*time.*:(.*),.*vehicle_level.*:.*,.*province_id.*:.*,.*type.*:(.*),.*province_name.*:(.*)"
DynamicVariables=1
FinishAction=[!EnableMeasure "InfoGMClan"][!CommandMeasure "InfoGMClan" "Update"]
[MeasureGMCompetitor]
Measure=WebParser
URL=[InfoGM]
StringIndex=1
RegExpSubstitute=1
Substitute="^$":"N/A"
[MeasureGMTime]
Measure=WebParser
URL=[InfoGM]
StringIndex=2
RegExpSubstitute=1
Substitute="^$":"У клана нет назначеных боёв"
[MeasureGMType]
Measure=WebParser
URL=[InfoGM]
StringIndex=3
RegExpSubstitute=1
Substitute="^$":"N/A","attack":"Атака","defence":"Оборона"
[MeasureGMProvince]
Measure=WebParser
URL=[InfoGM]
StringIndex=4
RegExpSubstitute=1
Substitute="^$":"N/A"
[MeterGM]
Meter=String
MeterStyle=styleRightText
MeasureName=MeasureGMCompetitor
;MeasureName2=MeasureTimeConvert
MeasureName2=MeasureGMType
MeasureName3=MeasureGMProvince
StringStyle=Bold
FontFace=Roboto Condensed
FontSize=10
FontColor=255,255,255
AntiAlias=1
X=10
Y=25r
W=250
H=15
Text=Начало боев: %2
ToolTipType=1
ToolTipText=Тип:%3, Провинция:%4
Hidden=0
SolidColor=0,0,0,1
;Тег и название клана противника
[InfoGMClan]
Measure=WebParser
URL=https://api.worldoftanks.ru/wot/globalmap/claninfo/?application_id=bf049cf6db102d4f0536904348d02500&clan_id=[&MeasureGMCompetitor]
UpdateRate=#UpdateTime#
RegExp=.*elo_10":(.*),.*elo_8.*,"name":(.*),"tag":(.*),.*private"
DynamicVariables=1
Disabled=1
[MeasureGMElo_10]
Measure=WebParser
URL=[InfoGMClan]
StringIndex=1
RegExpSubstitute=1
Substitute="^$":"N/A"
[MeasureGMName]
Measure=WebParser
URL=[InfoGMClan]
StringIndex=2
RegExpSubstitute=1
Substitute="^$":"N/A"
[MeasureGMTag]
Measure=WebParser
URL=[InfoGMClan]
StringIndex=3
RegExpSubstitute=1
Substitute="^$":"N/A"
[MeterGM2]
Meter=String
MeasureName=MeasureGMElo_10
MeasureName2=MeasureGMName
MeasureName3=MeasureGMTag
StringStyle=Bold
FontFace=Roboto Condensed
FontSize=10
FontColor=255,255,255,120
AntiAlias=1
X=10
Y=25r
W=250
H=15
Text=Клан: %3, Elo:%1
ToolTipText=Название клана:%2
ToolTipType=1
Hidden=0
SolidColor=0,0,0,1
Note a few additional updates I did:
- Added a DynamicWindowSize=1 option to the [Rainmeter] section (in fact I added the whole [Rainmeter] section, which hasn't been posted previuously).
- Added a SolidColor=0,0,0,1 option to all the String meters, to get them easily clickable.
- Replaced the Substitute="":"N/A" options with a RegExpSubstitute=1 and a Substitute="^$":"N/A" (on some measures, additional substitutes have been made, took them into account). This is needed, because this step tells clearly Rainmeter to substitute ONLY if the measure returns nothing (is empty).
- Although a while ago WebParser indeed was a plugin, in meantime it has been converted to an internale measure. As such, you should not use the Measure=Plugin and Plugin=WebParser options pair, but should replace them with the simpler Measure=WebParser (obviously on all such measures). I did this as well.