Forum: Ruby Ruby WX 0.1.4

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F0a85fe10cdceda395c89279bb0850f9?d=identicon&s=25 Hans Fugal (Guest)
on 2007-01-29 18:20
(Received via mailing list)
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 topic is locked and can not be replied to.