NREL / PVDegradationTools

Set of tools to calculate degradation responses and degradation related parameters for PV.
https://pvdegradationtools.readthedocs.io/
Other
31 stars 7 forks source link

NSRDB Api failures #116

Closed tobin-ford closed 1 month ago

tobin-ford commented 2 months ago

Describe the bug pvdeg.weather.get using the nsrdb raises an error

HTTPSConnectionPool(host='gds-hsds-nsrdb-files.nrelcloud.org', port=443): Max retries exceeded with url: /data/solar/106069925.77-80.18_tmy-2020_451dd6031a8bd3b213698e78f634d418.csv (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)')))

To Reproduce

weather_db = 'PSM3'
weather_id = (25.783388, -80.189029)
weather_arg = {
    'api_key': 'DEMO_KEY',
    'email': 'user@mail.com',
    'names': 'tmy',
    'attributes': [],
    'map_variables': True
               }

weather_nsrdb, meta_nsrdb = pvdeg.weather.get(weather_db, weather_id, **weather_arg)

Desktop (please complete the following information):