Skip to main content

A python module for the Open Glider Network

Project description

# python-ogn-client

[![Build Status](](
[![PyPi Version](](
[![Coverage Status](](

A python3 module for the [Open Glider Network](
It can be used to connect to the OGN-APRS-Servers and to parse APRS-/OGN-Messages.

A full featured gateway with build-in database is provided by [ogn-python](

## Installation

python-ogn-client is available at PyPI. So for installation simply use pip:

pip install ogn-client

## Example Usage

Parse APRS/OGN packet.

from ogn.parser import parse
from datetime import datetime

beacon = parse("FLRDDDEAD>APRS,qAS,EDER:/114500h5029.86N/00956.98E'342/049/A=005524 id0ADDDEAD -454fpm -1.1rot 8.8dB 0e +51.2kHz gps4x5",
reference_timestamp=datetime(2015, 07, 31, 12, 34, 56))

Connect to OGN and display all incoming beacons.

from ogn.client import AprsClient
from ogn.parser import parse, ParseError

def process_beacon(raw_message):
beacon = parse(raw_message)
print('Received {beacon_type}: {raw_message}'.format(**beacon))
except ParseError as e:
print('Error, {}'.format(e.message))

client = AprsClient(aprs_user='N0CALL')

try:, autoreconnect=True)
except KeyboardInterrupt:
print('\nStop ogn gateway')

## License
Licensed under the [AGPLv3](LICENSE).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ogn_client-0.9.1-py3-none-any.whl (18.0 kB) Copy SHA256 hash SHA256 Wheel py3
ogn-client-0.9.1.tar.gz (51.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page