It is currently April 27th, 2024, 4:26 pm

Help changing weather from Celsius to Farenheit

Get help with creating, editing & fixing problems with skins
rainmax
Posts: 4
Joined: December 8th, 2023, 6:57 am

Help changing weather from Celsius to Farenheit

Post by rainmax »

How can I change this?

Celsius to Farenheit for all days including current day measure
Change location to New York, NY

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]

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=1.5

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather/syria/dimashq/damascus-1947122
RegExp="(?siU)<h1 class="Fz\(3rem\).*Wob\(ba\)">(.*)</h1>.*<h2 class="D\(b\).*Trsdu\(.3s\)">(.*)</h2>.*<div class="My\(2px\).*Fz\(1.12rem\)">(.*)</p>.*<svg class="arrowUp.*celsius_D\(n\)">(.*)</span>.*<svg class="arrowDown.*celsius_D\(n\)">(.*)</span>.*<div class="temperature-forecast.*celsius_D\(n\)">(.*)</span>.*"
UpdateRate=1800


[Measure5Days]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather/syria/dimashq/damascus-1947122
RegExp=(?siU)<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>
UpdateRate=1800

[Measure5DaysCondition]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather/syria/dimashq/damascus-1947122
RegExp=(?siU)<div class="D\(ib\).*data-reactid="196">(.*)</span>.*data-reactid="197"><img alt="(.*)".*<div class="D\(ib\).*data-reactid="221">(.*)</span>.*data-reactid="222"><img alt="(.*)".*<div class="D\(ib\).*data-reactid="241">(.*)</span>.*data-reactid="242"><img alt="(.*)".*<div class="D\(ib\).*data-reactid="261">(.*)</span>.*data-reactid="262"><img alt="(.*)".*<div class="D\(ib\).*data-reactid="281">(.*)</span>.*data-reactid="282"><img alt="(.*)".*
UpdateRate=900

;-------------------------------------------------------------
;-------------------------------------------------------------



[MeasureTempUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=7
;Substitute="F":"f","C":"c"
Substitute="F":"c"

[MeasureLocation]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=1

[MeasureDayIcon]
Measure=Plugin
Plugin=WebParser
URL=[MeasureCurrent]
StringIndex=3
DynamicVariables=1
Substitute="rain_day_night":"rain","scattered_showers_day_night":"rain","windy_day_night":"wind","mostly_cloudy_day_night":"mostlycloudy","cloudy_day_night":"cloudy","Partly Cloudy_day_night:"Partlycloudy","snow_rain_mix_day_night":"sleet","fair_day":"clear_day","fair_night":"clear_night","hail_day_night":"snow","snow_day_night":"snow","thundershowers_day_night":"thundershowers","fog_day_night":"fog","sleet_day_night":"sleet","hail_day_night":"hail"

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=6

[MeasureWeatherCond]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=3
Substitute=#Conditions#

[MeasureWeatherTempHi]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=4

[MeasureWeatherTempLo]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=5

[MeasureTempCelsius]
Measure=Calc
Formula=Round((MeasureWeatherTemp-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay1Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=1
Substitute=#Date#

[MeasureDay1Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=3

[MeasureDay1Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=4

[MeasureDay1Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=2
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay1Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=2
Substitute=#Conditions#

[MeasureTempCelsiusDay1Hi]
Measure=Calc
Formula=Round((MeasureDay1Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay1Low]
Measure=Calc
Formula=Round((MeasureDay1Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay2Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=5
Substitute=#Date#

[MeasureDay2Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=7

[MeasureDay2Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=8

[MeasureDay2Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=6
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay2Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=6
Substitute=#Conditions#

[MeasureTempCelsiusDay2Hi]
Measure=Calc
Formula=Round((MeasureDay2Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay2Low]
Measure=Calc
Formula=Round((MeasureDay2Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay3Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=9
Substitute=#Date#

[MeasureDay3Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=11

[MeasureDay3Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=12

[MeasureDay3Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=10
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy (Night)":"27","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay3Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=10
Substitute=#Conditions#
Substitute='"':""

[MeasureTempCelsiusDay3Hi]
Measure=Calc
Formula=Round((MeasureDay3Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay3Low]
Measure=Calc
Formula=Round((MeasureDay3Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay4Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=13
Substitute=#Date#

[MeasureDay4Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=15

[MeasureDay4Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=16

[MeasureDay4Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=14
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay4Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=14
Substitute=#Conditions#
Substitute='"':""

[MeasureTempCelsiusDay4Hi]
Measure=Calc
Formula=Round((MeasureDay4Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay4Low]
Measure=Calc
Formula=Round((MeasureDay4Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay5Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=17
Substitute=#Date#

[MeasureDay5Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=19

[MeasureDay5Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=20

[MeasureDay5Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=18
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay5Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=18
Substitute=#Conditions#
Substitute='"':""

[MeasureTempCelsiusDay5Hi]
Measure=Calc
Formula=Round((MeasureDay5Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay5Low]
Measure=Calc
Formula=Round((MeasureDay5Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""


;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDayIcon]
Meter=Image
MeasureName=MeasureDayIcon
Path=#@#WeatherIconsBig
X=(62*#Scale#)
Y=(0*#Scale#)
W=(150*#Scale#)
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterLine1]
Meter=Shape
X=(65*#Scale#)
Y=(130*#Scale#)
Shape=Rectangle 0,0,(0.5*#Scale#),(40*#Scale#),0 | Fill Color #Color1#,70 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,0
UpdateDivider=-1

[MeterLine2]
Meter=Shape
X=(115*#Scale#)
Y=(130*#Scale#)
Shape=Rectangle 0,0,(0.5*#Scale#),(40*#Scale#),0 | Fill Color #Color1#,70 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,0
UpdateDivider=-1

[MeterLine3]
Meter=Shape
X=(165*#Scale#)
Y=(130*#Scale#)
Shape=Rectangle 0,0,(0.5*#Scale#),(40*#Scale#),0 | Fill Color #Color1#,70 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,0
UpdateDivider=-1

[MeterLine4]
Meter=Shape
X=(215*#Scale#)
Y=(130*#Scale#)
Shape=Rectangle 0,0,(0.5*#Scale#),(40*#Scale#),0 | Fill Color #Color1#,70 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,0
UpdateDivider=-1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterCurrentCond]
Meter=String
MeasureName=MeasureWeatherCond
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(6*#Scale#)
X=(140*#Scale#)
Y=(115*#Scale#)
W=(250*#Scale#)
Text="%1"
AntiAlias=1
ClipString=1

[MeterCurrentTemp]
Meter=String
MeasureName=MeasureTempCelsius
MeasureName2=MeasureTempUnit
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(20*#Scale#)
X=(170*#Scale#)
Y=(70*#Scale#)
Text="%1°%2"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay1Date]
Meter=String
MeasureName=MeasureDay1Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(40*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay1DIcon]
Meter=Image
MeasureName=MeasureDay1Icon
Path=#@#WeatherIcons
X=(28*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay1HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay1Hi
MeasureName2=MeasureTempCelsiusDay1Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(40*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay2Date]
Meter=String
MeasureName=MeasureDay2Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(90*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay2DIcon]
Meter=Image
MeasureName=MeasureDay2Icon
ImagePath=#@#weatherIcons
X=(78*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay2HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay2Hi
MeasureName2=MeasureTempCelsiusDay2Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(90*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay3Date]
Meter=String
MeasureName=MeasureDay3Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(140*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay3DIcon]
Meter=Image
MeasureName=MeasureDay3Icon
ImagePath=#@#weatherIcons
X=(128*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay3HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay3Hi
MeasureName2=MeasureTempCelsiusDay3Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(140*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay4Date]
Meter=String
MeasureName=MeasureDay4Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(190*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay4DIcon]
Meter=Image
MeasureName=MeasureDay4Icon
ImagePath=#@#weatherIcons
X=(178*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay4HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay4Hi
MeasureName2=MeasureTempCelsiusDay4Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(190*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay5Date]
Meter=String
MeasureName=MeasureDay5Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(240*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay5DIcon]
Meter=Image
MeasureName=MeasureDay5Icon
ImagePath=#@#weatherIcons
X=(228*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay5HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay5Hi
MeasureName2=MeasureTempCelsiusDay5Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(240*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1
User avatar
Yincognito
Rainmeter Sage
Posts: 7177
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Help changing weather from Celsius to Farenheit

Post by Yincognito »

rainmax wrote: December 8th, 2023, 7:07 am How can I change this?

Celsius to Farenheit for all days including current day measure
Change location to New York, NY
There might be better ways of doing this, but:
- open Yahoo Weather in your browser for the desired location, then use the URL in the address bar as the value of the URL option in your first 3 measures
- set the value of the Formula option in the measures performing F to C conversion (like MeasureTempCelsius and others) to the name of the source measure in each case, e.g. Formula=MeasureWeatherTemp instead of Formula=Round((MeasureWeatherTemp-32)*5/9) for the aforementioned MeasureTempCelsius
- start simple with just one case; if it works, don't expect someone else to do the rest, it's the same (logical) principle; if it doesn't or you have trouble implementing it, wait for other folks to propose more appropriate solutions (normally, the skin you're using, which we don't know its name yet, should have its own mechanism of switching between F and C at will)

Let us know how it goes. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
balala
Rainmeter Sage
Posts: 16177
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help changing weather from Celsius to Farenheit

Post by balala »

rainmax wrote: December 8th, 2023, 7:07 am Change location to New York, NY
Extending Yincognito's reply: replace the URL option of the [MeasureCurrent], [Measure5Days] and [Measure5DaysCondition] measure by this one: URL=https://www.yahoo.com/news/weather/united-states/new-york/new-york-2459115.
rainmax
Posts: 4
Joined: December 8th, 2023, 6:57 am

Re: Help changing weather from Celsius to Farenheit

Post by rainmax »

balala wrote: December 8th, 2023, 3:48 pm Extending Yincognito's reply: replace the URL option of the [MeasureCurrent], [Measure5Days] and [Measure5DaysCondition] measure by this one: URL=https://www.yahoo.com/news/weather/united-states/new-york/new-york-2459115.
This worked, thanks.
Yincognito wrote: December 8th, 2023, 11:03 am There might be better ways of doing this, but:
- open Yahoo Weather in your browser for the desired location, then use the URL in the address bar as the value of the URL option in your first 3 measures
- set the value of the Formula option in the measures performing F to C conversion (like MeasureTempCelsius and others) to the name of the source measure in each case, e.g. Formula=MeasureWeatherTemp instead of Formula=Round((MeasureWeatherTemp-32)*5/9) for the aforementioned MeasureTempCelsius
I changed the section headers from Celsius to Fahrenheit and used MeasureWeatherTemp for the Formula and looks like it's working.

Code: Select all

[MeterCurrentTemp]
Meter=String
MeasureName=MeasureTempFahrenheit
MeasureName2=MeasureTempUnit
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(20*#Scale#)
X=(170*#Scale#)
Y=(70*#Scale#)
Text="%1°%2"
AntiAlias=1

[MeasureTempFahrenheit]
Measure=Calc
Formula=MeasureWeatherTemp
DynamicVariables=1
Substitute="-18":""
The only part I'm not sure about is RegExp in the [MeasureCurrent] section below which appears to be getting css classes for celsius_D. How would I get the RegExp for fahrenheit?

Code: Select all

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather/united-states/new-york/new-york-2459115
RegExp="(?siU)<h1 class="Fz\(3rem\).*Wob\(ba\)">(.*)</h1>.*<h2 class="D\(b\).*Trsdu\(.3s\)">(.*)</h2>.*<div class="My\(2px\).*Fz\(1.12rem\)">(.*)</p>.*<svg class="arrowUp.*celsius_D\(n\)">(.*)</span>.*<svg class="arrowDown.*celsius_D\(n\)">(.*)</span>.*<div class="temperature-forecast.*celsius_D\(n\)">(.*)</span>.*"
UpdateRate=1800
User avatar
Yincognito
Rainmeter Sage
Posts: 7177
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Help changing weather from Celsius to Farenheit

Post by Yincognito »

rainmax wrote: December 8th, 2023, 9:34 pm This worked, thanks.


I changed the section headers from Celsius to Fahrenheit and used MeasureWeatherTemp for the Formula and looks like it's working.

Code: Select all

[MeterCurrentTemp]
Meter=String
MeasureName=MeasureTempFahrenheit
MeasureName2=MeasureTempUnit
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(20*#Scale#)
X=(170*#Scale#)
Y=(70*#Scale#)
Text="%1°%2"
AntiAlias=1

[MeasureTempFahrenheit]
Measure=Calc
Formula=MeasureWeatherTemp
DynamicVariables=1
Substitute="-18":""
The only part I'm not sure about is RegExp in the [MeasureCurrent] section below which appears to be getting css classes for celsius_D. How would I get the RegExp for fahrenheit?

Code: Select all

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather/united-states/new-york/new-york-2459115
RegExp="(?siU)<h1 class="Fz\(3rem\).*Wob\(ba\)">(.*)</h1>.*<h2 class="D\(b\).*Trsdu\(.3s\)">(.*)</h2>.*<div class="My\(2px\).*Fz\(1.12rem\)">(.*)</p>.*<svg class="arrowUp.*celsius_D\(n\)">(.*)</span>.*<svg class="arrowDown.*celsius_D\(n\)">(.*)</span>.*<div class="temperature-forecast.*celsius_D\(n\)">(.*)</span>.*"
UpdateRate=1800
Glad at least part of it is working - as I said, it's just a fast solution which could (and probably should) be better. As for the RegExp, I could look into it, of course (and I did, in the past), but since I don't really use Yahoo Weather and I'd prefer to not reinvent the wheel, I'll just say for now that this has been already dealt with by eclectic-tech (a Sage on this forum), who made a nice (and I think, reusable by any skin) system, see here:
https://forum.rainmeter.net/viewtopic.php?t=36479

What I suggest is first try to contact him (a PM would suffice, I reckon) to see if he doesn't already have a quick solution to it. If he doesn't or he's busy with something else, then come back here and I'll take a look at it. Just to save both of us from unnecessary or already done work, if possible. :???:
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Yincognito
Rainmeter Sage
Posts: 7177
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Help changing weather from Celsius to Farenheit

Post by Yincognito »

rainmax wrote: December 8th, 2023, 9:34 pm The only part I'm not sure about is RegExp in the [MeasureCurrent] section below which appears to be getting css classes for celsius_D. How would I get the RegExp for fahrenheit?
Alright, couldn't help it and I took a look at it. It appears everything is fine, since the F degrees come first in the Yahoo Weather's page source and they are captured, unlike the C degrees coming second and being skipped from capturing by the RegExp option (even though both belong to the CSS class "celsius_D"):
Yahoo Weather.jpg
This is further confirmed by the fact that the modified code does display the correct data in F for me, irrespective if I set F or C in the Yahoo Weather from the browser:
Yahoo Weather 2.jpg
The code I tested with (I don't have the Variables.inc and Language.inc that you have, since you didn't reveal the skin name, so the visuals above might be a bit different from what you get):

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]

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=1.5

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather/united-states/new-york/new-york-2459115
RegExp="(?siU)<h1 class="Fz\(3rem\).*Wob\(ba\)">(.*)</h1>.*<h2 class="D\(b\).*Trsdu\(.3s\)">(.*)</h2>.*<div class="My\(2px\).*Fz\(1.12rem\)">(.*)</p>.*<svg class="arrowUp.*celsius_D\(n\)">(.*)</span>.*<svg class="arrowDown.*celsius_D\(n\)">(.*)</span>.*<div class="temperature-forecast.*celsius_D\(n\)">(.*)</span>.*"
UpdateRate=1800


[Measure5Days]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather/united-states/new-york/new-york-2459115
RegExp=(?siU)<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>.*<tr class="Bdb\ Bds\(d\).*</button>(.*)</td>.*<td class="Ta\(c\) W\(25%\)">.*alt="??(.*)"??>.*<dd class="D\(b\).*W\(25px\)">(.*)</dd>.*<dd class="Pstart\(10px\).*W\(25px\)">(.*)</dd>
UpdateRate=1800

[Measure5DaysCondition]
Measure=Plugin
Plugin=WebParser
URL=https://www.yahoo.com/news/weather/united-states/new-york/new-york-2459115
RegExp=(?siU)<div class="D\(ib\).*data-reactid="196">(.*)</span>.*data-reactid="197"><img alt="(.*)".*<div class="D\(ib\).*data-reactid="221">(.*)</span>.*data-reactid="222"><img alt="(.*)".*<div class="D\(ib\).*data-reactid="241">(.*)</span>.*data-reactid="242"><img alt="(.*)".*<div class="D\(ib\).*data-reactid="261">(.*)</span>.*data-reactid="262"><img alt="(.*)".*<div class="D\(ib\).*data-reactid="281">(.*)</span>.*data-reactid="282"><img alt="(.*)".*
UpdateRate=900

;-------------------------------------------------------------
;-------------------------------------------------------------



[MeasureTempUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=7
Substitute="F":"f","C":"c"

[MeasureLocation]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=1

[MeasureDayIcon]
Measure=Plugin
Plugin=WebParser
URL=[MeasureCurrent]
StringIndex=3
DynamicVariables=1
Substitute="rain_day_night":"rain","scattered_showers_day_night":"rain","windy_day_night":"wind","mostly_cloudy_day_night":"mostlycloudy","cloudy_day_night":"cloudy","Partly Cloudy_day_night:"Partlycloudy","snow_rain_mix_day_night":"sleet","fair_day":"clear_day","fair_night":"clear_night","hail_day_night":"snow","snow_day_night":"snow","thundershowers_day_night":"thundershowers","fog_day_night":"fog","sleet_day_night":"sleet","hail_day_night":"hail"

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=6

[MeasureWeatherCond]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=3
Substitute=#Conditions#

[MeasureWeatherTempHi]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=4

[MeasureWeatherTempLo]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=5

[MeasureTempCelsius]
Measure=Calc
Formula=MeasureWeatherTemp
;Round((MeasureWeatherTemp-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay1Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=1
Substitute=#Date#

[MeasureDay1Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=3

[MeasureDay1Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=4

[MeasureDay1Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=2
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay1Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=2
Substitute=#Conditions#

[MeasureTempCelsiusDay1Hi]
Measure=Calc
Formula=MeasureDay1Hi
;Round((MeasureDay1Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay1Low]
Measure=Calc
Formula=MeasureDay1Low
;Round((MeasureDay1Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay2Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=5
Substitute=#Date#

[MeasureDay2Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=7

[MeasureDay2Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=8

[MeasureDay2Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=6
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay2Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=6
Substitute=#Conditions#

[MeasureTempCelsiusDay2Hi]
Measure=Calc
Formula=MeasureDay2Hi
;Round((MeasureDay2Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay2Low]
Measure=Calc
Formula=MeasureDay2Low
;Round((MeasureDay2Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay3Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=9
Substitute=#Date#

[MeasureDay3Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=11

[MeasureDay3Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=12

[MeasureDay3Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=10
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy (Night)":"27","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay3Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=10
Substitute=#Conditions#
Substitute='"':""

[MeasureTempCelsiusDay3Hi]
Measure=Calc
Formula=MeasureDay3Hi
;Round((MeasureDay3Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay3Low]
Measure=Calc
Formula=MeasureDay3Low
;Round((MeasureDay3Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay4Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=13
Substitute=#Date#

[MeasureDay4Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=15

[MeasureDay4Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=16

[MeasureDay4Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=14
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay4Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=14
Substitute=#Conditions#
Substitute='"':""

[MeasureTempCelsiusDay4Hi]
Measure=Calc
Formula=MeasureDay4Hi
;Round((MeasureDay4Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay4Low]
Measure=Calc
Formula=MeasureDay4Low
;Round((MeasureDay4Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay5Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=17
Substitute=#Date#

[MeasureDay5Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=19

[MeasureDay5Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=20

[MeasureDay5Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=18
DynamicVariables=1
#Substitute="Tornado":"0","Tropical Storm":"1","hurricane":"2","Severe Thunderstorms":"3","Thunderstorms":"4","Mixed Rain And Snow":"5","Mixed Rain And Sleet":"6","Mixed Snow And Sleet":"7","Freezing Drizzle":"8","Drizzle":"9","Freezing Rain":"10","Showers":"11","Rain":"12","Snow Flurries":"13","Light Snow Showers":"14","Blowing Snow":"15","Snow":"16","Hail":"17","Sleet":"18","Dust":"19","Foggy":"20","Haze":"21","Smoky":"22","Blustery":"23","Windy":"24","Cold":"25","Cloudy":"26","Mostly Cloudy":"28","Partly Cloudy":"29","Clear":"31","Sunny":"32","Fair":"33","Fair (Day)":"34","Mixed Rain And Hail":"35","Hot":"36","Isolated Thunderstorms":"37","Scattered Thunderstorms":"38","Scattered Showers":"39","Heavy Rain":"40","Scattered Snow Showers":"41","Heavy Snow":"42","Blizzard":"43","Not Available":"44","Scattered Showers":"45","Scattered Snow Showers":"46","Scattered Thundershowers":"47"

[MeasureDay5Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=18
Substitute=#Conditions#
Substitute='"':""

[MeasureTempCelsiusDay5Hi]
Measure=Calc
Formula=MeasureDay5Hi
;Round((MeasureDay5Hi-32)*5/9)
DynamicVariables=1
Substitute="-18":""

[MeasureTempCelsiusDay5Low]
Measure=Calc
Formula=MeasureDay5Low
;Round((MeasureDay5Low-32)*5/9)
DynamicVariables=1
Substitute="-18":""


;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDayIcon]
Meter=Image
MeasureName=MeasureDayIcon
Path=#@#WeatherIconsBig
X=(62*#Scale#)
Y=(0*#Scale#)
W=(150*#Scale#)
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterLine1]
Meter=Shape
X=(65*#Scale#)
Y=(130*#Scale#)
Shape=Rectangle 0,0,(0.5*#Scale#),(40*#Scale#),0 | Fill Color #Color1#,70 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,0
UpdateDivider=-1

[MeterLine2]
Meter=Shape
X=(115*#Scale#)
Y=(130*#Scale#)
Shape=Rectangle 0,0,(0.5*#Scale#),(40*#Scale#),0 | Fill Color #Color1#,70 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,0
UpdateDivider=-1

[MeterLine3]
Meter=Shape
X=(165*#Scale#)
Y=(130*#Scale#)
Shape=Rectangle 0,0,(0.5*#Scale#),(40*#Scale#),0 | Fill Color #Color1#,70 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,0
UpdateDivider=-1

[MeterLine4]
Meter=Shape
X=(215*#Scale#)
Y=(130*#Scale#)
Shape=Rectangle 0,0,(0.5*#Scale#),(40*#Scale#),0 | Fill Color #Color1#,70 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,0
UpdateDivider=-1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterCurrentCond]
Meter=String
MeasureName=MeasureWeatherCond
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(6*#Scale#)
X=(140*#Scale#)
Y=(115*#Scale#)
W=(250*#Scale#)
Text="%1"
AntiAlias=1
ClipString=1

[MeterCurrentTemp]
Meter=String
MeasureName=MeasureTempCelsius
MeasureName2=MeasureTempUnit
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(20*#Scale#)
X=(170*#Scale#)
Y=(70*#Scale#)
Text="%1°%2"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay1Date]
Meter=String
MeasureName=MeasureDay1Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(40*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay1DIcon]
Meter=Image
MeasureName=MeasureDay1Icon
Path=#@#WeatherIcons
X=(28*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay1HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay1Hi
MeasureName2=MeasureTempCelsiusDay1Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(40*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay2Date]
Meter=String
MeasureName=MeasureDay2Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(90*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay2DIcon]
Meter=Image
MeasureName=MeasureDay2Icon
ImagePath=#@#weatherIcons
X=(78*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay2HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay2Hi
MeasureName2=MeasureTempCelsiusDay2Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(90*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay3Date]
Meter=String
MeasureName=MeasureDay3Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(140*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay3DIcon]
Meter=Image
MeasureName=MeasureDay3Icon
ImagePath=#@#weatherIcons
X=(128*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay3HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay3Hi
MeasureName2=MeasureTempCelsiusDay3Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(140*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay4Date]
Meter=String
MeasureName=MeasureDay4Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(190*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay4DIcon]
Meter=Image
MeasureName=MeasureDay4Icon
ImagePath=#@#weatherIcons
X=(178*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay4HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay4Hi
MeasureName2=MeasureTempCelsiusDay4Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(190*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay5Date]
Meter=String
MeasureName=MeasureDay5Day
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(240*#Scale#)
Y=(128*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay5DIcon]
Meter=Image
MeasureName=MeasureDay5Icon
ImagePath=#@#weatherIcons
X=(228*#Scale#)
Y=(138*#Scale#)
W=(25*#Scale#)
AntiAlias=1
ImageTint=#Color1#

[MeterDay5HighLow]
Meter=String
MeasureName=MeasureTempCelsiusDay5Hi
MeasureName2=MeasureTempCelsiusDay5Low
StringAlign=Center
FontColor=#Color1#
FontFace=Segoe UI
FontSize=(5*#Scale#)
X=(240*#Scale#)
Y=(163*#Scale#)
Text="↑ %1° ↓ %2°"
AntiAlias=1
So, I think it's ok like this, if you're getting a similar result. False alarm with that class name, I suppose. :D
You do not have the required permissions to view the files attached to this post.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
rainmax
Posts: 4
Joined: December 8th, 2023, 6:57 am

Re: Help changing weather from Celsius to Farenheit

Post by rainmax »

Yincognito wrote: December 8th, 2023, 11:57 pm Alright, couldn't help it and I took a look at it. It appears everything is fine, since the F degrees come first in the Yahoo Weather's page source and they are captured, unlike the C degrees coming second and being skipped from capturing by the RegExp option (even though both belong to the CSS class "celsius_D"):
So, I think it's ok like this, if you're getting a similar result. False alarm with that class name, I suppose. :D
Thanks for confirming!! Looks good but wasn't sure.
User avatar
Yincognito
Rainmeter Sage
Posts: 7177
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Help changing weather from Celsius to Farenheit

Post by Yincognito »

rainmax wrote: December 9th, 2023, 3:29 am Thanks for confirming!! Looks good but wasn't sure.
No problem. :)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth