Skip to content

Commit

Permalink
Update Senseair K96 Input
Browse files Browse the repository at this point in the history
  • Loading branch information
kizniche committed Nov 9, 2022
1 parent 60c1bdd commit 9b42db8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ New Behavior: InfluxDB 1.x returned data as an epoch float value (e.g. 166722857
- Add Function: Regulate pH and Electrical Conductivity
- Add Input: MCP3008 (adafruit-circuitpython-mcp3xxx library)
- Add Input: On/Off Output State
- Add Input: Sensair K96 ([#1196](https://github.com/kizniche/Mycodo/issues/1196))
- Add Input: Senseair K96 ([#1196](https://github.com/kizniche/Mycodo/issues/1196))
- Add Widget: Activate/Deactivate Controller
- Add ability to set each Graph Widget series type to either Line or Column
- Add Temperature Calibration for Atlas Scientific PT-1000 Input
Expand Down
6 changes: 3 additions & 3 deletions mycodo/inputs/k96.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ def get_measurement(self):
for channel, params in measurements_dict.items():
value = None

if channel == 11:
if channel == 11 and self.value_get(8) and self.value_get(7):
value = calculate_dewpoint(
self.value_get(8), self.value_get(7))
elif channel == 12:
elif channel == 12 and self.value_get(6):
value = calculate_altitude(
convert_from_x_to_y_unit('hPa', 'Pa', self.value_get(6)))
elif channel == 13:
elif channel == 13 and self.value_get(8) and self.value_get(7):
value = calculate_vapor_pressure_deficit(
self.value_get(8), self.value_get(7))
else:
Expand Down

0 comments on commit 9b42db8

Please sign in to comment.