To display temperature in Celsius you must first find your location code by going to weather.com and typing in you location;
For example if you search for London your URL will look like this - http://uk.weather.com/weather/today/London+GLA+United+Kingdom+UKXX0085:1:UK
The Location code is: UKXX0085
Then you need to go to: http://xml.weather.com/weather/local/UKXX0085?cc=*&unit=m&dayf=0
To display the temperature in Celsius you use unit=m instead of unit=f which will display the temperature in Fahrenheit.
An Example Weather File is (original version by LBPeraza):
[Rainmeter]
Author=LBPeraza
Update=1000
[Variables]
Location=UKXX0085
Type=m
postfix=c
extradays=0
Font=TrebuchetMS
FontColor1=255,255,255,200
FontColor2=978b13
CitySize=14
TmpSize=72
[WeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1600
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Type#&dayf=#extradays#
RegExp="(?siU).*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*"
StringIndex=1
It is currently April 26th, 2024, 6:31 am
Rainmeter Celsius weather.com
-
- Posts: 1
- Joined: December 4th, 2015, 8:36 pm
-
- Rainmeter Sage
- Posts: 2610
- Joined: March 23rd, 2015, 5:26 pm
Re: Rainmeter Celsius weather.com
A few issues:
1. xml.weather.com has been deprecated and may or may not work. The correct URI is wxdata.weather.com. Lots of threads about this can be found.
2. The correct unit of measure codes are "m" for metric and "s" for standard. The reason "f" works is that any code other than "m" will result in standard units.
1. xml.weather.com has been deprecated and may or may not work. The correct URI is wxdata.weather.com. Lots of threads about this can be found.
2. The correct unit of measure codes are "m" for metric and "s" for standard. The reason "f" works is that any code other than "m" will result in standard units.