Ruby WX 0.1.4

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!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs