raining moved to tag
This commit is contained in:
@@ -449,9 +449,7 @@ def read_as3935(c):
|
||||
write(c, 'lightning', {
|
||||
'lightning_distance': dist,
|
||||
'lightning_energy': energy,
|
||||
'lightning_detector_sensitivity': c['AS3935_NOISE_FLOOR'],
|
||||
'lightning_false_positive': 1 if interrupt == 0x04 else 0,
|
||||
'lightning_strikes_per_hour': strike_rate,
|
||||
'lightning_rate': strike_rate,
|
||||
}, tags={'storm_direction': trend})
|
||||
except Exception as e:
|
||||
print(f"[AS3935] {e}")
|
||||
@@ -498,8 +496,7 @@ def read_rain(c):
|
||||
try:
|
||||
write(c, 'rain', {
|
||||
'precipitation': 0,
|
||||
'raining': False,
|
||||
})
|
||||
}, tags={'raining': False})
|
||||
except Exception as e:
|
||||
print(f"[Rain] {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user