import requests


def fetch_local_weather(lat, lon, API_key=""):
    """
    Retrieve current weather from api.openweathermap.org.

    WARNING: Free API allows a maximum of 60 requests/minute
    Documentation: http://openweathermap.org/current#geo
    Returns a dict decoded from the API's JSON response
    Returns 'None' if ANY errors occur, service is unavailable.
    """
    API_URL = 'http://api.openweathermap.org/data/2.5/weather'
    API_KEY ='e5591c0f23cf2f87b7854d06192b36af'
    local_params = dict(lat=lat, lon=lon, APPID=API_KEY)

    response = requests.get(API_URL, params=local_params)
    if (response):
        local_weather = response.json()
        if local_weather['cod'] == 200:
            return local_weather
    return None