It is currently April 16th, 2024, 6:53 pm

TehGreyFawkz weather.ini

Get help with creating, editing & fixing problems with skins
thatguyi
Posts: 4
Joined: May 5th, 2010, 6:32 am

TehGreyFawkz weather.ini

Post by thatguyi »

Code: Select all

;;___________________________________________________________
;;___________________________________________________________

[Rainmeter]

Author=TehGreyFawkz


;;___________________________________________________________

;Metadata added by RainBrowser
;http://rainmeter.net/RainWiki/index.php?title=Rainmeter_101#.5BMetadata.5D

[Metadata]
Name=
Config=
Description=Network monitor showing Upload and download rates as well as IP and DNS
Instructions=
Version=1.0
Tags=Network, Upload, Download, IP, DNS
License=-
Variant=
Preview=

;End of added Metadata


;;___________________________________________________________

;;[Variables]

[Variables]

;INFO: Go to weather.com, type in place name, get the code and replace UKXX1743 which is Wirral, England
;Another examples Aberystwyth, Wales : UKXX0203

URL=http://xml.weather.com/weather/local/30062?cc=*&unit=m&dayf=6
Font=Visitor


;;___________________________________________________________

;;[Measures]

[Background]
Meter=Image
x=
y=
H=250
W=300
SolidColor=255,255,255,0

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=#URL#
RegExp="(?siU)<weather ver="(.*)">(.*)<tmp>(.*)</tmp>(.*)<t>(.*)</t>(.*)<icon>(.*)</icon>(.*)<day d="1" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="2" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="3" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)"
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]
;Debug=1
;--------------------------------

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=7
;-------------------------

;tomorrow's weather description, id=18
;tomorrow's day, id=9
;tomorrow's date, id=10, you can redefine the StringIndex value below with the id#
[MeasureWeatherDesc1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=18

[MeasureWeatherDay1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9

;tomorrow's Hi-temp, id=12
;tomorrow's Lo-temp, id=14, you can redefine the StringIndex value below with the id#
[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=12

;tomorrow's weather icon, id=16
[MeasureWeatherIcon1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=16
;-------------------------

;D+2, weather description, id=29
;D+2, day of week, id=20
;D+2, date, id=21
[MeasureWeatherDesc2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=29

[MeasureWeatherDay2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=20

;D+2, Hi-temp, id=23
;D+2, Lo-temp, id=25
[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=23

;D+2, weather icon, id=27
[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=27

;-------------------------

;D+3, weather description, id=40
;D+3, day of week, id=31
;D+3, date, id=32
[MeasureWeatherDesc3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=40

[MeasureWeatherDay3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=31

;D+3, Hi-temp, id=34
;D+3, Lo-temp, id=36
[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=34

;D+3, weather icon, id=38
[MeasureWeatherIcon3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=38


;;___________________________________________________________

;;[Styles]

[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=30
Y=
StringStyle=NORMAL
StringEffect=BORDER
FontEffectColor= 0,0,0
Fontcolor= 255,255,255
FontSize=40
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDay]
Meter=STRING
x=120
Y=8
StringEffect=BORDER
FontEffectColor= 0,0,0
Fontcolor= 255,255,255
FontSize=10
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1
Prefix="Today"

[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=125
Y=20
StringEffect=BORDER
FontEffectColor= 0,0,0
Fontcolor= 255,255,255
FontSize=25
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=153
Y=1

[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=1
Y=15
Hidden=1
;------------------------- offset Y: +40

[MeterTemp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=75
Y=65
StringStyle=NORMAL
StringEffect=BORDER
FontEffectColor= 255,255,255
Fontcolor= 0,0,0
FontSize=15
StringAlign=RIGHT
StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDay1]
MeasureName=MeasureWeatherDay1
Meter=STRING
X=75
Y=60
StringEffect=BORDER
FontEffectColor= 255,255,255
Fontcolor= 0,0,0
FontSize=7
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterDesc1]
MeasureName=MeasureWeatherDesc1
Meter=STRING
X=80
Y=70
StringEffect=BORDER
FontEffectColor= 255,255,255
Fontcolor= 0,0,0
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterIcon1]
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
X=1
Y=60
;------------------------- offset Y: +40

[MeterTemp2]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=75
Y=105
StringStyle=NORMAL
StringEffect=BORDER
FontEffectColor= 255,255,255
Fontcolor= 0,0,0
FontSize=15
StringAlign=RIGHT
StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDay2]
MeasureName=MeasureWeatherDay2
Meter=STRING
X=75
Y=100
StringEffect=BORDER
FontEffectColor= 255,255,255
Fontcolor= 0,0,0
FontSize=7
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterDesc2]
MeasureName=MeasureWeatherDesc2
Meter=STRING
X=80
Y=110
StringEffect=BORDER
FontEffectColor= 255,255,255
Fontcolor= 0,0,0
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterIcon2]
MeasureName=MeasureWeatherIcon2
Meter=IMAGE
X=1
Y=100
;------------------------- offset Y: +40

[MeterTemp3]
MeasureName=MeasureWeatherTemp3
Meter=STRING
X=75
Y=145
StringStyle=NORMAL
StringEffect=BORDER
FontEffectColor= 255,255,255
Fontcolor= 0,0,0
FontSize=15
StringAlign=RIGHT
StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDay3]
MeasureName=MeasureWeatherDay3
Meter=STRING
X=75
Y=140
StringEffect=BORDER
FontEffectColor= 255,255,255
Fontcolor= 0,0,0
FontSize=7
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterDesc3]
MeasureName=MeasureWeatherDesc3
Meter=STRING
X=80
Y=150
StringEffect=BORDER
FontEffectColor= 255,255,255
Fontcolor= 0,0,0
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterIcon3]
MeasureName=MeasureWeatherIcon3
Meter=IMAGE
X=1
Y=140
I've been trying to figure out how to change the unit to fahrenheit. Help please?
User avatar
maminscris
Posts: 509
Joined: April 24th, 2009, 3:17 pm
Location: Bucharest, Romania Lat 44,43° Lon 26,1°

Re: TehGreyFawkz weather.ini

Post by maminscris »

Zero at programing, zero at writing codes, so far 2 at making images
But I'm good at copy/paste, and I not always like this
Image
thatguyi
Posts: 4
Joined: May 5th, 2010, 6:32 am

Re: TehGreyFawkz weather.ini

Post by thatguyi »

It was that easy. I feel like an idiot. I'm used to changing the unit elsewhere in the code, I've never had to change it in the URL. Thank you very much.
User avatar
maminscris
Posts: 509
Joined: April 24th, 2009, 3:17 pm
Location: Bucharest, Romania Lat 44,43° Lon 26,1°

Re: TehGreyFawkz weather.ini

Post by maminscris »

thatguyi wrote: It was that easy. I feel like an idiot. I'm used to changing the unit elsewhere in the code, I've never had to change it in the URL. Thank you very much.
glad to help

URL=http://xml.weather.com/weather/local/30062?cc=*&unit=[b][u]f[/u][/b]&dayf=6

f shows Fahrenheit, c shows Celsius
Zero at programing, zero at writing codes, so far 2 at making images
But I'm good at copy/paste, and I not always like this
Image
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: TehGreyFawkz weather.ini

Post by poiru »

maminscris wrote:f shows Fahrenheit, c shows Celsius
Actually, it's m (metric) for Celsius with Weather.com :)
User avatar
maminscris
Posts: 509
Joined: April 24th, 2009, 3:17 pm
Location: Bucharest, Romania Lat 44,43° Lon 26,1°

Re: TehGreyFawkz weather.ini

Post by maminscris »

poiru wrote: Actually, it's m (metric) for Celsius with Weather.com :)
yap sorry my mistake
:beer:
Zero at programing, zero at writing codes, so far 2 at making images
But I'm good at copy/paste, and I not always like this
Image