Tests for tag $station

Station location: TEST TEST TEST
Latitude: 45° 41.16' N
Longitude: 121° 33.96' W
Altitude (default unit): 328 feet
Altitude (feet): 328 feet
Altitude (meters): 100 meters

Tests for tag $current

Current dateTime: 03-Sep-2010 11:20
Current dateTime with formatting: 11:20
Raw dateTime: 1283538000
Outside Temperature (normal formatting) 50.3°F
Outside Temperature (explicit unit conversion to Celsius) 10.2°C
Outside Temperature (explicit unit conversion to Fahrenheit) 50.3°F
Outside Temperature (explicit unit conversion to Celsius, plus formatting) 10.158°C
Outside Temperature (explicit unit conversion to Fahrenheit, plus formatting) 50.284°F
Outside Temperature (with explicit binding to 'wx_binding') 50.3°F
Outside Temperature (with explicit binding to 'alt_binding') 45.1°F
Outside Temperature with nonsense binding 'foo_binding' ?'foo_binding'?
Outside Temperature with explicit time 50.3°F
Outside Temperature with nonsense time N/A
Outside Temperature trend (3 hours) 10.3°F
Outside Temperature trend with explicit time_delta (3600 seconds) 4.4°F
Outside Temperature trend where previous value is known to be None (9000 seconds) N/A
Trend with nonsense type ?'foobar'?
Barometer (normal) 30.780 inHg
Barometer trend (3 hours) -0.107 inHg
Barometer using $latest 30.780 inHg
Barometer using $latest and explicit data binding 30.390 inHg at 1283538000
Wind Chill (normal) N/A
Heat Index (normal) N/A
Heat Index (in Celsius) N/A
Heat Index (in Fahrenheit) N/A
Dewpoint N/A
Humidity N/A
Wind 18 mph from 129°
Rain Rate N/A
Inside Temperature N/A
Test tag "exists" for an existent type: $current.outTemp.exists PASS
Test tag "exists" for a nonsense type: $current.nonsense.exists PASS
Test tag "has_data" for an existing type with data: $current.outTemp.has_data PASS
Test tag "has_data" for an existing type without data: $current.hail.has_data PASS
Test tag "has_data" for a nonsense type: $current.nonsense.has_data PASS
Test for a bad attribute on a tag: $current.foobar ?'foobar'?

Tests for tag $hour

Start of hour: 09/03/10 11:00:00
Start of hour (unix epoch time): 1283536800.0
Max Temperature 50.3°F
Min Temperature 49.5°F
Time of max temperature: 11:20
Time of min temperature: 11:10

Iterate over three hours:

Start of hour Min temperature When
08:00 39.7°F 08:10
09:00 41.9°F 09:10
10:00 45.3°F 10:10
11:00 49.5°F 11:10

Tests for tag $day

Start of day: 09/03/10 00:00:00
Start of day (unix epoch time): 1283497200
End of day (unix epoch time): 1283583600
Max Temperature 63.3°F
Min Temperature 38.8°F
Time of max temperature: 00:10
Time of min temperature: 07:00
Last temperature of the day 50.3°F
Time of the last temperature of the day 09/03/10 11:20:00
Max Temperature in alt_binding 51.7°F
Min temp with explicit conversion to Celsius 3.8°C
Min temp with explicit conversion to Fahrenheit 38.8°F
Min temp with explicit conversion to nonsense type $day.outTemp.min.badtype
Min temperature with inappropriate conversion: $day.outTemp.min.mbar $day.outTemp.min.mbar
Nonexistent type: N/A
Sum aggregation (rain) 0.58 in
High Wind from "$day.wind.max" 24 mph from 90° at 01:00
High Wind from "$day.windGust.max" 24 mph
High Wind from "$day.windSpeed.max" 20 mph
Average wind from "$day.wind.avg" 19 mph
High Wind from "$day.windSpeed.avg" 19 mph
Average aggregation (wind) 19 mph
RMS aggregation(wind) 19 mph
Aggregation Vector Average (wind) 19 mph
Aggregation Vector Direction (wind) 107°
Test tag "has_data" with nonsense type PASS
Test tag "exists" with an existing type that has no data PASS
Test tag "has_data" with existent type that has no data PASS
Test tag "has_data" with existent type that has data PASS

Tests for tag $yesterday

Start of yesterday: 09/02/10 00:00:00
Start of yesterday (unix epoch time): 1283410800
Max Temperature yesterday 79.1°F
Min Temperature yesterday 39.5°F
Time of max temperature yesterday: 19:00
Time of min temperature yesterday: 07:00
Yesterday's last temperature 64.2°F
Time of yesterday's last temperature 09/03/10 00:00:00

Tests for tag $rainyear

Rainyear total 58.68 in

Test for tag $alltime

Max temp from $alltime.outTemp.max 100.0°F
at 02-Jul-2010 19:00
High Wind from "$alltime.wind.max" 24 mph
from 90°
at 02-Jan-2010 00:00

Tests for tag $Extras

Radar URL "http://radar.weather.gov/ridge/lite/N0R/RTX_loop.gif"

Tests for tag $almanac

Sunrise: 06:29
Sunset: 19:40
Moon: Last quarter (29%full)

Test for tag $unit

Tag "$unit.unit_type.outTemp" degree_F
Tag "$unit.label.outTemp" °F
Tag "$unit.format.outTemp" %.1f
Example from customizing guide
("$day.outTemp.max.formatted$unit.label.outTemp")
63.3°F
Add a new unit type, existing group degree_F
Check its label °F
Check its format %.1f
Add a new unit type, new group amp
Check its label A
Check its format %.1f

Day images

temperatures heatchill rain wind barometer Hi Wind Inside Wind Vector day rx percent (No image for extraTemp1)