projects
/
kiosk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
844b2f6
)
Fucking hack to fix Stevens Pass.
author
Scott Gasch
<scott@gasch.org>
Sat, 11 Mar 2023 22:21:32 +0000
(14:21 -0800)
committer
Scott Gasch
<scott@gasch.org>
Sat, 11 Mar 2023 22:21:32 +0000
(14:21 -0800)
weather_renderer.py
patch
|
blob
|
history
diff --git
a/weather_renderer.py
b/weather_renderer.py
index 07432ebed59131bdd72045af779396d69a023df0..8da01ab73bae05e880c3e3e9e3ac32191608e899 100644
(file)
--- a/
weather_renderer.py
+++ b/
weather_renderer.py
@@
-265,6
+265,10
@@
function makePrecipChart(name, xValues, yValues) {
aggregate_daily_precip = 0.0
for r, s in zip(rain[date], snow[date]):
hourly_aggregate = r + s
+
+ # The weather report is always way wrong about Stevens.
+ if self.file_prefix == "stevens":
+ hourly_aggregate *= 3.5
aggregate_daily_precip += hourly_aggregate
precip[date].append(hourly_aggregate)
logger.debug(