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.2.0.tar.gz (12.7 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.2.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: omega-tx-0.2.0.tar.gz
  • Upload date:
  • Size: 12.7 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.2.0.tar.gz
Algorithm Hash digest
SHA256 e57237e2e7d47415fc796f3582acd464c425e95f93684e9dd6320d55347a241e
MD5 5486d5d2a740dca3ee5202e2522679bf
BLAKE2b-256 91c9202a2514a723e41f0706611c0673dec168ec651331c58e82765296a67d71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omega_tx-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55f797b6e2a64f374c33ab7bd033bc373ee3c2fcf7a1d349b3ae1cb44b8f74e8
MD5 78da3a941a3f5e486d4592c8ea66dea4
BLAKE2b-256 84f92d584066b7ec9ab176c9b887aa80fcba03a0918a57e32ebf31f2b547af55

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