bitsofchris Claude Opus 4.7 (1M context) commited on
Commit
cd68687
·
1 Parent(s): faef56f

Zoom view: shrink to 24h+8h so we stay in Ecowitt's 5-min retention

Browse files

Probed Ecowitt at cycle_type=5min: data is 5-min spaced for the last
~24-30 hours, then downsamples to 30-min. The previous 36h window
straddled that boundary, so the resampled series ended up at 30-min
spacing — which made Toto's inferred step size 30 min and pushed the
144-step horizon out to ~72h on the chart.

24 h × 12 = 288 history points (exactly 9 Toto patches), 8 h × 12 = 96
forecast steps. Forecast is 8 / (24+8) = 25% of the visible chart.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -32,11 +32,15 @@ PLACE_NAME = os.environ.get("PLACE_NAME", "Yaphank, NY")
32
 
33
  # Two fixed views — no more dropdowns.
34
  VIEW_ZOOM = {
35
- "label": "Last 36 h · 12 h forecast (5-min cadence)",
 
 
 
 
36
  "cycle_type": "5min",
37
  "resample": "5min",
38
- "history_hours": 36,
39
- "horizon_hours": 12,
40
  }
41
  VIEW_WEEK = {
42
  "label": "Past 7 days · 72 h forecast (hourly cadence)",
 
32
 
33
  # Two fixed views — no more dropdowns.
34
  VIEW_ZOOM = {
35
+ # 24h history is the longest window where Ecowitt reliably keeps 5-min
36
+ # data; beyond ~30h the cloud has already downsampled to 30-min and the
37
+ # zoom view stops being zoomed. 8h forecast keeps the chart ~75% history,
38
+ # ~25% future.
39
+ "label": "Last 24 h · 8 h forecast (5-min cadence)",
40
  "cycle_type": "5min",
41
  "resample": "5min",
42
+ "history_hours": 24,
43
+ "horizon_hours": 8,
44
  }
45
  VIEW_WEEK = {
46
  "label": "Past 7 days · 72 h forecast (hourly cadence)",