Unverified Commit ba13bc15 authored by Mariel Tatel's avatar Mariel Tatel Committed by GitHub
Browse files

Edited the range for random values

parent a21cf53f
No related merge requests found
Showing with 16 additions and 16 deletions
+16 -16
......@@ -154,8 +154,8 @@ class IPE(XAE):
self.get_sensor_data()
if self.pm25_in >= 100:
if self.pm25_out >= 100:
if self.pm25_in >= 80:
if self.pm25_out >= 80:
if self.window_actuation == self.window_OPEN:
print("\nPLEASE ACTUATE: Close the window\n")
time.sleep(5)
......
......@@ -147,8 +147,8 @@ class IPE(XAE):
self.get_sensor_data()
if self.pm25_in >= 100:
if self.pm25_out >= 100:
if self.pm25_in >= 80:
if self.pm25_out >= 80:
if self.window_actuation == self.window_OPEN:
print("\nPLEASE ACTUATE: Close the window\n")
time.sleep(5)
......
......@@ -37,13 +37,13 @@ class IPE(XAE):
# offset = minimum value
# range = max - min
# Humidity: 40% to 90%
humi_range = 50
# Humidity: 40% to 70%
humi_range = 30
humi_offset = 40
# Temperature: 30degC to 50degC
temp_range = 20
temp_offset = 30
# Temperature: 20degC to 30degC
temp_range = 10
temp_offset = 20
# pH value: 5.5 to 7.5
pH_range = 20
......@@ -378,7 +378,7 @@ class IPE(XAE):
data = {
'value': value,
'type': 'electric conductivity',
'unit': 'uS/cm',
'unit': 'mS/cm',
'time': time
}
......
......@@ -39,13 +39,13 @@ class IPE(XAE):
# offset = minimum value
# range = max - min
# Humidity: 40% to 90%
humi_range = 50
# Humidity: 40% to 70%
humi_range = 30
humi_offset = 40
# Temperature: 30degC to 50degC
temp_range = 20
temp_offset = 30
# Temperature: 20degC to 30degC
temp_range = 10
temp_offset = 20
# pH value: 5.5 to 7.5
pH_range = 20
......@@ -334,7 +334,7 @@ class IPE(XAE):
data = {
'value': value,
'type': 'electric conductivity',
'unit': 'uS/cm',
'unit': 'mS/cm',
'time': time
}
elif sensor.startswith('MotorSensor'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment