Please make sure that, your allow_url_fopen or cURL is enabled. Also, make sure your API key and location is correct. Verify your location from here https://openweathermap.org/find
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.