It is currently November 19th, 2018, 8:11 am

Change to Weather.com XML feed

Release announcements and important news from the developers.
User avatar
balala
Rainmeter Sage
Posts: 7014
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Change to Weather.com XML feed

balala » July 22nd, 2017, 6:30 am

Bobcatlady wrote:I installed rainmeter and tried to use the glass weather app.
Not app, but skin. Sorry, but have to correct this detail, because Rainmeter doesn't work with apps.
eclectic-tech wrote:The GLASSES weather skins (all 14 versions) work... they were already modified to correct this threads issue.
Simply change the settings to set your weather location/unit and use them. :confused:

If you are using a different skin, then paste a link to it, and say what isn't working.
In addition to what eclectic-tech said, I'd just add how to change the location, in the Galsses Weather skin, by VClouds (please let me - us - know if not this is the skin in question).

Method 1 (manual): Replace the Location and Unit variables under the [Variables] section of the Glasses\GlassesVCWeather2\UserVariables.inc file. This file stores a lot of settings (here I have to say it's a very weird thing to not place the UserVariables.inc into the @Resources folder, although the suite uses a such folder - but this is the author's choice). You can find your location code, searching here: https://weather.codes/

Method 2 (through the Settings tool): Click the Settings button, available in the menu which can be open by clicking the down arrow, in the upper right corner of the skin. This will open the config.exe app, which can be used to make the needed settings.
B2Bfreek
Posts: 2
Joined: January 23rd, 2018, 4:06 am

Re: Change to Weather.com XML feed

B2Bfreek » January 23rd, 2018, 4:14 am

AFTER reading everyones posts...I STILL DON'T GET IT!!!

I am using L!MIT skin, and i'm from israel
the weather code is:
[cManualWeather]
Disabled=(1-#toggle#)
Measure=Calc
Formula=#ManualWeather#
IfEqualValue=0
IfEqualAction=[!EnableMeasure mGeo]
IfAboveValue=0
IfAboveAction=[!EnableMeasure mURL]

[mGeo]
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=600
Url=http://iplocationtools.com/
RegExp="(?siU).*<td align="left" class="field-name">Weather Station Code</td>.*<td align="left">(.*)</td>"
StringIndex=1
FinishAction=[!WriteKeyValue Variables "WeatherStation" "[mGeo]"][!WriteKeyValue Variables "toggle" "0"][!Refresh]

[mURL]
Disabled=#toggle#
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://xml.weather.com/weather/local/#WeatherStation#?cc=*&dayf=3&unit=#tempunit#
Download=1
DownloadFile=weather.xml
FinishAction=[!EnableMeasure mWeather][!WriteKeyValue Variables "toggle" "1"][!Redraw]

i have tried this: URL=http://xml.weather.yahoo.com/forecastrss?w=#LocationCode#&u=#Unit# - IT DIDN'T WORK
i have tried this: https://weather.com/he-IL/weather/today/l/ISXX0010:1:IS - IT DIDN'T WORK
i have tried this:URL=http://wxdata.weather.com/wxdata/weather/local/#WeatherStation#?cc=*&dayf=3&unit=#tempunit# - IT DIDN'T WORK!!!!!

WHAT AM I SUPPOSED TO WRITE!?!?
EXPLAIN AND WRITE TO ME LIKE I'M A f---ing MORON!
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3025
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Change to Weather.com XML feed

eclectic-tech » January 23rd, 2018, 5:49 am

Copy the code below. Open the 'fill-weather.ini' file in your text editor. Replace all of these sections:[Rainmeter], [Variables],[cManualWeather],[mGEO], & [mURL] with the code you copy from here. (Basically, everything from the top of the file to [mWeather] section. This will force manual weather based on your weather code ISXX0010 in Israel and use the updated weather URL.

Code: Select all

[Rainmeter]
Update=1000

[Variables]
@include1=#@#limvar.ini
; main string size
size=100
; Fahrenheit (f) or Metric (m)
tempunit=m
; set limits for temperature maxima (in corresponding units)
TempMax=(120)
TempMin=(0)
; Set to 0 for auto geo IP location, 1 to use manual weather code
ManualWeather=1
; Else use Weather.com station code (example: USNY0996)
WeatherStation=ISXX0010
; variable for toggling options when refreshing
toggle=1

;---Styles---
@include2=#@#styles.ini

;---Measures---

; Find location and parse to Weather.com RSS

[cManualWeather]
Disabled=(1-#toggle#)
Measure=Calc
Formula=#ManualWeather#
IfEqualValue=0
IfEqualAction=[!EnableMeasure mGeo]
IfAboveValue=0
IfAboveAction=[!EnableMeasure mURL]

[mGeo]
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=600
Url=http://iplocationtools.com/
RegExp="(?siU)<div><label><strong>Weather Station</strong></label></div>.*\((.*)\)<div>"
;"(?siU).*<td align="left" class="field-name">Weather Station Code</td>.*<td align="left">(.*)</td>"
StringIndex=1
FinishAction=[!WriteKeyValue Variables "WeatherStation" "[mGeo]"][!WriteKeyValue Variables "toggle" "0"][!Refresh]

[mURL]
Disabled=#toggle#
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://wxdata.weather.com/wxdata/weather/local/#WeatherStation#?cc=*&unit=#tempunit#&dayf=3
;http://xml.weather.com/weather/local/#WeatherStation#?cc=*&dayf=3&unit=#tempunit#
Download=1
DownloadFile=weather.xml
FinishAction=[!EnableMeasure mWeather][!WriteKeyValue Variables "toggle" "1"][!Redraw]

;-------
limitisrael.png
That should get it working, but as a fail-safe, here is the entire skin code

Code: Select all

[Rainmeter]
Update=1000

[Variables]
@include1=#@#limvar.ini
; main string size
size=100
; Fahrenheit (f) or Metric (m)
tempunit=m
; set limits for temperature maxima (in corresponding units)
TempMax=(120)
TempMin=(0)
; Set to 0 for auto geo IP location, 1 to use manual weather code
ManualWeather=1
; Else use Weather.com station code (example: USNY0996)
WeatherStation=ISXX0010
; variable for toggling options when refreshing
toggle=1

;---Styles---
@include2=#@#styles.ini

;---Measures---

; Find location and parse to Weather.com RSS

[cManualWeather]
Disabled=(1-#toggle#)
Measure=Calc
Formula=#ManualWeather#
IfEqualValue=0
IfEqualAction=[!EnableMeasure mGeo]
IfAboveValue=0
IfAboveAction=[!EnableMeasure mURL]

[mGeo]
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=600
Url=http://iplocationtools.com/
RegExp="(?siU)<div><label><strong>Weather Station</strong></label></div>.*\((.*)\)<div>"
;"(?siU).*<td align="left" class="field-name">Weather Station Code</td>.*<td align="left">(.*)</td>"
StringIndex=1
FinishAction=[!WriteKeyValue Variables "WeatherStation" "[mGeo]"][!WriteKeyValue Variables "toggle" "0"][!Refresh]

[mURL]
Disabled=#toggle#
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://wxdata.weather.com/wxdata/weather/local/#WeatherStation#?cc=*&unit=#tempunit#&dayf=3
;http://xml.weather.com/weather/local/#WeatherStation#?cc=*&dayf=3&unit=#tempunit#
Download=1
DownloadFile=weather.xml
FinishAction=[!EnableMeasure mWeather][!WriteKeyValue Variables "toggle" "1"][!Redraw]

;-------

[mWeather]
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=600
Url=file://#CURRENTPATH#DownloadFile\weather.xml
RegExp="(?siU)<ut>(.*)</ut>.*<us>(.*)</us>.*<dnam>(.*)</dnam>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<cc>.*<lsup>(.*)M.*</lsup>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<wind>.*<s>(.*)</s>.*<d>(.*)</d>.*<t>(.*)</t>.*<day d="0".*<hi>(.*)</hi>.*<low>(.*)</low>.*<day d="1" t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<day d="2" t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>"
FinishAction=[!EnableMeasureGroup Web2 #CURRENTCONFIG#][!Redraw #CURRENTCONFIG#]
[mTempUnit]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=1
[mSpeedUnit]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=2
[mLocation]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=3
Substitute="":"Unknown"
[mSunrise]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=4
Substitute="":"0:00 AM"
[mSunset]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=5
Substitute="":"0:00 PM"
[mUpdate]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=6
Substitute="":"Not Updated|"
[mTemp]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=7
Substitute="":"00"
[mFeelsLike]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=8
Substitute="":"00"
[mDesc]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=9
Substitute="":"Loading...","and":"&"
[mIcon]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=10
Substitute="":"44"
[mWindSpeed]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=11
Substitute="":"0","calm":"0"
[mWindDir]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=12
Substitute="":"0"
[mWindDesc]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=13
Substitute="":"???"
[mHigh]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=14
Substitute="":"00","N/A":"0"
[cHigh]
Measure=Calc
Formula=([mHigh]>[mTemp]) ? ([mHigh]) : ([mTemp])
DynamicVariables=1
[mLow]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=15
Substitute="":"00"
[cLow]
Measure=Calc
Formula=([mLow]<[mTemp]) ? ([mLow]) : ([mTemp])
DynamicVariables=1
[mDay1]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=16
Substitute="Sunday":"Sun","Monday":"Mon","Tuesday":"Tue","Wednesday":"Wed","Thursday":"Thu","Friday":"Fri","Saturday":"Sat","":"Day"
[mDate1]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=17
Substitute="":"00/00"
[mHigh1]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=18
Substitute="":"00"
[mLow1]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=19
Substitute="":"00"
[mIcon1]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=20
[mDesc1]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=21
Substitute="":"Loading...","Isolated":"Iso"
[mDay2]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=22
Substitute="Sunday":"Sun","Monday":"Mon","Tuesday":"Tue","Wednesday":"Wed","Thursday":"Thu","Friday":"Fri","Saturday":"Sat","":"Day"
[mDate2]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=23
Substitute="":"00/00"
[mHigh2]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=24
Substitute="":"00"
[mLow2]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=25
Substitute="":"00"
[mIcon2]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=26
[mDesc2]
Group=Web
Disabled=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeather]
StringIndex=27
Substitute="":"Loading...","Isolated":"Iso"

; Calculations
[cTempH]
Measure=Calc
Formula=(([mTemp]-#TempMin#)/(#TempMax#-#TempMin#)+#offset#)*#lineheight#*#size#
DynamicVariables=1
[cHighH]
Measure=Calc
Formula=(([cHigh]-#TempMin#)/(#TempMax#-#TempMin#)+#offset#)*#lineheight#*#size#
DynamicVariables=1
[cLowH]
Measure=Calc
Formula=(([cLow]-#TempMin#)/(#TempMax#-#TempMin#)+#offset#)*#lineheight#*#size#
DynamicVariables=1
[cHigh1H]
Measure=Calc
Formula=(([mHigh1]-#TempMin#)/(#TempMax#-#TempMin#)+#offset#)*#lineheight#*#size#*0.3
DynamicVariables=1
[cLow1H]
Measure=Calc
Formula=(([mLow1]-#TempMin#)/(#TempMax#-#TempMin#)+#offset#)*#lineheight#*#size#*0.3
DynamicVariables=1
[cHigh2H]
Measure=Calc
Formula=(([mHigh2]-#TempMin#)/(#TempMax#-#TempMin#)+#offset#)*#lineheight#*#size#*0.3
DynamicVariables=1
[cLow2H]
Measure=Calc
Formula=(([mLow2]-#TempMin#)/(#TempMax#-#TempMin#)+#offset#)*#lineheight#*#size#*0.3
DynamicVariables=1

;---Meters---

[CurrentToggle]
Meter=Image
W=(2.2*#size#)
H=(1.6*#size#)
SolidColor=#invis#
MouseOverAction=[!HideMeterGroup Current][!ShowMeterGroup HiLo][!Redraw]
MouseLeaveAction=[!ShowMeterGroup Current][!HideMeterGroup HiLo][!Redraw]

[TempBG]
Group=Current
MeasureName=mTemp
Meter=String
MeterStyle=sText | sBG
X=0
Y=(1.6*#size#)
StringAlign=LeftBottom
Text="%1°"
[HighFill]
Group=Current
MeasureName=mTemp
Meter=String
MeterStyle=sText | sFill
W=(2*#size#)
H=[cHighH:]
Text="%1°"
FontColor=#color1#
[TempFill]
Group=Current
MeasureName=mTemp
Meter=String
MeterStyle=sText | sFill
W=(2*#size#)
H=[cTempH:]
Text="%1°"
FontColor=#color3#
[LowFill]
Group=Current
MeasureName=mTemp
Meter=String
MeterStyle=sText | sFill
W=(2*#size#)
H=[cLowH:]
Text="%1°"
FontColor=#color4#

[CurrentHighBG]
Hidden=1
Group=HiLo
MeasureName=cHigh
Meter=String
MeterStyle=sText | sBG
X=(0.1*#size#)r
Y=(-0.9*#size#)r
StringStyle=BOLD
FontSize=(0.4*#size#)
Text="HIGH %1°"
[CurrentHighFill]
Hidden=1
Group=HiLo
MeasureName=cHigh
Meter=String
MeterStyle=sText | sFill
W=(3*#size#)
H=([cHighH]*0.4)
StringStyle=BOLD
FontSize=(0.4*#size#)
Text="HIGH %1°"
FontColor=#color1#

[CurrentLowBG]
Hidden=1
Group=HiLo
MeasureName=mLow
Meter=String
MeterStyle=sText | sBG
X=0r
Y=(0.55*#size#)r
StringStyle=BOLD
FontSize=(0.4*#size#)
Text="Low %1°"
[CurrentLowFill]
Hidden=1
Group=HiLo
MeasureName=mLow
Meter=String
MeterStyle=sText | sFill
W=(3*#size#)
H=([cLowH]*0.4)
StringStyle=BOLD
FontSize=(0.4*#size#)
Text="Low %1°"
FontColor=#color4#

[Location]
MeasureName=mLocation
Meter=String
MeterStyle=sText
X=(0.1*#size#)r
Y=(0.15*#size#)r
W=(2.2*#size#)
H=(0.3*#size#)
ClipString=1
StringAlign=LeftBottom
StringStyle=BOLD
FontSize=(0.15*#size#)
FontColor=#color0#
[Description]
MeasureName=mDesc
Meter=String
MeterStyle=sText
X=(-0.03*#size#)r
Y=(0.3*#size#)r
W=(2.2*#size#)
H=(0.4*#size#)
ClipString=1
StringAlign=LeftBottom
StringStyle=BOLD
FontSize=(0.2*#size#)
FontColor=#color0#

; Forecast

[ForecastToggle]
Meter=Image
X=(2.5*#size#)
Y=0
W=(1.8*#size#)
H=(1.6*#size#)
SolidColor=#invis#
MouseOverAction=[!SetOptionGroup Forecast Text "%2/%3°"][!Redraw]
MouseLeaveAction=[!SetOptionGroup Forecast Text "%1"][!Redraw]

[Day1BG]
Group=Forecast
MeasureName=mDay1
MeasureName2=mHigh1
MeasureName3=mLow1
Meter=String
MeterStyle=sText | sBG
X=0r
Y=(0.6*#size#)r
StringStyle=BOLD
FontSize=(0.3*#size#)
Text="%1"
[Day1HighFill]
Group=Forecast
MeasureName=mDay1
MeasureName2=mHigh1
MeasureName3=mLow1
Meter=String
MeterStyle=sText | sFill
W=(3*#size#)
H=[cHigh1H]
StringStyle=BOLD
FontSize=(0.3*#size#)
Text="%1"
FontColor=#color1#
[Day1LowFill]
Group=Forecast
MeasureName=mDay1
MeasureName2=mHigh1
MeasureName3=mLow1
Meter=String
MeterStyle=sText | sFill
W=(3*#size#)
H=[cLow1H]
StringStyle=BOLD
FontSize=(0.3*#size#)
Text="%1"
FontColor=#color4#

[Day1Desc]
MeasureName=mDesc1
Meter=String
MeterStyle=sText
X=(0.05*#size#)r
Y=(0.17*#size#)r
W=(1.8*#size#)
H=(0.3*#size#)
ClipString=1
StringAlign=LeftBottom
StringStyle=BOLD
FontSize=(0.15*#size#)
FontColor=#color0#

[Day2BG]
Group=Forecast
MeasureName=mDay2
MeasureName2=mHigh2
MeasureName3=mLow2
Meter=String
MeterStyle=sText | sBG
X=(-0.05*#size#)r
Y=(0.7*#size#)r
StringStyle=BOLD
FontSize=(0.3*#size#)
Text="%1"
[Day2HighFill]
Group=Forecast
MeasureName=mDay2
MeasureName2=mHigh2
MeasureName3=mLow2
Meter=String
MeterStyle=sText | sFill
W=(3*#size#)
H=[cHigh1H]
StringStyle=BOLD
FontSize=(0.3*#size#)
Text="%1"
FontColor=#color1#
[Day2LowFill]
Group=Forecast
MeasureName=mDay2
MeasureName2=mHigh2
MeasureName3=mLow2
Meter=String
MeterStyle=sText | sFill
W=(3*#size#)
H=[cLow1H]
StringStyle=BOLD
FontSize=(0.3*#size#)
Text="%1"
FontColor=#color4#

[Day2Desc]
MeasureName=mDesc2
Meter=String
MeterStyle=sText
X=(0.05*#size#)r
Y=(0.17*#size#)r
W=(1.8*#size#)
H=(0.3*#size#)
ClipString=1
StringAlign=LeftBottom
StringStyle=BOLD
FontSize=(0.15*#size#)
FontColor=#color0#
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 7014
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Change to Weather.com XML feed

balala » January 23rd, 2018, 12:36 pm

B2Bfreek wrote:i have tried this: URL=http://xml.weather.yahoo.com/forecastrss?w=#LocationCode#&u=#Unit# - IT DIDN'T WORK
This probably won't work. As far as I know, Yahoo weather doesn't work any more.
B2Bfreek wrote:i have tried this: https://weather.com/he-IL/weather/today/l/ISXX0010:1:IS - IT DIDN'T WORK
Although this could work, using a such URL is not a good idea. Usually preferably would be to use an xml file for weather forecast (like the last URL).
B2Bfreek wrote:i have tried this:URL=http://wxdata.weather.com/wxdata/weather/local/#WeatherStation#?cc=*&dayf=3&unit=#tempunit# - IT DIDN'T WORK!!!!!
Beside eclectic-tech's reply, I have to ask: have you defined in the [Variables] section of your skin the WeatherStation and tempunit variables? Looking to the second URL, I suppose WeatherStation should be ISXX0010, while tempunit should be either m (metric - for temperatures in Celsius degrees), or i (imperial - temperatures in Fahrenheit degrees):

Code: Select all

[Variables]
WeatherStation=ISXX0010
tempunit=m
User avatar
balala
Rainmeter Sage
Posts: 7014
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Change to Weather.com XML feed

balala » January 23rd, 2018, 12:44 pm

eclectic-tech wrote:

Code: Select all

; Fahrenheit (f) or Metric (m)
tempunit=m[/quote]
eclectic-tech, I'm sorry, but here I'd like to argue a bit. The valid values of the tempunit variable are:
[list][*]m - metric
[*]i - imperial, [b][i]not f - Fahrenheit[/i][/b][/list]
The reason why it works even with [snippet]tempunit=f[/snippet] is that if the variable is nor m, nor i, the default value is used, which is i. So, in fact for m, the site returns the temperatures in Celsius, but for any other letter, it returns them in Fahrenheit.
User avatar
jsmorley
Developer
Posts: 18330
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Change to Weather.com XML feed

jsmorley » January 23rd, 2018, 12:50 pm

balala wrote:eclectic-tech, I'm sorry, but here I'd like to argue a bit. The valid values of the tempunit variable are:
  • m - metric
  • i - imperial, not f - Fahrenheit
The reason why it works even with tempunit=f is that if the variable is nor m, nor i, the default value is used, which is i. So, in fact for m, the site returns the temperatures in Celsius, but for any other letter, it returns them in Fahrenheit.
https://www.interexchange.org/articles/career-training-usa/2012/05/24/imperial-vs-metric-system/

Every argument for using metric measurements is entirely logical and beyond question correct. The response from those of us in the US is the only one that matters though... "Because we don't want to, piss off!". ;-)
User avatar
balala
Rainmeter Sage
Posts: 7014
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Change to Weather.com XML feed

balala » January 23rd, 2018, 1:38 pm

jsmorley wrote:The response from those of us in the US is the only one that matters though... "Because we don't want to, piss off!". ;-)
No comment...
However I didn't say anyone to use the metric system. I just wanted to point out that eclectic-tech's tempunit=f variable is in fact wrong. That's all...
User avatar
jsmorley
Developer
Posts: 18330
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Change to Weather.com XML feed

jsmorley » January 23rd, 2018, 1:41 pm

balala wrote:No comment...
However I didn't say anyone to use the metric system. I just wanted to point out that eclectic-tech's tempunit=f variable is in fact wrong. That's all...
Right, my link was just to illustrate why it is "imperial" and not "fahrenheit". Although at the end of the day, it's not terribly important, as you say, anything but "m" is considered imperial anyway. It defaults to imperial because we invented weather...
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3025
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Change to Weather.com XML feed

eclectic-tech » January 23rd, 2018, 1:51 pm

I just used what was already in the skin comments so I did not further confuse the OP.

As was noted, 'i' for imperial may be technically correct, but only 'm' as the variable, will cause it not to report in Fahrenheit temperatures.

:D "...we invented weather..." ;-)
User avatar
jsmorley
Developer
Posts: 18330
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Change to Weather.com XML feed

jsmorley » January 23rd, 2018, 1:58 pm

eclectic-tech wrote:I just used what was already in the skin comments so I did not further confuse the OP.

As was noted, 'i' for imperial may be technically correct, but only 'm' as the variable, will cause it not to report in Fahrenheit temperatures.

:D "...we invented weather..." ;-)
Right. My only argument for using "i" instead of "f" when we help out is that when a user sees "f" to indicated showing Fahrenheit, the assumption might be to use "c" for Celsius, which won't work. The weather feed is about more than temperature, it's about a variety of measurements, most of which differ between metric and imperial. It's all just nit-picking though...

I would point out that Adolf Hitler used the metric system...