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 BleakClient
from pytboss import BleConnection, PitBoss
async def state_callback(data):
print(data)
async def main():
# Perform a BLE scan for available grills.
# Assume we only have one.
[device] = await PitBoss.discover()
async with BleakClient(device) as ble_client:
grill = PitBoss(BleConnection(ble_client))
# Subscribe to updates from the grill.
await grill.subscribe_state(state_callback)
await grill.start()
while True:
asyncio.sleep(0.1)
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytboss-2023.2.1.tar.gz
(10.5 kB
view hashes)
Built Distribution
pytboss-2023.2.1-py3-none-any.whl
(11.7 kB
view hashes)
Close
Hashes for pytboss-2023.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2176c2f88d7850a274a86cf4a3ffaa4b1f9fbc60f95639a286deb6fc4a5a165e |
|
MD5 | a645c16cddc29c5079bb9618b0d6a6a4 |
|
BLAKE2b-256 | 2d18156defc28c650f89679f450f295bb3d51172c2d922783ca3ab88190eb6e8 |