Weather API Dashboard with Python and Flask

Build a Weather Dashboard in Flask that takes in a Zip Code, crawls the OpenWeatherMap API and returns the results to the user!

TECHNOLOGIES

Flask

APIs

WATCH TIME

48 minutes

LEVEL

All

Overview

This project is a beginner-friendly web application focused on building a Flask App that will take a Zip Code provided by the user and get the Weather of that location. We'll learn how to use the Requests module in Python, parse the JSON returned from the Weather API and render the dashboard and results in Flask. This project is particularly special to me because it's the first project I ever built when learning how to code. Let's dive right in!

Project Tasks

Welcome to the project!

2 min

Combining our API with the Front-End

Tying together the front-end and back-end functionalities of our weather dashboard.

11 min

Building our basic Flask Website

Building an interface in Flask to retrieve the user's zip code for the weather dashboard.

12 min

Styling our Dashboard + Final Touches

Finalizing our weather dashboard and making it more visually appealing with CSS.

13 min

Calling and Parsing the Weather API

Creating our API account and calling the weather API to gather data for our project.

Hey! I’m Avi, and I’ll teach you how to build!

I'm Avi, your new Python instructor and founder of The Codex.

Three years ago I was stuck. I wasn’t learning anything in my theory-filled CS classes, my friends took pictures of me sleeping in lecture, and I was questioning why I was even learning CS to begin with. I had ideas but I was clueless on execution.

After watching hours of webcasted YouTube videos, enrolling in course after course, and struggling to stay motivated, I finally obtained the skills to bring my ideas to life. I realized how lonely and gruesome this process was.

If you’re a student just like me, you know exactly what it’s like to be stuck in course hell. The best programmers of today learned by doing, not by reading syntax in a textbook.

Join The Codex. Become a creator.

Savvy Students ❤️ The Codex

The Codex has helped hundreds of students find jobs and build their dream projects.

“CS classes at UW were overwhelming and full of theory. Through The Codex, I realized the power of Python programming, built numerous projects for my resume and ultimately landed an internship at Amazon.“

Arjun Malhotra

University of Washington, 2022

SDE Internship, Amazon

Ready to dive in? Start learning today.