CS50P Final Project

Views: 1
0
0
Hello, my name is Valentin Arkov, and I am excited to present my final project for CS50P in Python. The title of my project is “Get current weather with OpenWeatherMap API”. This free tool allows us to get current data about the weather for almost any city in the world. We only need to enter the name of the city, and my program extracts the coordinates of the city along with the current temperature and weather conditions, such as whether it is raining, snowing, sunny, or cloudy. One challenge I encountered was that indicating the city name alone is not sufficient because there are many cities with the same name in different countries. To handle this, the OpenWeatherMap API allows us to enter the city and country separated by a comma. This way, I can choose the Cambridge that I am interested in. Another feature of my program is the use of command-line arguments. I can get a simple help message, and I am able to choose between Fahrenheit or Celsius units for temperature. In this slide, you can s