Skip to content

mattrasband/aioaprs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aioaprs

Asyncio Based APRS client

Usage

Install

$ pip install -U https://github.com/mrasband/aioaprs.git

Use

import asyncio
import dataclasses
import logging
import re
from typing import List, Optional

from . import (
    APRSClient,
    AreaFilter,
    Point,
    RangeFilter,
    TypeFilter,
    Types,
)

logging.basicConfig(level=logging.INFO)


async def main():
    async with APRSClient("KD0VTE", filters=[
        RangeFilter(Point(39.545917, -104.927592), 100),
        # Ignore everything except the Position reports
        ~TypeFilter([
            Types.ITEMS,
            Types.MESSAGE,
            Types.NWS,
            Types.OBJECTS,
            # Types.POSITION,
            Types.QUERY,
            Types.STATUS,
            Types.TELEMETRY,
            Types.USER_DEFINED,
            Types.WEATHER,
        ]),
    ]) as client:
        async for packet in client:
            print(packet)


if __name__ == "__main__":
    try:
        asyncio.run(main())
    except KeyboardInterrupt:
        pass

About

Asyncio based read-only APRS streaming library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages