mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-30 01:58:49 -04:00
Fixed plyer sensors
This commit is contained in:
parent
3ea7a9bbe4
commit
79c5aacc6f
3 changed files with 32 additions and 58 deletions
|
@ -82,6 +82,9 @@ class AndroidHumidity(Humidity):
|
|||
Tc = self.listener_a.value
|
||||
A = 6.112
|
||||
K = 273.15
|
||||
if Rh == None or Tc == None:
|
||||
return None
|
||||
|
||||
humidity = (Ta * (Rh / 100) * A * exp(m * Tc / (Tn + Tc))
|
||||
/ (K + Tc))
|
||||
return humidity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue