Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1065

Help: Rainmeter Skins • Re: Lumiero Weather Issues

$
0
0
The thing is that the icon i see is from 12pm, it shows not the correct icon for the current time. It shows the icon from the yellow arrow, i prefer the one from green.
There are 2 problems in this case (and 1 potential one):
1) you're using a RegExp which indeed grabs the forecast icon (yellow arrow) instead of the current one (green arrow), so use the one from the original code, which should work (it does for me, while yours gives me the -18 degrees thingy):

Code:

RegExp=(?siU)Wob\(ba\)">(.*)<.*Trsdu\(\.3s\)">(.*)<.*60x60\/(.*)@2x.png.*Fz\(1\.12rem\)">(.*)<.*".*celsius_D\(n\)">(.*)&deg;<.*celsius_D\(n\)">(.*)&deg;<.*celsius_D\(n\)">(.*)<.*RealFeel.*celsius_D\(n\)">(.*)&deg;<.*<dt>Humidity</dt><dd>(.*)</dd></div>.*
2) if an icon from the [SkinsFolder]\Lumiero\@Resources\WeatherIcons folder doesn't match the one at Yahoo, download the latter via right click and open image in a new tab in the browser, and rename it the same but without the ending "@2x" or similar part
3) the Substitute from [MeasureIcon] changes some icon values, you should check if the replacements are what you want

In other words, as you can see if you compare the regexes, the part containing the current icon is between the country and the description (2nd and 4th regex captures / StringIndexes) in the RegExp pattern, while you tried to add it to the end of the pattern (i.e. where the forecast icon was) - that and the incomplete RegExp you used is why your otherwise correct replacement didn't work.

By the way, the RegExp you used indeed only captures 3 values, while the original code displays / uses 8 values. Nothing wrong with either, of course, but what you capture and what you use should typically match, so that you avoid potential errors or inconsistencies.

Statistics: Posted by Yincognito — Yesterday, 10:38 pm



Viewing all articles
Browse latest Browse all 1065

Trending Articles