lib.tools
This library contains the Tools-class from the original smarthome.py
- Note:
These functions should be concidered deprecated. New helper-functions are going to be implemented in the utils.lib.
- class lib.tools.Tools[Quellcode]
Bases:
object
- abs2rel(t, ah)[Quellcode]
Return the relative humidity from the absolute humidity (g/cm3) and temperature (Celsius)
- Parameter:
t (float) – temperature in celsius
ah – absolute humidity (g/cm3)
- Rückgabe:
val = relative humidity (in percent)
- Rückgabetyp:
dict
- dewpoint(t, rf)[Quellcode]
- dt2js(dt)[Quellcode]
- dt2ts(dt)[Quellcode]
- fetch_url(url, username=None, password=None, timeout=2, warn_no_connect=1, method='GET', body=None, errorItem=None)[Quellcode]
- ping(host)[Quellcode]
- rel2abs(t, rf)[Quellcode]
- runtime()[Quellcode]