Getting "Feels Like" for Temperature to show up
Posted: March 14th, 2018, 5:19 am
I'm back. I figured out how to fix the other problems I had, but now I want to add another function to the temperature display which would show what the temperature currently feels like.
Here's the code I have in it already:
What variables/functions (or whatever they're called in rainmeter) do I need to add to apply the "Feels Like" functionality?
Here's the code I have in it already:
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
ContextTitle=USA unit
ContextAction=[!WritekeyValue TempText MeasureName MeasureTemp][!Refresh]
ContextTitle2=Rest of the world unit
ContextAction2=[!WritekeyValue TempText MeasureName MeasureTempC][!Refresh]
ContextTitle3=Location [MeasureLocation]
ContextAction3=["https://www.yahoo.com/news/weather"]
[Variables]
Unit=1
FontName=Cartoonist
FontHeight=28
AntiAlias=1
IconColor=black
Scale=3/5
[Background]
Meter=IMAGE
ImageName=ramcpu4.png
AntiAlias=1
[MeasureBATT]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Percent
RegExpSubstitute=1
Substitute="^(\d\d)$":"0\0","^(\d)$":"00\0"
[Label Temp]
Meter=STRING
X=0
Y=0
FontColor=#FontColor#
FontFace=#FontName#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Italic
StringEffect=Border
FontEffectColor=206, 134, 99, 160
AntiAlias=1
[Label BATT]
Meter=STRING
X=28
Y=55
FontColor=#FontColor#
FontFace=#FontName#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Italic
StringEffect=Border
FontEffectColor=206, 134, 99, 160
AntiAlias=1
[Temp]
Meter=String
MeasureName=MeasureTemp
DynamicVariables=1
X=115
Y=171
FontColor=106,254,221
FontFace=#FontName#
FontSize=#FontHeight#
StringAlign=RIGHT
StringStyle=Italic
AntiAlias=1
Text="%1"
Angle=(Rad(-11))
MinValue=-30
MaxValue=120
[BATT]
Meter=STRING
MeasureName=MeasureBATT
X=195
Y=158
FontColor=254,100,231
FontFace=#FontName#
FontSize=#FontHeight#
StringAlign=RIGHT
StringStyle=Italic
AntiAlias=1
Text="%1"
Percentual=1
AutoScale=1
Angle=(Rad(-11))
[MeterBar]
MeasureName=MeasureTemp
Meter=BAR
X=62
Y=197
W=150
H=5
BarOrientation=HORIZONTAL
BarImage=cpupersona.png
[MeterBar2]
MeasureName=MeasureBATT
Meter=BAR
X=84
Y=204
W=150
H=5
BarOrientation=HORIZONTAL
BarImage=rampersona.png
[MeterBar3]
MeasureName=MeasureFeelLike
Meter=BAR
X=106
Y=240
W=150
H=5
BarOrientation=HORIZONTAL
BarImage=tmppersona.png
[Weather]
Measure=Plugin
Plugin=Webparser
URL=https://www.yahoo.com/news/weather/united-states/wisconsin/milwaukee-12780900
;Your location is automatically located. If it's incorrect or you want a custom place, access to https://www.yahoo.com/news/weather
;Click "Change Location", type in then choose where you want. After that, copy new webpage link and replace it with this measure URL. And refresh skin!
RegExp=(?siU)<h1 class="city.*data-reactid="7">(.*)</h1>.*<div class="My\(2px\).*60x60\/(.*)@2x.png.*data-reactid="26">(.*)<.*<span class="Va\(t\)" data-reactid="37">(.*)</span>
UpdateRate=60
[MeasureLocation]
Measure=Plugin
Plugin=Webparser
URL=[Weather]
StringIndex=1
DynamicVariables=1
[MeasureIcon]
Measure=Plugin
Plugin=Webparser
URL=[Weather]
StringIndex=2
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":"rain","fog_day_night":"fog"
OnChangeAction=[!UpdateMeter Icon]
[MeasureDes]
Measure=Plugin
Plugin=Webparser
URL=[Weather]
StringIndex=3
DynamicVariables=1
[MeasureTemp]
Measure=Plugin
Plugin=Webparser
URL=[Weather]
StringIndex=4
DynamicVariables=1
MinValue=-30
MaxValue=120
[MeasureTempC]
Measure=Calc
Formula=Round((MeasureTemp-32)*5/9)
OnChangeAction=[!CommandMeasure Phrase getphrase()]
[Icon]
Meter=Image
DynamicVariables=1
W=(100*#Scale#)
Y=(500*#Scale#-[MeterString:H]-100*#Scale#)
ImageRotate=-15
UpdateDivider=-1
Group=Text
[TempText]
Meter=String
MeasureName=MeasureTemp
Text=%1
FontFace=HelveticaNeueLT Com 75 Bd
StringAlign=LeftBottom
FontColor=ffffff
FontSize=(35*#Scale#)
AntiAlias=1
X=(20*#Scale#)R
Y=(500*#Scale#-[MeterString:H]-5*#Scale#)
DynamicVariables=1
Hidden=1
UpdateDivider=-1
Group=Text
MinValue=-30
MaxValue=120
[MeterString]
Meter=String
;Text=Fetching...
;FontFace=HelveticaNeueLT Com 75 Bd
FontSize=(50*#Scale#)
FontColor=ffffff
StringAlign=LeftBottom
AntiAlias=1
Y=(500*#Scale#)
;Group=Text
UpdateDivider=-1
[Subline]
;Meter=String
FontFace=HelveticaNeueLT Com 75 Bd
FontSize=(16*#Scale#)
Y=(500*#Scale#)
FontColor=bababa
AntiAlias=1
Group=Text
UpdateDivider=-1
[Phrase]
Measure=Script
ScriptFile=phrases.lua