DanielPodo wrote:The only thing that appears is the "asfsads" text, nothing else. Wtf am I doing wrong?
The used RegExp is wrong.
Looking at the initial code, I think you wanted to get the current temperature and description, along with the current icon, right? If so, I have a remark: in the RegExp option of the parent WebParser measure ([measureWeatherParent]), you had used three times the
(.*) identifier (so, you parse three strings), but in the child measures, you have the StringIndex options up to 4 (in the [measureWeather4] measure). This doesn't make the skin (measures) to fail, but it's wrong either.
I rewrote the involved measures, to get what I think you wanted to get. I also added a measure to download the appropriate icon, because if the site provides the icon, I think it is better to download it, instead of having them stored on the hard disk. The initially disabled [measureCurrentIcon] measure does exactly this: downloads the icon. Then this downloaded icon is used by the [meterWeatherIcon] Image meter.
If you want something more to parse, let us know, to can help you with that, too. For now here is the rewritten code:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[measureWeatherParent]
Measure=WebParser
URL=https://www.timeanddate.com/weather/germany/munich
UpdateRate=900
RegExp=(?siU)<img id=cur-weather class=mtt title=".*" src="(.*)" width=.* height=.*><div class=h2>(.*)</div><p>(.*)</p>
;RegExp=(?siU).*<img id="cur-weather" class="" title="" src="//c.tadst.com/gfx/w/80/(.*).png" width="80" height="80">.*<div class="h2">(.*) °C</div><p>(.*)</p>
ErrorString="lol you dun fukd up"
FinishAction=[!EnableMeasure "measureCurrentIcon"][!CommandMeasure "measureCurrentIcon" "Update"]
[measureWeather1]
Measure=WebParser
URL=[measureWeatherParent]
StringIndex=1
[measureWeather2]
Measure=WebParser
URL=[measureWeatherParent]
StringIndex=2
Substitute=" ":""
[measureWeather3]
Measure=WebParser
URL=[measureWeatherParent]
StringIndex=3
[measureCurrentIcon]
Measure=WebParser
Url=http:[&measureWeather1]
DynamicVariables=1
Download=1
Disabled=1
[meterWeatherInfo]
meter=String
MeterStyle=SmallText | BigSkinTextFormat
MeasureName=measureWeather2
MeasureName2=measureWeather3
X=0
Y=0
H=40
Text=%1#CRLF#%2
SolidColor=255,255,255,120
[meterWeatherIcon]
meter=Image
MeasureName=measureCurrentIcon
X=0r
Y=0R
W=50
LeftMouseUpAction=["bingweather://"]