Relay and control for tessie
Project description
tessie relay
A relay and control server for tessie MQTT messages.
Installation
This project uses uv for management and currently uses Python 3.11.
Running
pip install tessie_relay
Example script:
from tessie_relay import Coldbox
if __name__ == "__main__":
# initialize the Coldbox controller and provide a callback for alarms
coldbox = Coldbox(host='coldbox02.psi.ch', error_callback=handle_error_message)
with coldbox:
coldbox.flush()
print("air temperature ", coldbox.get_air_temperature())
print("water temperature ", coldbox.get_water_temperature())
print("interlock status ", coldbox.get_interlock_status(timeout=10))
print("traffic light ", coldbox.get_traffic_light())
print("flow switch ", coldbox.get_flow_switch())
print("lid ", coldbox.get_lid_status())
channel = 8
print(f"voltage probes for channel {channel} = ", coldbox.get_voltage_probe(channel))
try:
while True:
print("relative humidity ", coldbox.get_relative_humidity())
sleep(10)
except KeyboardInterrupt:
print('interrupted!')
print("shutting down")
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
tessie_relay-0.1.1.tar.gz
(9.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tessie_relay-0.1.1.tar.gz.
File metadata
- Download URL: tessie_relay-0.1.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a57f2eaffe0a485ef3310957fdd534c7a3d3ccc4caa59be6031b2f503d21e01
|
|
| MD5 |
d2dfa2858da7e27882c39e095972b960
|
|
| BLAKE2b-256 |
26f8a6f5e28ce8eba5748acc6ba6b2d6117f233662983f85af6c83509bba84ac
|
File details
Details for the file tessie_relay-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tessie_relay-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1de8a38ca7c42d346a839e8691af23276b78a870de436f68c42b4a550174de65
|
|
| MD5 |
95b668cd9e0e87081a1f6e87a6f4854d
|
|
| BLAKE2b-256 |
6fbc4ef9c8e9377771b155cdfb18654b9c3474d5d34ea7fc2426c5be7abb12cf
|