The lascar module

Autogenerated API documentation for lascar

Driver for the EL-USB-RT temperature and humidity USB device from Lascar

Calling read on the device will return either the temperature or the humidity.

If the first byte is  it is a temperature. The next 2 bytes is a unsigned integer which, is used to calculate the temperature as:

temp = -100 * 0.1 * (unsigned_short)

If the first byte is  it is humidity. The next byte is an unsigned char, which is used to calculate the relative humidity as:

humidity = 0.5 * (unsigned_char)
class PyExpLabSys.drivers.lascar.ElUsbRt(device_path=None)[source]

Bases: object

Driver for the EL-USB-RT device

__init__(device_path=None)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

get_temperature_and_humidity()[source]

Returns the temperature (in celcius, float) and relative humidity (in %, float) in a dict

get_temperature()[source]

Returns the temperature (in celcius, float)