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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file hoppie-connector-0.1.0.tar.gz.

File metadata

  • Download URL: hoppie-connector-0.1.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for hoppie-connector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 134df6a3f4f7e6e66e64b75901f0435f1c9e58ba8296b5520d8638b03d984119
MD5 aab89f30ba55dd5a98d612b1f49f67f2
BLAKE2b-256 3d88c529fe8638fc1717b142ff35f966f55cdc86c6eb8397cc1a738d6fb51be8

See more details on using hashes here.

File details

Details for the file hoppie_connector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hoppie_connector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a8554446f5baa8c11d68747ba37609846313d27d2bd676f7dd16f1a711031e8
MD5 578d996cd22d20e819230e3d1fac3fe2
BLAKE2b-256 c16654311c15508351f0ac8bd00159b4261a70488bc2f937c728f7623bed6d20

See more details on using hashes here.

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