Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Weather::Bug 0.01

    Download button

    No screenshots available
    Downloads: 534  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mike Rosulek | More programs
    Perl Artistic License / FREE
    June 15th, 2007, 21:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Weather::Bug description

    Weather::Bug is a Perl module that can get realtime weather where available.

    Weather::Bug is a Perl module that can get realtime weather where available.

    SYNOPSIS

    use Weather::Bug;

    my $w = get_live_weather( 'KCMI' );
    print "It is $w->{temp} degrees in $w->{location}n";

    Weather::Bug uses data from aws.com's live Java weather applet. Not all available stations report live data, however. If the station closest to you does not report live weather data to aws.com, you are probably better off using one of the other Weather:: modules from CPAN.

    Disclaimer

    This Perl module is not endorsed or supported in any way by AWS Convergence Technologies. "WeatherBug" is their trademark.

    USAGE

    get_live_weather($station_id [, $units])

    Weather::Bug exports only one funcion, get_live_weather. The first argument is the station ID. You can find the ID of a station near you at this page:

    http://www.aws.com/aws_2001/asp/getLiveWeather.asp

    If you get a list of sites, click one to view current conditions. Look at the URL of the link that says "Live Broadcast JAVA." The part of the URL that reads "?id=XXXX" is your station ID. For example, my old high school in Fredericksburg, Iowa, is FRDRC.

    The units argument defaults to American, and supports these values:

    0 American
    1 Metric
    2 American, but pressure in millibars

    This function returns a reference to a hash in scalar context, or a hash in list context. The keys of the hash are as follows:

    last_updated
    date
    temp
    wind_direction
    wind_speed
    max_wind_direction
    max_wind_speed
    precip
    precip_rate
    pressure
    humidity
    max_temp
    min_temp
    site_name
    dew_point
    heat_index
    monthly_rain
    temp_change
    humidity_change
    pressure_change
    location
    max_humidity
    min_humidity
    max_pressure
    min_pressure
    max_precip_rate

    Be aware that not all stations report all of these items. Units are stripped from all measurements and rates.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    realtime weather | weather forcast | Perl module | Weather::Bug | realtime | weather

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM