Placeholder wind/rain measurements

This commit is contained in:
2026-06-23 23:11:15 -04:00
parent 40ec87d356
commit a174864ddb
5 changed files with 140 additions and 113 deletions

View File

@@ -492,6 +492,29 @@ def solar_elevation(lat, lon):
))
return round(el, 2)
# ── Rain ──────────────────────────────────────────────────────────────────────
def read_rain(c):
try:
write(c, 'rain', {
'precipitation': 0,
'raining': False,
})
except Exception as e:
print(f"[Rain] {e}")
# ── Wind ──────────────────────────────────────────────────────────────────────
def read_rain(c):
try:
write(c, 'wind', {
'wind_direction': 0,
'wind_speed': 0,
'wind_gusts': 0,
})
except Exception as e:
print(f"[Wind] {e}")
# ── System ────────────────────────────────────────────────────────────────────
def read_system(c):
@@ -566,6 +589,8 @@ if __name__ == '__main__':
read_ltr(c, ltr_sensor, sol, humidity=last_rh)
read_luna(c, last_temp)
read_as3935(c)
read_rain(c)
read_wind(c)
read_system(c)
time.sleep(c['LOOP_INTERVAL'])