Skip to main content

Python library for interacting with the PowUnity BikeTrax GPS tracker.

Project description

aiobiketrax

Python library for interacting with the PowUnity BikeTrax GPS tracker.

Introduction

This library is mainly written to work with a custom component for Home Assistant.

The PowUnity BikeTrax is a GPS tracker for electric bicycles. It provides real-time updates every when the bike is in motion, using a 2G modem. It works in Europe, and requires a subscription after a trial period of one year.

Features

  • Multi-device support.
  • Traccar and admin API support.
  • Live updates using websocket.

Not implemented:

  • Geofencing.
  • Global configuration, such as webhooks.

Usage

from aiobiketrax import Account

import aiohttp

async with aiohttp.ClientSession() as session:
    account = Account(
        username="someone@example.org",
        password="secret",
        session=session)

    await account.update_devices()

    for device in account.devices:
        print(device.name)

Contributing

To contribute to this repository, use GitHub pull-requests.

  • Dependencies are managed using poetry.
  • Code is formatted using black.
  • Your branch is linear (rebase) and logical.

The models have been generated using quicktype. See the contrib/generator/ folder for more information.

License

See the [LICENSE](LICENSE.md) file (MIT license).

Disclaimer

Use this library at your own risk. I cannot be held responsible for any damages.

This page and its content is not affiliated with PowUnity.

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

aiobiketrax-0.1.0.tar.gz (12.2 kB view hashes)

Uploaded Source

Built Distribution

aiobiketrax-0.1.0-py3-none-any.whl (12.9 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