Skip to main content

Python connector for Hoppie's ACARS service

Project description

hoppie-connector

License PyPI - Version

The hoppie-connector project is an API implementation for Jeroen Hoppenbrouwers' "Hoppie's ACARS" services for online multiplayer flight simulation. It can be used to create custom flight tracking and dispatch systems, or serve as a basis for airborne station implementations!

Installation

A pre-built package is hosted on PyPI and can be installed and updated using the pip utility:

pip install -U hoppie-connector

Usage Example

from hoppie_connector import HoppieConnector, HoppieError

cnx = HoppieConnector('<your callsign>', '<your logon code>')

try:
    # Send a telex message
    cnx.send_telex('<other callsign>', '<message>')

    # Fetch and print incoming messages
    messages, delay = cnx.peek()
    for m_id, msg in messages: 
        print(f"Message {m_id}: {msg}")
except HoppieError as e:
    print(e)

[!NOTE] In order to minimize unnecessary server load, keep the idle polling rate to at most once every 60 seconds. During active communication, the polling rate may be temporarily increased to once every 20 seconds.[^1]

Documentation

A more comprehensive documentation is currently in development on this project's GitHub Wiki.

Acknowledgements

Great thanks to Jeroen Hoppenbrouwers for creating and maintaining the "Hoppie's ACARS" services.

Licensing

The contents of this repository are licensed under the MIT License. The full license text is provided in the LICENSE file.

SPDX-License-Identifier: MIT

[^1]: "ACARS Server API". www.hoppie.nl. Retrieved April 3, 2024.

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

hoppie-connector-0.1.0.tar.gz (22.5 kB view hashes)

Uploaded Source

Built Distribution

hoppie_connector-0.1.0-py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page