It is currently April 19th, 2024, 10:14 pm

Illustro Metar-Taf Addition

RSS, ATOM and other feeds, GMail, Stocks, any information retrieved from the internet
Sky'
Posts: 2
Joined: June 2nd, 2014, 4:56 pm

Illustro Metar-Taf Addition

Post by Sky' »

Just a little tool for pilots out there who are bored to always check the metar-taf on internet or on their phones, now you got it on your desktop! Special thanks to jsmorley for the help and Xi.Cynx because i used the background image he created for his skin here --> http://rainmeter.net/forum/viewtopic.php?f=27&t=13400.
Image

Code: Select all

[Rainmeter]
Update=1000

[Metadata]
Name=Metar
Description=Displays Metar & Taf infos from http://aviationweather.gov
Author=Sky'
License=Creative Commons Attribution-Non-Cormercial-Share Alike 3.0
Version=1.0.0 04/06/14

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
ICAO=lfll
fontName=Trebuchet MS
textSize=8
textSize2=7
timeSize=11
colorBar=235,170,0,255
colorText=255,255,255,205
width=390

;=========================================================================================================

[meterBackground]
Meter=IMAGE
ImageName=#@#\Background13LineWide.png
; #SKINSPATH# is a global variable that stands for your skin path. It is
, usually Documents\Rainmeter\Skins.
BackgroundMode=3
X=0
Y=0

[measureUTC]
; This measure returns the time in a 24-hour format (i.e. HH:MM).
Measure=Time
Format=%H:%M
Timezone=-1
; For a 12-hour clock, change the Format option above to: %I:%M %p
; Refer to the Rainmeter manual for other format codes.

[measureLocalTime]
; This measure returns the time in a 24-hour format (i.e. HH:MM).
Measure=Time
Format=%H:%M
; For a 12-hour clock, change the Format option above to: %I:%M %p
; Refer to the Rainmeter manual for other format codes.

[measureNOAAMetar]
Measure=Plugin
Plugin=WebParser
URL=http://aviationweather.gov/adds/metars/?station_ids=#ICAO#&std_trans=standard&chk_metars=on&hoursStr=most+recent+only&chk_tafs=on&submitmet=Submit
RegExp=(?siU)(?(?=.*<font face="Monospace,Courier">).*<font face="Monospace,Courier">(.*)</font>).*(?(?=.*<pre>).*<pre>.*[>].*(.*)</font>)
UpdateRate=900

[MeasureMetar]
Measure=Plugin
Plugin=WebParser
URL=[MeasureNOAAMetar]
RegExpSubstitute=1
Substitute="\n":" ", "\s\s":" ","":"No Metar Available"
StringIndex=1

[MeasureTaf]
Measure=Plugin
Plugin=WebParser
URL=[MeasureNOAAMetar]
StringIndex=2
Substitute="":"No Taf Available"

[measureInput]
; The InputText.dll plugin has special powers: it allows user input.
; However, it's not the easiest way to start learning Rainmeter. Get a
; hold of the basics, and then check out the manual entry for InputText.
Measure=Plugin
Plugin=InputText.dll
SolidColor=30,30,30,255
StringAlign=LEFT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
X=165
Y=45
W=90
H=16
FocusDismiss=1
DefaultValue=""
Command1=[!WriteKeyValue Variables ICAO "$UserInput$"][!Refresh]
UpdateDivider=86400

;=========================================================================================================

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1

[styleLeftText]
StringAlign=LEFT
; Meters using styleLeftText will be left-aligned.
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=2
ClipStringW=400

[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,15

[styleSeperator]
SolidColor=255,255,255,15

;=========================================================================================================

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
X=210
Y=12
W=190
H=18
Text="Metar - Taf"

[meterLocalTimeLabel]
Meter=STRING
MeterStyle=styleTitle
FontSize=#textSize2#
StringAlign=CENTER
StringStyle=BOLD
X=68
Y=37
W=35
H=18
Text="LOCAL"

[meterLocalTime]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureLocalTime
X=45
Y=50
W=190
H=18
FontSize=#timeSize#
Text="%1"

[meterUTCLabel]
Meter=STRING
MeterStyle=styleTitle
FontSize=#textSize2#
StringAlign=CENTER
StringStyle=BOLD
X=350
Y=37
W=25
H=18
Text="UTC"

[meterUTC]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUTC
X=375
Y=50
W=190
H=18
FontSize=#timeSize#
Text="%1"

[meterSearch]
Meter=STRING
StringAlign=CENTER
StringStyle=ITALIC
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
X=210
Y=50
W=50
H=14
Text="Set ICAO..."
LeftMouseUpAction=[!PluginBang "measureInput ExecuteBatch 1"]

[meterSeperator1]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=70
W=397
H=1

[meterMetar]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureMetar
X=10
Y=80
Text="%1"

[meterTaf]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTaf
X=10
Y=130
Text="%1"
You do not have the required permissions to view the files attached to this post.