Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seem to be missing precipType #8

Open
CordThomas opened this issue Jul 13, 2018 · 0 comments
Open

Seem to be missing precipType #8

CordThomas opened this issue Jul 13, 2018 · 0 comments
Assignees

Comments

@CordThomas
Copy link

CordThomas commented Jul 13, 2018

Hi - i just found this repository and setup a bit of code to pull the data for my neighborhood. I am somewhat naive to Python programming but think i generally have things setup right.

I got an error when i requested precipType attribute which appears in the DarkSky API docs.

Traceback (most recent call last):
File "sky_data_colletion.py", line 54, in
process_darksky()
File "sky_data_colletion.py", line 30, in process_darksky
for_precip_type = home_forecast.precipType
File "build/bdist.linux-armv7l/egg/darksky/forecast.py", line 27, in getattr

Here's a code snippet surrounding this - other calls work and when i comment out that line the entire code executes and prints out the relevant ozone levels:

for_summary = home_forecast.summary
for_nearest_storm = home_forecast.nearestStormDistance
for_precip_intensity = home_forecast.precipIntensity
for_precip_probability = home_forecast.precipProbability
**### #    for_precip_type = home_forecast.precipType**
for_temperature = home_forecast.temperature
for_apparent_temperature = home_forecast.apparentTemperature
for_dew_point = home_forecast.dewPoint
for_humidity = home_forecast.humidity
for_bar_pressure = home_forecast.pressure
for_wind_speed = home_forecast.windSpeed
for_wind_gust = home_forecast.windGust
for_windBearking = home_forecast.windBearing
for_cloud_cover = home_forecast.cloudCover
for_uv_index = home_forecast.uvIndex
for_visibility = home_forecast.visibility
for_ozone = home_forecast.ozone

print ("Ozone {0}".format(for_ozone))
@lukaskubis lukaskubis self-assigned this Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants