Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akhenakh/hamaprs
HamAPRS is a Go library to parse and decode APRS packet, mainly based on libfap but provides additional features
https://github.com/akhenakh/hamaprs
Last synced: 24 days ago
JSON representation
HamAPRS is a Go library to parse and decode APRS packet, mainly based on libfap but provides additional features
- Host: GitHub
- URL: https://github.com/akhenakh/hamaprs
- Owner: akhenakh
- License: mit
- Created: 2015-05-27T14:16:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-01T18:38:10.000Z (about 1 year ago)
- Last Synced: 2024-06-20T00:37:49.706Z (5 months ago)
- Language: Go
- Size: 38.1 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![wercker status](https://app.wercker.com/status/9933c8d565b8d1cdfe7c9f9ebf0d07d8/m "wercker status")](https://app.wercker.com/project/bykey/9933c8d565b8d1cdfe7c9f9ebf0d07d8)
hamAPRS
=======HamAPRS is a Go library to parse and decode APRS packet, mainly based on libfap but provides additional features
* Recognize the APRS devices
Usage
=====
You may have to set CGO_LDFLAGS and CGO_CFLAGS environment according to your path:
```
export CGO_CFLAGS=-I/opt/local/include
export CGO_LDFLAGS=-L/opt/local/lib
```Create the parser and then parse your packet.
```
parser := NewParser()
packet, _ = parser.parsePacket("KK6NXK-7>T2U1P4,WIDE1-1,WIDE2-1,qAR,VK7ZRO-2:`K1qm y>/'\"4/}|!$&<'V|!w4&!|3", false)
```Get the model transceiver used to send a packet.
```
packet, _ := parser.ParsePacket("KK6NXK-7>S3SWY6,WIDE1-1,qAS,JH6ETS-10:`;\\ll} >/`\"3{}CM now GIGA No...5_$", false)
d := packet.Device()
fmt.Prinln(d.Model)
```
Returns FT1DThanks
======
[APRS identification data](https://github.com/hessu/aprs-deviceid/)
Scott Kidder [aprs-dashboard](https://github.com/urlgrey/aprs-dashboard)