Skip to main content

Python driver for Omega iTHX-W and iBTHX-W transmitters.

Project description

omega-tx

NOTE: This is in very early stages of development.

Python ≥3.8 driver and command-line tool for Omega ITHX and IBTHX transmitters.

Installation

python3 pip install omega-tx

Usage

Command Line

omega-tx <MODEL> 192.178.6.12 --port 2000 --timeout 1.0 --unit_system metric

where MODEL is either ibthx or ithx

Python

This driver uses Python ≥3.8's async/await syntax to asynchronously communicate with the transmitter. For example:

import asyncio
from omega_tx import Barometer

async def read_once():
    async with Barometer('the-tx-ip-address', 'the-tx-port') as tx:
        print(await tx.get())

asyncio.run(read_once())

Returns:

{
    "Dewpoint in °C": 10.9,
    "Humidity in %": 35.9,
    "Pressure in mbar/hPa": 996.0,
    "Pressure in mmHg": 747.1,
    "Temperature in °C": 27.3,
}

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

omega-tx-0.1.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

omega_tx-0.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file omega-tx-0.1.0.tar.gz.

File metadata

  • Download URL: omega-tx-0.1.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for omega-tx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c5d9c72237719f786e287e5d64aaac55ad0ca881f43bb0b58a5c214be4b1f7e
MD5 0916dde68ed984beb65890d9d9b354b2
BLAKE2b-256 cc74ebe358f28e41d9cddbbcbf18de5ffee976899c43217feab1ba16ce8d1f5d

See more details on using hashes here.

File details

Details for the file omega_tx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: omega_tx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for omega_tx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 997ab604bedf915ebaa0806141badc442b32ad383b3dc88083154eb2b5f95ec0
MD5 08fc780793773c3e0a57356189c515c5
BLAKE2b-256 35b1f1e5637b78680c75f0a87afa2724dd48631fd21391b8e83beab16a81e58e

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