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.12.1.tar.gz (43.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytboss-2024.12.1-py3-none-any.whl (45.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytboss-2024.12.1.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pytboss-2024.12.1.tar.gz
Algorithm Hash digest
SHA256 186d9c80b08a7ddd8ba4dd887c81155f5d2340e68b4426c677b3e805376b8b1c
MD5 d3b2faa459c20c802a19895f59d99193
BLAKE2b-256 b7d99972280a97bfa8834176f9770d08c2be6098e54a70cc27663a75556331a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytboss-2024.12.1-py3-none-any.whl
  • Upload date:
  • Size: 45.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pytboss-2024.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc00faf4c4e5a9c0f4e2b429f9f92e84e7bf5c3a553e1e152616f46aa855491f
MD5 a92040c25b56a4ead835f06da5b560d5
BLAKE2b-256 dfb1f636363e00156f2ef8f6bd6fe950610b96f744623fae807d7e2192bcbb6d

See more details on using hashes here.

Supported by

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