It is currently March 28th, 2024, 11:58 pm

Encoded skin weather problems

Get help with creating, editing & fixing problems with skins
lVlulcan
Posts: 1
Joined: December 24th, 2016, 12:55 am

Encoded skin weather problems

Post by lVlulcan »

So I recently downloaded the Encoded skin [DevArt] http://lilshizzy.deviantart.com/art/Rainmeter-Encoded-v1-2-3-215992941[/DevArt] , and I'm really enjoying tinkering with it but i just can't get the weather to work for the life of me. Can any lend me a hand?
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Encoded skin weather problems

Post by fonpaolo »

User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Encoded skin weather problems

Post by balala »

lVlulcan wrote:So I recently downloaded the Encoded skin [DevArt] http://lilshizzy.deviantart.com/art/Rainmeter-Encoded-v1-2-3-215992941[/DevArt] , and I'm really enjoying tinkering with it but i just can't get the weather to work for the life of me. Can any lend me a hand?
If you'll take a look to the link provided by fonpaolo, you'll see that the Yahoo weather is no longer working, you'll have to replace it with something else. Eg, you could replace the URL and RegExp options of the [MeasureWeatherRSS] measure with something like the following:

Code: Select all

[MeasureWeatherRSS]
...
Url=http://wxdata.weather.com/wxdata/weather/local/USCA1192?cc=*&unit=i&dayf=1
RegExp=(?siU)<weather ver="(.*)">.*<dnam>(.*)</dnam>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*</moon>.*t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>
Just as a note you should be careful about the used unit: in the initial code was used u=f (for temperatures in Fahrenheit degrees), but should use either m or i, where m is used for metric (temperatures in Celsius degrees) and i for imperial (temperatures in Fahrenheit degrees). The reason why a such URL is working even with unit=f (or was with u=f) is that for any other letter than m, the site returns the temperatures in the default unit, which is the Fahrenheit.