Mrinank-Bhowmick / python-beginner-projects

Explore a collection of beginner-friendly Python projects that can be completed with minimal code. Perfect for learning the basics and improving your coding skills.
https://github.com/Mrinank-Bhowmick/python-beginner-projects/wiki
MIT License
1.21k stars 664 forks source link

Add features to "API Based Weather Report" - #744 #763

Closed yanliutafewa closed 5 months ago

yanliutafewa commented 5 months ago

Type of change

Changes proposed in this pull request

I improved the functionalities of "API Based Weather Report" by adding features:

Get and present “sunrise time” and “sunset time” for the city. It contains a function to convert the unix timestamp to local time. Get and present “wind direction”. It contains a function to convert a degree to a direction. Let user determine whether they want the temperature to be presented in Celsius or Fahrenheit. Add ‘Country’ to outputs, since some cities have the same name but in different country. Add output message when the API key is invalid. Add output message when the city is not found. To improve the maintainability for the program, I am also added docstrings and unit test class.

Checklist

github-actions[bot] commented 5 months ago

Greetings! This is an automated message from GitHub Actions. :robot: Your pull request has been received and is awaiting for a review by the repository owner or a maintainer. This may take some time, so please be patient. While you wait, you can continue to work on other issues or pull requests, or explore the project further. Or you can simply relax and enjoy your day. Thank you for your contribution to this project! You are awesome! :star:

Mrinank-Bhowmick commented 5 months ago

Thanks for the updates @yanliutafewa