ChHarding / weather-app_project

HCI 584 project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather app project

HCI 584 project

Setup

API

Weather-App uses the following open source APIs, neither of which require a key:

Packages

You’ll need to install the following code packages before running this app:

  • from tkinter import ttk, messagebox
  • import pandas as pd # pip install pandas
  • import matplotlib.pyplot as plt # pip install matplotlib
  • import numpy as np # pip install numpy
  • import requests # pip install requests
  • from urllib.parse import quote_plus
  • from timezonefinder import TimezoneFinder # pip install timezonefinder
  • import openmeteo_requests # pip install openmeteo-requests
  • import requests_cache # pip install requests-cache
  • from retry_requests import retry # pip install retry-requests

Walkthrough

Instructions

  1. Go to run-app.py
  2. Press Run Python file icon to the upper right and the weather app will appear
    Screenshot 2024-07-27 at 1 57 33 PM
  3. Enter the name of your city or ZIP code
  4. Select the weather variable(s) you'd like to get the forecast on
  5. Choose whether you'd like an hourly report or daily summary
    Screenshot 2024-07-27 at 2 12 23 PM
  6. Select Search
    Screenshot 2024-07-29 at 4 03 06 PM

Error prevention

Make sure that you don't select a variable that's incompatible with the time range you've selected. Note that some variables are compatible only with hourly or daily.

Bugs to be aware of

  • The app serves an error when a user selects daily summary
  • When you select Search, two windows pop up: figure 1 is empty, figure 2 will have your plot

About

HCI 584 project

License:MIT License


Languages

Language:Jupyter Notebook 79.5%Language:Python 20.5%