From: Scott Gasch Date: Sat, 11 Mar 2023 04:01:21 +0000 (-0800) Subject: Fix precip numbers. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=844b2f63baa2eef2ec6201d4e1931ee4f87628ae;hp=d86e5021ca90b0da4732ec109513613801370667;p=kiosk.git Fix precip numbers. --- diff --git a/weather_renderer.py b/weather_renderer.py index 1e462d3..07432eb 100644 --- a/weather_renderer.py +++ b/weather_renderer.py @@ -268,7 +268,7 @@ function makePrecipChart(name, xValues, yValues) { aggregate_daily_precip += hourly_aggregate precip[date].append(hourly_aggregate) logger.debug( - f"Aggregate precip on {date} was {aggregate_daily_precip} cm" + f"Aggregate precip on {date} was {aggregate_daily_precip} mm" ) if first_day: while len(precip[date]) < 8: @@ -326,9 +326,9 @@ function makePrecipChart(name, xValues, yValues) { """ ) - # Total aggregate_precip in inches - aggregate_daily_precip /= 2.54 - if aggregate_daily_precip > 0.025: + # Total aggregate_precip in inches (from mm) + aggregate_daily_precip /= 25.4 + if aggregate_daily_precip > 0.001: f.write( f"""