The Ham::APRS::LastPacket module retrieves the latest packet from APRS-IS for a given station's callsign by referencing the aprsworld-to-XML interface. You provide the callsign for a station that exists in APRSWorld, and you will get back a hashref of hashrefs containing all data available for that station's latest packet. Use Data::Dumper to inspect the data to see all items that are available (as shown in the synopsis). The data set returned can differ based on what type of station is being referenced. For instance, a weather station will contain weather data that another type of station won't.

Usage : my $aprs = Ham::APRS::LastPacket->new;
Function : creates a new Ham::APRS::LastPacket object
Returns : a Ham::APRS::LastPacket object
Args : a hash:
key required? value
------- --------- -----
timeout no an integer of seconds to wait for
the timeout of the web site
default = 10
suppress_empty no set the handling for empty elements
suppress_empty => 1 will exclude empty elements
suppress_empty => '' will set them to an empty hash
suppress_empty => undef will set the hashes to undef
default is empty string

Usage : $aprs->set_callsign( $callsign );
Function : set the callsign of the station whose data will be retrieved with get_data()
Returns : n/a
Args : a case-insensitive string containing the callsign of the station in APRS-IS.
you can use CWOP callsigns and callsigns with SSIDs.

Usage : $callsign = $aprs->get_callsign;
Function : get the callsign that was set with the most recent call to set_callsign().
Returns : a string. (the callsign will have been converted to upper case)
Args : n/a

This module is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license in the file LICENSE.

This program is distributed in the hope that it will be useful, but it is provided "as is" and without any express or implied warranties. For details, see the full text of the license in the file LICENSE.