Skip to content

Instantly share code, notes, and snippets.

@saulcosta
Last active February 6, 2019 03:24
Show Gist options
  • Save saulcosta/9660858456cb9166b511e0d1337719c9 to your computer and use it in GitHub Desktop.
Save saulcosta/9660858456cb9166b511e0d1337719c9 to your computer and use it in GitHub Desktop.
Python OpenWeatherMap example 2
import pyowm
owm = pyowm.OWM('<api_key>') # TODO: Replace <api_key> with your API key
la = owm.three_hours_forecast('Los Angeles, US')
print(la.will_have_clouds())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment