- updated temperature calibration
This commit is contained in:
@@ -37,7 +37,7 @@ def cfg():
|
|||||||
'SLUSH_TEMP_THRESHOLD': float( os.getenv('SLUSH_TEMP_THRESHOLD', '0.0')),
|
'SLUSH_TEMP_THRESHOLD': float( os.getenv('SLUSH_TEMP_THRESHOLD', '0.0')),
|
||||||
'SNOW_STRENGTH_MIN': int( os.getenv('SNOW_STRENGTH_MIN', '700')),
|
'SNOW_STRENGTH_MIN': int( os.getenv('SNOW_STRENGTH_MIN', '700')),
|
||||||
'SEISMIC_NOISE_FLOOR': float( os.getenv('SEISMIC_NOISE_FLOOR', '0.02')),
|
'SEISMIC_NOISE_FLOOR': float( os.getenv('SEISMIC_NOISE_FLOOR', '0.02')),
|
||||||
'TEMP_CALIBRATION': float( os.getenv('TEMP_CALIBRATION', '7.5')),
|
'TEMP_CALIBRATION': float( os.getenv('TEMP_CALIBRATION', '-7.55')),
|
||||||
'CLOUD_BUCKET_SIZE': int( os.getenv('CLOUD_BUCKET_SIZE', '5')),
|
'CLOUD_BUCKET_SIZE': int( os.getenv('CLOUD_BUCKET_SIZE', '5')),
|
||||||
'CLOUD_HISTORY': int( os.getenv('CLOUD_HISTORY', '20')),
|
'CLOUD_HISTORY': int( os.getenv('CLOUD_HISTORY', '20')),
|
||||||
'CLOUD_BASELINE_PCT': float( os.getenv('CLOUD_BASELINE_PCT', '0.9')),
|
'CLOUD_BASELINE_PCT': float( os.getenv('CLOUD_BASELINE_PCT', '0.9')),
|
||||||
@@ -178,7 +178,7 @@ def read_bme(c, sensor, alt_m=None):
|
|||||||
p_rate, p_label = get_pressure_trend(c['PRESSURE_TREND_WINDOW'])
|
p_rate, p_label = get_pressure_trend(c['PRESSURE_TREND_WINDOW'])
|
||||||
dp = round(t - (100-rh)/5.0, 2)
|
dp = round(t - (100-rh)/5.0, 2)
|
||||||
write(c, 'environment', {
|
write(c, 'environment', {
|
||||||
'temperature': round(t - c['TEMP_CALIBRATION'], 2),
|
'temperature': round(t + c['TEMP_CALIBRATION'], 2),
|
||||||
'humidity': round(rh, 2),
|
'humidity': round(rh, 2),
|
||||||
'dew_point': dp,
|
'dew_point': dp,
|
||||||
'pressure_hpa': round(p, 2),
|
'pressure_hpa': round(p, 2),
|
||||||
|
|||||||
Reference in New Issue
Block a user