0.0
No commit activity in last 3 years
No release in over 3 years
Ruby APRS parser based on libfap
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

>= 0
 Project Readme

AprsParser

Ruby APRS parser based on libfap.

libfap

Libfap is a C port of the Ham::APRS::FAP Finnish APRS Parser perl module. As the original Perl code, libfap parses normal, mic-e and compressed location packets, NMEA location packets, objects, items, messages, telemetry and most weather packets. More information on HAM::APRS::FAP is available at http://search.cpan.org/dist/Ham-APRS-FAP/. More information on libfap is available at http://www.pakettiradio.net/libfap/.

Requirements

Latest libfab installed (http://www.pakettiradio.net/libfap/)

Installation

Add this line to your application's Gemfile:

gem 'aprs_parser'

And then execute:

$ bundle

Or install it yourself as:

$ gem install aprs_parser

Usage

data = 'K4HG-8>APKRAM,TCPIP*,qAC,AE5PL-JF:/150653z4440.48N/12403.91WMiPhone'
parsed = AprsParser.parse(data)
parsed[:src_callsign]

The following fields are currently supported (pull requests are welcome):

layout error_code, type, orig_packet, orig_packet_len, header, body, body_len, src_callsign, dst_callsign, path, path_len, latitude, longitude, format, pos_resolution, pos_ambiguity, dao_datum_byte, altitude, course, speed, symbol_table, symbol_code, messaging, destination, message, message_ack, message_nack, message_id, comment, comment_len, object_or_item_name, alive, gps_fix_status, radio_range, phg, timestamp, nmea_checksum_ok

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/masone/aprs_parser-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request