Skip to content

Commit

Permalink
Fix conversion factor for inHg -> hPa
Browse files Browse the repository at this point in the history
  • Loading branch information
djjudas21 committed Sep 9, 2024
1 parent bef0280 commit 855541e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecowitt_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def logecowitt():
if key in ['baromrelin', 'baromabsin']:
if pressure_unit == 'hpa':
# Convert inches Hg to hPa
pressurehpa = float(value) * 33.6585
pressurehpa = float(value) * 33.8639
value = "{:.2f}".format(pressurehpa)
if pressure_unit == 'mmhg':
# Convert inches Hg to mmHg
Expand Down

0 comments on commit 855541e

Please sign in to comment.