Trying to understand ... follow you!
Posted: Sat Jan 30, 2010 2:10 am
Pasha, I have been trying to follow the improvements you make to the YoWindow tags but I have great difficulties in following your explanations - I know, I am from Canada and I am a bit 'slower' than European people...
OK, here is my latest list of YoWindow tags (as I have understood it):
And, here is how my latest YoWindow XML file should look like once the tags have been replaced by weather data (as I have understood it):
Has the '<icon id="number" format="weather station type"/>' tag been dropped - I do not see it (nor have I seen it in along time) on the 'Doc: YoWindow XML' forum page?
For the '<solar radiation="" energy=""/>' tag, you seem to require 2 parameters - my weather station produced only one parameter and the unit is 'w/m2'. Could you please define clearly (at least for me) that you and YoWindow are expecting for the 'radiation' parameter and for the 'energy' parameter.
Thank you.
OK, here is my latest list of YoWindow tags (as I have understood it):
Code: Select all
<response>
<current_weather>
<temperature>
<current>
@value - Current temperature
<feels_like>
@value - Feels-like temperature
@unit [c, f] - temperature units
-c - Celsius (default)
-f - Fahrenheit
</temperature>
<wind>
<speed>
@value - Wind speed value
@unit - [mps, kph, mph] Wind speed units
-mps - Meters per Second (default)
-kph - Kilometers per Hour
-mph - Miles per Hour
<direction>
@value - Wind direction angle [0, 359] - where wind blows from, 0 - blows from North, 90 - blows from West
<gusts>
@value - Wind gusts speed
@unit - [mps, kph, mph] - wind speed units
-mps - Meters per Second (default)
-kph - Kilometers per Hour
-mph - Miles per Hour
</wind>
<pressure>
@value - Pressure in Millibars
@unit - [hPa, mmMerc, inchMerc] - pressure units
-hPa - hectopascals (default)
-mmMerc - millimeters of mercury
-inchMerc - inches of mercury
<humidity>
@value - Relative humidity [0, 100] 0 - 100%
<sky> - Sky conditions
<clouds>
@value - [clear, fair, partlyCloudy, mostlyCloudy, overcast]
-clear - no clouds in the sky
-fair - 30% or less cloud cover
-partlyCloudy - 60% or less cloud cover
-mostlyCloudy - 60-100% cloud cover with clearings
-overcast - 100% cloud cover
<precipitation>
<rain>
<rate>
@value - rain rate per hour (mm/hour), 0 means "no rain"
@unit - [mmph, iph] - rain rate units
-mmph - Millimeters per Hour (default)
-iph - Inches per Hour
</rate>
<daily_total>
@value - the amount of rain during the day
@unit - [mm, inch] - rain amount units
</daily_total>
</rain>
<snow>
<rate>
@value - snow rate per hour (mm/hour), 0 means "no snow"
@unit - [mmph, iph] - rain rate units
-mmph - Millimeters per Hour (default)
-iph - Inches per Hour
</rate>
<level>
@value - snow level over the ground
@unit - [mm, inch] - snow level units
-mm - Millimeters (default)
-cm - Centimeters
-inch - Inches
</level>
Snow level helps YoWindow to choose the season picture.
When snow level > 0 YoWindow will always display winter landscape.
When snow level = 0 YoWindow will always display naked landscape.
If your station does not provide rain or snow rate or snow level,
do not include the corresponding tag or attribute.
When a tag is omitted, rain or snow is taken from the closest METAR station.
</snow>
</precipitation>
<thunderstorm> - thunderstorm indication
@value - the number of lightenings per minute
-set @value to 0 if there is no thunderstorm
-set @value to 'yes' if it's thunderstorm but you don't know the lightening rate
<description>
@value - sky conditions description, example: "Partly Cloudy"
<icon>
@id - icon id
@format = "wd" - let YoWindow know the icon id is from Weather Display station
YoWindow will pick sky parameters represented by the icon.
</sky>
<uv>
@value - ultra violet index
<solar> - solar activity
@radiation
@energy
<visibility>
@value - visibility distance OR "unlimited" string
@unit - [m, km, mile] - visibility distance units
-m - meters
-km - kilometers
-mile - miles
In case your the weather station does not provide a parameter, "clouds" for instance,
just don't include the corresponding tag in the XML file. The parameter will be taken
from METAR.
</current_weather>
</response>
Code: Select all
<response>
<current_weather>
<temperature>
<current value="5" unit="c"/>
<feels_like value="8" unit="c"/>
</temperature>
<wind>
<speed value="10.2" unit="kph"/>
<direction value="220"/>
<gusts value="10.2" unit="kph"/>
</wind>
<pressure value="979" unit="hPa"/>
<humidity value="86"/>
<sky>
<clouds value="partlyCloudy"/>
<precipitation>
<rain>
<rate>
<value="2" unit="mmph">
</rate>
<daily_total>
<value="5" unit="mm"/>
</daily_total>
</rain>
<snow>
<rate>
<value="2" unit="mmph">
</rate>
<level>
<value="10" unit="cm"/>
</level>
</snow>
</precipitation>
<thunderstorm value="5"/>
<description value="Partly Cloudy"/>
<icon id="21" format="wd"/>
</sky>
<uv value="1"/>
<solar radiation="" energy=""/>
<visibility value="19" unit="km"/>
</current_weather>
</response>
For the '<solar radiation="" energy=""/>' tag, you seem to require 2 parameters - my weather station produced only one parameter and the unit is 'w/m2'. Could you please define clearly (at least for me) that you and YoWindow are expecting for the 'radiation' parameter and for the 'energy' parameter.
Thank you.