toddkarin / vocmax

Calculate the maximum string length for a photovoltaic system
Other
10 stars 4 forks source link

Function "get_weather_data" is not working #3

Closed kurt-rhee closed 3 years ago

kurt-rhee commented 4 years ago

Hello,

I tried to run get_weather_data today but got the following error:

image

I went into the vocmax folder in main and tried copying the url into my browser url bar. This successfully retrieved a CSV file so I know that the lat, lon and api_key are correct.

latitude = 33.38 longitude = -115.38

Thank you for your help.

kurt-rhee commented 4 years ago

It might be a http: https: issue

kurt-rhee commented 4 years ago

I tried chanign to https and now I'm having a different error

image

toddkarin commented 4 years ago

My plan in the future is to use the pvlib version of a similar function: https://pvlib-python.readthedocs.io/en/latest/generated/pvlib.iotools.get_psm3.html

For fixing this bug, can you try checking what the temperature input is?

kurt-rhee commented 4 years ago

image

Also getting this error.

kurt-rhee commented 3 years ago

Looks like changing to https fixes the original issue. The other problem was importing vocmax changes the relative lookup path for the ashrae xlsx file. Rewriting the imports to use relative paths fixed the problem.