Skip to main content

Micropython iBBQ Interface

Project description

Micropython iBBQ

Micropython support for BLE iBBQ thermometers such as those made by Inkbird.

Dependencies

This driver depends on uasyncio and aioble.

Note that aioble requires a build of MicroPython created after Feb 18 2021 which are the unstable 1.14 releases or 1.15.

Features

  • Read temperature levels from all probes
  • Read battery level
  • Set the display to either celcius or farenheit (temperature readings are in celcius)
  • Asynchronous api

Usage

Connect and read the temperature

def handle_data(d):
    print("Result:", d)

async def run():
    ibbq = iBBQ(handle_data)
    await ibbq.connect()
    await ibbq.disconnect()

asyncio.run(run())

Read the battery level

async def run():
    ibbq = iBBQ(handle_data)
    await ibbq.connect()
    print("Battery:", await ibbq.battery_level())
    await ibbq.disconnect()

asyncio.run(run())

Set the units on the display

async def run():
    ibbq = iBBQ(handle_data)
    await ibbq.connect()
    await ibbq.set_display_to_celcius()
    await ibbq.set_display_to_farenheit()
    await ibbq.disconnect()

asyncio.run(run())

Credits

Adafruit circuitpython iBBQ and Go iBBQ were very useful for decoding the iBBQ protocol. The Adafruit library in particular has an empirically worked formula for calculating the battery voltage.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uibbq-1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

uibbq-1.0-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file uibbq-1.0.tar.gz.

File metadata

  • Download URL: uibbq-1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for uibbq-1.0.tar.gz
Algorithm Hash digest
SHA256 41b5002f54423499b08349a1c3a13509a9aabb1521ff168adad8fbf7dc3150ab
MD5 da3427a6d60ddde03e9050349a3c36c8
BLAKE2b-256 a94c7c0f660ba1dbc507b1ee92383a764fdbb27a97b502930acfe8de7cde4b45

See more details on using hashes here.

File details

Details for the file uibbq-1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: uibbq-1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for uibbq-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 865a58841a0fcfdbfc21ab6640bda560ab06132606e71f5d32fea2caeca081e1
MD5 0337b400daef3b914a8567c58b22201b
BLAKE2b-256 05f41a0b01b0af827f87cdbe4793d4c630540912aef725bbd8b3fce07c0c6434

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