projects
/
kiosk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d86e502
)
Fix precip numbers.
author
Scott Gasch
<
[email protected]
>
Sat, 11 Mar 2023 04:01:21 +0000
(20:01 -0800)
committer
Scott Gasch
<
[email protected]
>
Sat, 11 Mar 2023 04:01:21 +0000
(20:01 -0800)
weather_renderer.py
patch
|
blob
|
history
diff --git
a/weather_renderer.py
b/weather_renderer.py
index 1e462d3d8d97259ee77d4123838cd11debeec7e0..07432ebed59131bdd72045af779396d69a023df0 100644
(file)
--- 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(
aggregate_daily_precip += hourly_aggregate
precip[date].append(hourly_aggregate)
logger.debug(
- f"Aggregate precip on {date} was {aggregate_daily_precip}
c
m"
+ f"Aggregate precip on {date} was {aggregate_daily_precip}
m
m"
)
if first_day:
while len(precip[date]) < 8:
)
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
.5
4
- if aggregate_daily_precip > 0.0
25
:
+ # Total aggregate_precip in inches
(from mm)
+ aggregate_daily_precip /= 2
5.
4
+ if aggregate_daily_precip > 0.0
01
:
f.write(
f"""
<td width=33%>
f.write(
f"""
<td width=33%>