Code: Select all
[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
ContextTitle=> Fahrenheit
ContextAction=[!WritekeyValue MeterTemp MeasureName MeasureTempFahrenheit][!WritekeyValue MeterFeelsLike MeasureName MeasureFeelLikeFahrenheit][!WritekeyValue MeterNightTemperature MeasureName MeasureMinTemperatureNightFahrenheit][!WritekeyValue MeterDayTemperature MeasureName MeasureMaxTemperatureDayFahrenheit][!WritekeyValue Variables TempSymbol F][!Refresh]
ContextTitle2=> Celsius
ContextAction2=[!WritekeyValue MeterTemp MeasureName MeasureTempCelsius][!WritekeyValue MeterFeelsLike MeasureName MeasureFeelLikeCelsius][!WritekeyValue MeterNightTemperature MeasureName MeasureMinTempCelsius][!WritekeyValue MeterDayTemperature MeasureName MeasureMaxTempCelsius][!WritekeyValue Variables TempSymbol C][!Refresh]
ContextTitle3=> Location > [MeasureLocation] <
ContextAction3=["https://www.yahoo.com/news/weather"]
ContextTitle4=> Font Color
ContextAction4=["#@#Addons\RainRGB4.exe" "VarName=Color1" "FileName=#@#Variables.inc"]
ContextTitle5=> 24hTime
ContextAction5=[!WriteKeyValue Variables Format "H" "#@#Variables.inc"][!WriteKeyValue Variables Hidden2 "1" "#@#Variables.inc"][!WriteKeyValue Variables Hidden "0" "#@#Variables.inc"][!Refresh *]
ContextTitle6=> 12hTime
ContextAction6=[!WriteKeyValue Variables Format "#I" "#@#Variables.inc"][!WriteKeyValue Variables Hidden2 "0" "#@#Variables.inc"][!WriteKeyValue Variables Hidden "1" "#@#Variables.inc"][!Refresh *]
ContextTitle7=> Translate
ContextAction7=["#ROOTCONFIGPATH#@Resources\Language\Language.inc"]
ContextTitle8=> MediaMonkey
ContextAction8=[!WriteKeyValue Variables Player MediaMonkey "#@#Variables.inc"][!Refresh *]
ContextTitle9=> iTunes
ContextAction9=[!WriteKeyValue Variables Player iTunes "#@#Variables.inc"][!Refresh *]
ContextTitle10=> Windows Media Player
ContextAction10=[!WriteKeyValue Variables Player WMP "#@#Variables.inc"][!Refresh *]
ContextTitle11=> Winamp
ContextAction11=[!WriteKeyValue Variables Player Winamp "#@#Variables.inc"][!Refresh *]
ContextTitle12=> Foobar2000
ContextAction12=[!WriteKeyValue Variables Player CAD "#@#Variables.inc"][!Refresh *]
ContextTitle13=> AIMP
ContextAction13=[!WriteKeyValue Variables Player AIMP "#@#Variables.inc"][!Refresh *]
ContextTitle14=> MusicBee
ContextAction14=[!WriteKeyValue Variables Player CAD "#@#Variables.inc"][!Refresh *]
ContextTitle15=> J.River Media
ContextAction15=[!WriteKeyValue Variables Player CAD "#@#Variables.inc"][!Refresh *]
ContextTitle16=> Spotify (Desktop v.)
ContextAction16=[!WriteKeyValue Variables Player Spotify "#@#Variables.inc"][!Refresh *]
[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=2.9
TempSymbol=C
;-----------------------------------------------------------—
;-----------------------------------------------------------—
[MeasureWeather]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather
RegExp=<h1 class="Fz\(3rem\)\-\-miw1250 Fz\(2.65rem\)\-\-miw1024 Fz\(1.62rem\) Fw\(n\) Lh\(1\) Trsdu\(.3s\) Wob\(ba\)">([^<]+).*<span class="Va\(t\) D\(b\) fahrenheit celsius_D\(n\)">([^<]+).*<img class=wafer-img data-wf-src=.*60x60\/([^\@]+).*
UpdateRate=900
[MeasureWeather_Additional]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather
RegExp=<span class="Va\(m\) Px\(6px\) D\(b\) celsius_D\(n\)">([^°]+).*<span class="Va\(m\) Px\(6px\) D\(b\) celsius_D\(n\)">([^°]+).*
UpdateRate=900
;-----------------------------------------------------------—
;-----------------------------------------------------------—
[MeasureLocation]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather]
StringIndex=1
[MeasureIcon]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather]
StringIndex=3
DynamicVariables=1
Substitute="rain_day_night":"rain","scattered_showers_day_night":"rain","windy_day_night":"wind","mostly_cloudy_day_night":"cloudy","cloudy_day_night":"cloudy","snow_rain_mix_day_night":"sleet","fair_day":"clear_day","fair_night":"clear_night","flurries_day_night":"snow","snow_day_night":"snow","thundershowers_day_night":"thunder","fog_day_night":"fog"
[MeasureDescription]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather]
StringIndex=1
Substitute=#Conditions#
[MeasureMaxTemperatureDayFahrenheit]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather_Additional]
StringIndex=2
[MeasureMinTemperatureNightFahrenheit]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather_Additional]
StringIndex=1
[MeasureTempFahrenheit]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather]
StringIndex=2
[MeasureFeelLikeFahrenheit]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather]
StringIndex=2
[MeasureMaxTempCelsius]
Measure=Calc
Formula=Round((MeasureMaxTemperatureDayFahrenheit-32)*5/9)
DynamicVariables=1
[MeasureMinTempCelsius]
Measure=Calc
Formula=Round((MeasureMinTemperatureNightFahrenheit-32)*5/9)
DynamicVariables=1
[MeasureFeelLikeCelsius]
Measure=Calc
Formula=Round((MeasureFeelLikeFahrenheit-32)*5/9)
DynamicVariables=1
[MeasureTempCelsius]
Measure=Calc
Formula=Round((MeasureTempFahrenheit-32)*5/9)
DynamicVariables=1
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterIcon]
Meter=Image
MeasureName=MeasureIcon
Path=#@#WeatherIcons
X=(0*#Scale#)
Y=(0*#Scale#)
W=(30*#Scale#)
AntiAlias=1
ImageTint=#Color1#
DynamicVariables=1
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterLocation]
Meter=String
MeasureName=MeasureLocation
StringAlign=Left
FontColor=#Color1#,100
FontFace=Comfortaa
FontSize=(3.5*#Scale#)
X=(5*#Scale#)
Y=(35*#Scale#)
Text=%1
AntiAlias=1
[MeterTemp]
Meter=String
MeasureName=MeasureTempCelsius
StringAlign=Left
FontColor=#Color1#
FontFace=Comfortaa
FontSize=(20*#Scale#)
X=(40*#Scale#)
Y=(0*#Scale#)
Text=%1˚
AntiAlias=1
[MeterDescription]
Meter=String
MeasureName=MeasureDescription
StringAlign=Left
FontColor=#Color1#
FontFace=Comfortaa
FontSize=(4*#Scale#)
X=(5*#Scale#)
Y=(42*#Scale#)
Text=%1
AntiAlias=1
[MeterFeelsLike]
Meter=String
MeasureName=MeasureFeelLikeCelsius
StringAlign=Left
FontColor=#Color1#,100
FontFace=Comfortaa
FontSize=(3.5*#Scale#)
X=(5*#Scale#)
Y=(0*#Scale#)R
Text=#Feels like# %1° #TempSymbol#
AntiAlias=1
[MeterNightTemperatureText]
Meter=String
StringAlign=Left
FontColor=#Color1#,100
FontFace=Comfortaa
FontSize=(3.5*#Scale#)
X=(5*#Scale#)
Y=(10*#Scale#)R
Text=Max temp.
AntiAlias=1
UpdateDivider=-1
[MeterDayTemperatureText]
Meter=String
StringAlign=Left
FontColor=#Color1#,100
FontFace=Comfortaa
FontSize=(3.5*#Scale#)
X=(50*#Scale#)
Y=(0*#Scale#)r
Text=Min temp.
AntiAlias=1
UpdateDivider=-1
[MeterNightTemperature]
Meter=String
MeasureName=MeasureMinTempCelsius
StringAlign=Left
FontColor=#Color1#
FontFace=Comfortaa
FontSize=(4*#Scale#)
X=(5*#Scale#)
Y=(1*#Scale#)R
Text=%1°#TempSymbol#
AntiAlias=1
[MeterDayTemperature]
Meter=String
MeasureName=MeasureMaxTempCelsius
StringAlign=Left
FontColor=#Color1#
FontFace=Comfortaa
FontSize=(4*#Scale#)
X=(50*#Scale#)
Y=(1*#Scale#)r
Text=%1°#TempSymbol#
AntiAlias=1