Current temperature
A PHP program named “temperature.php” should be called to display the client’s IP address, city, state, country and current weather condition (description, temperature in both C and F, humidity, visibility, pressure, speed in mile/h, wind direction in cardinal, sunrise, sunset, timezone) with proper units displayed. The number should be displayed with only one decimal. A program will pass the client’s IP address to the API and retrieve the weather information at the sites below:
1. https://medium.com/@ipapi/weather-forecast-from-ip-address-9a1b8bd14970
2. https://www.geeksforgeeks.org/python-find-current-weather-of-any-city-using-openweathermap-api/