Skip to content

Instantly share code, notes, and snippets.

@saulcosta
Created February 6, 2019 03:23
Show Gist options
  • Save saulcosta/fa1c256738d8d5dff6a49df55904e3b9 to your computer and use it in GitHub Desktop.
Save saulcosta/fa1c256738d8d5dff6a49df55904e3b9 to your computer and use it in GitHub Desktop.
Python OpenWeatherMap example 1
import pyowm
owm = pyowm.OWM('<api_key>') # TODO: Replace <api_key> with your API key
london = owm.three_hours_forecast('London, GB')
print(london.will_have_rain())
print(london.will_have_fog())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment