[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] Ruby WX 0.1.4

Hans Fugal

1/29/2007 5:16:00 PM

Now with a rudimentary to_s method. (still missing sky and present
weather information, and not very smart about things like calm wind, and
of course the RMK field is uninterpreted)

Also added METAR#raw and METAR#relative_humidity

Sample output:

KLRU 291553Z AUTO 00000KT 10SM CLR 06/04 A3016 RMK AO2
Conditions at: KLRU
Temperature/Dewpoint: 6°C / 4°C (42.8°F / 39.2°F) [RH 86.9%]
Pressure (altimiter): 30.16 inches Hg (1021.3 mb)
Winds: 0 kt from 0 deg
Visibility: 10 mi
Remarks: AO2

Example application:

require 'wx/metar'
m = WX::METAR.parse($stdin.readline)
puts m.to_s

Happy meteorologing!