Skip to content

This is a simple weather app that uses the OpenWeatherMap API to fetch and display current weather data for a given city on a web page. The app includes a search function and is built using HTML, CSS, JavaScript, Python, and Flask.

License

Notifications You must be signed in to change notification settings

Enoratato/Python-Weather-app-with-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credit

The code for this app was adapted from a tutorial by JWestdigital on YouTube. You can find the original tutorial on their youtube here and code on their GitHub page here. The API key used in this app was provided by OpenWeatherMap.org.

Alt text

Features

  • Temperature
  • Wind speed
  • Wind speed
  • TIme of day
  • Uses the OpenWeatherMap API
  • Includes a search function that allows users to search for weather information for other cities.
  • Includes a dark mode version in a folder of it's own

How-To-Use

To use the Weather app, first download the "Darkmode (download this)" directory from the GitHub repository. Then, navigate to the directory in your terminal or command prompt and run the app.py file using your Python environment. This will start a local web server and open a web page in your default web browser or DE of choice (e.g. PyCharm's built-in web server).

To check the weather for a city, enter the name of the city in the "Enter a city name" input box and click the "Get Weather" button. The app will display the current weather information for that city, including temperature, wind speed, and time of day.

Libraries/dependencies

The app uses the following libraries:

  • Flask
  • requests

Note about the author

Please note that this project may not be fully optimized or streamlined, as it was developed by an amateur programmer with a passion for coding. As such, there may be more efficient ways to achieve the same results. However, this project is intended to serve as a learning opportunity and a demonstration of basic web development concepts, such as using APIs to fetch and display data on a web page, and building a simple web app using HTML, CSS, JavaScript, Python, and Flask.

About

This is a simple weather app that uses the OpenWeatherMap API to fetch and display current weather data for a given city on a web page. The app includes a search function and is built using HTML, CSS, JavaScript, Python, and Flask.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published