It is currently April 26th, 2024, 4:05 pm

German Weather Information

Tips and Tricks from the Rainmeter Community
EliteLucker
Posts: 46
Joined: June 29th, 2012, 9:06 am

German Weather Information

Post by EliteLucker »

Hello,

i modified an other Weather Skin to get the Weatherinformation complete in german.

there is nothing to translate in the skin, the values comes all from the webpage

Code: Select all

Weather.LocationCode			=	GMXX0007
Weather.Unit					=	C
Weather.Url						=	"http://wetter.msn.com/rss.aspx?wealocations=wc:#Weather.LocationCode#&weadegreetype=#Weather.Unit#"
Weather.RegEx					=	"(?siU).*strong\>(.*)e Bedi.*Stand: (.*)\)\<.*src=".*/(\d+).gif".* title="(.*)".*\. (.*)°C.*Temp\. (.*)°C.*Luftfeuchte: (.*)% Wind: (.*) kmh.*\[CDATA\[.*rss">(.*)</a>.*src=".*/(\d+).gif".* title="(.*)".*Max (.*)°C.*Max (.*)°C.*Niederschlag % (.*)%.*rss">(.*)</a>.*src=".*/(\d+).gif".* title="(.*)".*Max (.*)°C.*Max (.*)°C.*Niederschlag % (.*)%.*rss">(.*)</a>.*src=".*/(\d+).gif".* title="(.*)".*Max (.*)°C.*Max (.*)°C.*Niederschlag % (.*)%.*.*s">(.*)</a>.*src=".*/(\d+).gif".* title="(.*)".*Max (.*)°C.*Max (.*)°C.*Niederschlag % (.*)%.*.*s">(.*)</a>.*src=".*/(\d+).gif".* title="(.*)".*Max (.*)°C.*Max (.*)°C.*Niederschlag % (.*)%.*"

Substitute.Weather.Image		=	"":"na"
what u get if this (which return value is which information)

Code: Select all

0 = trash ( :) )
1 = string of current
2 = Time of last update
3 = number of image
4 = description of weather (eg cloudly)
5 = Temp
6 = Feels Temp
7 = humidity
8 = windspeed

9 = string for today
10 = number of image
11 = description of weather (eg cloudly)
12 = min temp
13 = max Temp
14 = precipitation probability

15 to 38 is äquivalent to 9-14 only add 1 day

how to use them

Code: Select all

[MeasureWeather]
Measure						=	Plugin
Plugin						=	WebParser
Url							=	#Weather.Url#
RegExp						=	#Weather.RegEx#
UpdateRate					=	3600

[MeasureCurrentLabel]
Measure						=	Plugin
Plugin						=	WebParser
Url							=	[MeasureWeather]
StringIndex					=	1

[MeasureCurrentTime]
Measure						=	Plugin
Plugin						=	WebParser
Url							=	[MeasureWeather]
StringIndex					=	2

[MeasureCurrentImage]
Measure						=	Plugin
Plugin						=	WebParser
Url							=	[MeasureWeather]
StringIndex					=	3
Substitute					=	#Substitute.Weather.Image#
the waether code is the same as by the eng msn weather information (so i think)



I hope you enjoy them :D