https://github.com/numat/omega-tx
Python driver and command line tool for Omega transmitters.
https://github.com/numat/omega-tx
Last synced: 6 months ago
JSON representation
Python driver and command line tool for Omega transmitters.
- Host: GitHub
- URL: https://github.com/numat/omega-tx
- Owner: numat
- License: gpl-2.0
- Created: 2021-07-21T15:28:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-13T23:34:15.000Z (over 4 years ago)
- Last Synced: 2025-09-28T22:05:09.502Z (9 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# omega-tx
NOTE: This is in very early stages of development.
Python ≥3.8 driver and command-line tool for Omega [ITHX](https://www.omega.com/en-us/iiot-wireless/p/ITHX-SD-Series) and [IBTHX](https://www.omega.com/en-us/iiot-wireless/p/ibtx-ibthx) transmitters.

# Installation
python3
```pip install omega-tx```
# Usage
### Command Line
```bash
omega-tx 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:
```python3
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:
```bash
{
"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,
}
```