It is currently November 30th, 2022, 4:54 am

My second Skin - a thermometer

Weather skins
User avatar
van Neel
Posts: 13
Joined: November 19th, 2012, 4:25 pm
Location: Germany

My second Skin - a thermometer

Post by van Neel »

Here is my thermometer :)



just change the weathercode to your location, download the following images and copy it to your @Resources\Images folder or change the imasge-paths in the skin to your optional folder
http://www.vanneel.de/Bilder/thermometer.png
http://www.vanneel.de/Bilder/needle.png

Code: Select all

Update=1000

[Metadata]
Name=Thermometer
Author=vanneel@live.de
Information=analog thermometer
License=no
Version=1.0

[MeasureYahooWeather]
Measure=Plugin
Plugin=WebParser
UpdateRate=1800
Url="http://weather.yahooapis.com/forecastrss?w=702332&u=c"
RegExp=(?siU)<link.*>(.*)</link>.*city=\"(.*)\".*region=\"(.*)\".*country=\"(.*)\".*temperature=\"(.*)\".*distance=\"(.*)\".*pressure=\"(.*)\".*speed=\"(.*)\".*chill=\"(.*)\".*direction=\"(.*)\".*speed=\"(.*)\".*humidity=\"(.*)\".*visibility=\"(.*)\".*pressure=\"(.*)\".*rising=\"(.*)\".*sunrise=\"(.*)\".*sunset=\"(.*)\".*<title>.*:.*m .*(.*)</title>.*lat>(.*)<.*long>(.*)<.*yweather:condition.*text=\"(.*)\".*code=\"(.*)\".*temp=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*low=\"(.*)\".*high=\"(.*)\".*text=\"(.*)\".*code=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*low=\"(.*)\".*high=\"(.*)\".*text=\"(.*)\".*code=\"(.*)\".*
StringIndex=1

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=23

[MeasureTemp]
Measure=Calc
Formula=[MeasureWeatherTemp]+30
MinValue=0
MaxValue=80
DynamicVariables=1

[MeterThermometer]
Meter=Image
ImageName=#@#Images\thermometer.png
W=150
H=150
X=0
Y=100

[MeterNeedle]
MeasureName=MeasureTemp
Meter=Rotator
X=0r
Y=0r
W=150
H=150
ImageName=#@#Images\needle.png
OffsetX=3
OffsetY=0
StartAngle=1.4
RotationAngle=3.6
If somebody can show me to do this with less (or better) code, please tell me. I'm a newbie and want to to learn about rainmeter.
Image
Together it is easier