diff --git a/src/data_collection/amsc_awos_sources.py b/src/data_collection/amsc_awos_sources.py index 7969f632..6247670c 100644 --- a/src/data_collection/amsc_awos_sources.py +++ b/src/data_collection/amsc_awos_sources.py @@ -190,7 +190,8 @@ class AmscAwosSourceMixin: return headers def _http_get_json(self, url: str, *, headers: Optional[Dict[str, str]] = None) -> Optional[Dict[str, Any]]: - response = httpx.get(url, headers=headers, timeout=getattr(self, "timeout", 10.0)) + verify = os.getenv("POLYWEATHER_AMSC_SSL_VERIFY", "true").strip().lower() not in {"0", "false", "no"} + response = httpx.get(url, headers=headers, timeout=getattr(self, "timeout", 10.0), verify=verify) response.raise_for_status() try: return response.json()