<commit_before>[Rainmeter]
Author = Harrix (har<EMAIL>)

[Metadata]
Description = Weather. Modified by <NAME> (modified by Shiva).
Instructions = Edit parameters in Variables.inc.
Version = 1.0
License = MIT

[Variables]
@Include = #ROOTCONFIGPATH#@Resources\Variables.inc

[Current]
Measure = Plugin
Plugin = Plugins\WebParser.dll
UpdateRate = #WeatherUpdate#
Url = http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=m&dayf=0&locale=ru
RegExp = "(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"

[Today]
Measure = Plugin
Plugin = Plugins\WebParser.dll
UpdateRate = #WeatherUpdate#
Url = http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=m&dayf=1&locale=ru
RegExp = "(?siU)<dayf>.*<lsup>(.*)</lsup>.*<day d="0" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

[Tomorrow]
Measure = Plugin
Plugin = Plugins\WebParser.dll
UpdateRate = #WeatherUpdate#
Url = http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=m&dayf=2&locale=ru
RegExp = "(?siU)<day d="1" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

[DayAfter]
Measure = Plugin
Plugin = Plugins\WebParser.dll
UpdateRate = #WeatherUpdate#
Url = http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=m&dayf=3&locale=ru
RegExp = "(?siU)<day d="2" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

;[Current]

[MeasureWeatherTemp]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Current]
StringIndex = 17

[MeasureWeatherDesc]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Current]
StringIndex = 19
Substitute = " And ":" and ","Lgt.":"Light ","Snow/":"Snow & "

[MeasureWeatherIcon]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Current]
StringIndex = 20

[MeasureWeatherRealFeel]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Current]
StringIndex = 18

[MeterRealFeelText]
MeasureName = MeasureCheckStatus
Measure = String
String = "Feels like"
Substitute = #WeatherTranslate#

;[Today]

[MeasureWeatherDesc1]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 9
Substitute = " And ":" and "

[MeasureWeatherDay1]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 2

[MeasureWeatherTemp1]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 4

[MeasureWeatherIcon1]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 8
Substitute = "":"666"

[MeterDay1Text]
Measure = String
String = Today
Substitute = #WeatherTranslate#

[CheckNATemp]
Measure = Calc
Formula = [MeasureWeatherIcon1]
IfBelowValue = 665
IfBelowAction = !execute [!RainmeterHideMeter MeterNightTemp1][!RainmeterHideMeter MeterNightDay1][!RainmeterHideMeter MeterNightDesc1][!RainmeterHideMeter MeterNightIcon1][!RainmeterShowMeter MeterTemp1][!RainmeterShowMeter MeterDay1][!RainmeterShowMeter MeterDesc1][!RainmeterShowMeter MeterIcon1]
IfEqualValue = 666
IfEqualAction = !execute [!RainmeterHideMeter MeterTemp1][!RainmeterHideMeter MeterDay1][!RainmeterHideMeter MeterDesc1][!RainmeterHideMeter MeterIcon1][!RainmeterShowMeter MeterNightTemp1][!RainmeterShowMeter MeterNightDay1][!RainmeterShowMeter MeterNightDesc1][!RainmeterShowMeter MeterNightIcon1]
DynamicVariables = 1

;[Tonight]

[MeasureWeatherNightDesc]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 18
Substitute = " And ":" and "

[MeasureWeatherNightTemp]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 5

[MeasureWeatherNightIcon]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 17

[MeterNightDay1Text]
Measure = String
String = Tonight
Substitute = #WeatherTranslate#

;[Tomorrow]

[MeasureWeatherDesc2]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Tomorrow]
StringIndex = 8
Substitute = " And ":" and "

[MeasureWeatherDay2]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Tomorrow]
StringIndex = 1

[MeasureWeatherTemp2]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Tomorrow]
StringIndex = 3

[MeasureWeatherIcon2]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Tomorrow]
StringIndex = 7

[MeterDay2Text]
Measure = String
String = Tomorrow
Substitute = #WeatherTranslate#

;[DayAfter]

[MeasureWeatherDesc3]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [DayAfter]
StringIndex = 8
Substitute = " And ":" and "

[MeasureWeatherDay3]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [DayAfter]
StringIndex = 1
Substitute = #WeatherTranslate#

[MeasureWeatherTemp3]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [DayAfter]
StringIndex = 3

;D+3, weather icon, id = 38
[MeasureWeatherIcon3]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [DayAfter]
StringIndex = 7

;[Display current]

[MeterTemp]
MeasureName = MeasureWeatherTemp
Meter = String
X = 500
Y = 5
FontColor = #WeatherColor#
StringStyle = Normal
FontSize = 36
StringAlign = Right<commit_msg>Delete unnecessary lines in the code.<commit_after>[Rainmeter]
Author = Harrix (<EMAIL>)

[Metadata]
Description = Weather. Modified by <NAME> (modified by Shiva).
Instructions = Edit parameters in Variables.inc.
Version = 1.0
License = MIT

[Variables]
@Include = #ROOTCONFIGPATH#@Resources\Variables.inc

[Current]
Measure = Plugin
Plugin = Plugins\WebParser.dll
UpdateRate = #WeatherUpdate#
Url = http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=m&dayf=0&locale=ru
RegExp = "(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"

[Today]
Measure = Plugin
Plugin = Plugins\WebParser.dll
UpdateRate = #WeatherUpdate#
Url = http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=m&dayf=1&locale=ru
RegExp = "(?siU)<dayf>.*<lsup>(.*)</lsup>.*<day d="0" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

[Tomorrow]
Measure = Plugin
Plugin = Plugins\WebParser.dll
UpdateRate = #WeatherUpdate#
Url = http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=m&dayf=2&locale=ru
RegExp = "(?siU)<day d="1" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

[DayAfter]
Measure = Plugin
Plugin = Plugins\WebParser.dll
UpdateRate = #WeatherUpdate#
Url = http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=m&dayf=3&locale=ru
RegExp = "(?siU)<day d="2" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

;[Current]

[MeasureWeatherTemp]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Current]
StringIndex = 17

[MeasureWeatherDesc]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Current]
StringIndex = 19
Substitute = " And ":" and ","Lgt.":"Light ","Snow/":"Snow & "

[MeasureWeatherIcon]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Current]
StringIndex = 20

[MeasureWeatherRealFeel]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Current]
StringIndex = 18

[MeterRealFeelText]
MeasureName = MeasureCheckStatus
Measure = String
String = "Feels like"
Substitute = #WeatherTranslate#

;[Today]

[MeasureWeatherDesc1]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 9
Substitute = " And ":" and "

[MeasureWeatherDay1]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 2

[MeasureWeatherTemp1]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 4

[MeasureWeatherIcon1]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 8
Substitute = "":"666"

[MeterDay1Text]
Measure = String
String = Today
Substitute = #WeatherTranslate#

[CheckNATemp]
Measure = Calc
Formula = [MeasureWeatherIcon1]
IfBelowValue = 665
IfBelowAction = !execute [!RainmeterHideMeter MeterNightTemp1][!RainmeterHideMeter MeterNightDay1][!RainmeterHideMeter MeterNightDesc1][!RainmeterHideMeter MeterNightIcon1][!RainmeterShowMeter MeterTemp1][!RainmeterShowMeter MeterDay1][!RainmeterShowMeter MeterDesc1][!RainmeterShowMeter MeterIcon1]
IfEqualValue = 666
IfEqualAction = !execute [!RainmeterHideMeter MeterTemp1][!RainmeterHideMeter MeterDay1][!RainmeterHideMeter MeterDesc1][!RainmeterHideMeter MeterIcon1][!RainmeterShowMeter MeterNightTemp1][!RainmeterShowMeter MeterNightDay1][!RainmeterShowMeter MeterNightDesc1][!RainmeterShowMeter MeterNightIcon1]
DynamicVariables = 1

;[Tonight]

[MeasureWeatherNightDesc]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 18
Substitute = " And ":" and "

[MeasureWeatherNightTemp]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 5

[MeasureWeatherNightIcon]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Today]
StringIndex = 17

[MeterNightDay1Text]
Measure = String
String = Tonight
Substitute = #WeatherTranslate#

;[Tomorrow]

[MeasureWeatherDesc2]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Tomorrow]
StringIndex = 8
Substitute = " And ":" and "

[MeasureWeatherDay2]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Tomorrow]
StringIndex = 1

[MeasureWeatherTemp2]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Tomorrow]
StringIndex = 3

[MeasureWeatherIcon2]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [Tomorrow]
StringIndex = 7

[MeterDay2Text]
Measure = String
String = Tomorrow
Substitute = #WeatherTranslate#

;[DayAfter]

[MeasureWeatherDesc3]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [DayAfter]
StringIndex = 8
Substitute = " And ":" and "

[MeasureWeatherDay3]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [DayAfter]
StringIndex = 1
Substitute = #WeatherTranslate#

[MeasureWeatherTemp3]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [DayAfter]
StringIndex = 3

[MeasureWeatherIcon3]
Measure = Plugin
Plugin = Plugins\WebParser.dll
Url = [DayAfter]
StringIndex = 7

;[Display current]

[MeterTemp]
MeasureName = MeasureWeatherTemp
Meter = String
X = 500
Y = 5
FontColor = #WeatherColor#
StringStyle = Normal
FontSize = 36
StringAlign = Right
{'fraction_non_alphanumeric': 0.2750974845171649, 'fraction_numerical': 0.012768560287483752, 'mean_word_length': 5.711133914828117, 'pattern_counts': {'":': 16, '<': 447, '<?xml version=': 0, '>': 441, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6239133', 'n_tokens_mistral': 5695, 'n_tokens_neox': 5383, 'n_words': 739}