Skip to main content

Python library for interacting with PitBoss grills and smokers.

Project description

pytboss

Python 3 library for interacting with Pitboss grills and smokers.

Note that this project has no official relationship with Pitboss or Danson's. Use at your own risk.

Usage

import asyncio
from bleak import BleakScanner
from pytboss import BleConnection, PitBoss


async def state_callback(data):
    print(data)


async def main():
    ble_device = await BleakScanner.find_device_by_address(device_address)
    model = "PBV4PS2"  # Or your model. See below.
    boss = PitBoss(BleConnection(ble_device), model)
    # Subscribe to updates from the smoker.
    await boss.subscribe_state(state_callback)
    await boss.start()
    while True:
        asyncio.sleep(0.1)


asyncio.run(main())

Installation

Pip

To install pytboss, run this command in your terminal:

$ pip install pytboss

Source code

Pytboss is actively developed on Github, where the code is always available.

You can either clone the public repository:

$ git clone https://github.com/dknowles2/pytboss

Or download the latest tarball:

$ curl -OL https://github.com/dknowles2/pytboss/tarball/main

Once you have a copy of the source, you can embed it in your own Python package, or install it into your site-packages easily:

$ cd pytboss
$ python -m pip install .

Supported Models

The following models should be supported. Note however that only the PBV4PS2 model has been tested.

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

pytboss-2024.6.0.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

pytboss-2024.6.0-py3-none-any.whl (43.6 kB view details)

Uploaded Python 3

File details

Details for the file pytboss-2024.6.0.tar.gz.

File metadata

  • Download URL: pytboss-2024.6.0.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytboss-2024.6.0.tar.gz
Algorithm Hash digest
SHA256 706e12db75d75c97ee58f55218a28dad0dd24635036ef9ef3e90c0ee2283340b
MD5 881fbff30fdd1a528f3dbdf782b5f983
BLAKE2b-256 7ab400494e7830ef29357c06ccec5acdda735b6bfb4a3d3a11d1ebcd04316e98

See more details on using hashes here.

File details

Details for the file pytboss-2024.6.0-py3-none-any.whl.

File metadata

  • Download URL: pytboss-2024.6.0-py3-none-any.whl
  • Upload date:
  • Size: 43.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytboss-2024.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d54df8e099d9313023628f80e07087defd7779c56a410cfebd28c2440dad832
MD5 eda7ee0f96a6cf18ac76d21e57e0ed99
BLAKE2b-256 1f80b195d9cbfd8ad5d7f30ebcb3953ae4f7d25c80fb7e98d42ff51318e8c233

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