This commit is contained in:
dasemu committed 2026-03-13 15:10:37 +01:00
1 parent f63913b23c
commit fa7d61b7db
3 files changed
+383 -17

No files matched your search

+14
View File
@@ -1,3 +1,17 @@
## Webcam Historical Download Validation - 2026-03-13
**What went wrong:** Historical webcam downloads were saved directly from `historico-webcams/...` page URLs, which can return HTML wrappers instead of binary images.
**Root cause:** The collector assumed the historical page URL always returned raw image bytes and did not validate payload type before running YOLO analysis.
**Prevention rule:** In this repository, historical webcam ingestion must resolve the real image URL through `webcams/historico.php?showimg=1...` and reject HTML payloads before saving `.jpg` files.
**Example:** In [collect_historical_webcams.py](/home/dasemu/Hacking/Darío Sevilla/skipredictor/scripts/collect_historical_webcams.py), `process_day()` now uses `_resolve_historical_image_url()` and `_download_image_bytes()`; HTML payloads are discarded and the day is stored as `unknown`.
**Files affected:** `scripts/collect_historical_webcams.py`, `tests/test_collect_historical_webcams.py`
---
## Deployment Assumptions - 2026-03-12
**What went wrong:** I assumed the Telegram bot running on the server might differ from the repository after seeing a schema mismatch between the bot code and the predictions JSON.