An example of HTTP request server to server using cURL to get weather information about a specific city.
This script allows to view the weather of a requested city from user input. Displays the weather forecast for the current day and the next 6 days, with minimum and maximum temperatures. It also displays wind speed, humidity and probability of precipitation for the current day.
The information are stored in Redis cache for an hour.
The data is taken from weatherDB.
⭐ If you liked what I did, if it was useful to you or if it served as a starting point for something more magical let me know with a star 💚