Asynchronous APRS OGN (Open Glider Network) Client for asyncio and Python.
Project description
aogn
Asynchronous OGN (Open Glider Network) Client for asyncio and Python that receives the planes', gliders', receivers', etc. APRS messages.
Use a library like python-ogn-client's ogn.parser.parse
to interpret these messages.
Installation
pip install aogn
Usage
Simple example:
import asyncio
import logging
import sys
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(module)s %(message)s',
datefmt='%b %d %H:%M:%S',
)
from aogn import Client
async def example() -> None:
conn = Client(aprs_user='NO-CALL', )
try:
while True:
# Get the APRS packet once available:
raw_message = await conn.packet()
logging.debug(raw_message)
except KeyboardInterrupt:
logging.info('OGN Gateway stopped.')
await conn.disconnect()
if __name__ == '__main__':
asyncio.run(example())
Please see example_with_ogn_client.py
for a concurrent example.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aogn-0.1.1.tar.gz
(15.4 kB
view hashes)
Built Distribution
aogn-0.1.1-py3-none-any.whl
(15.8 kB
view hashes)