Skip to content

This script gets hourly weather forecasts from the National Weather Service's API, allowing users to input coordinates and customize forecast intervals and periods.

Notifications You must be signed in to change notification settings

talzab/hourly-weather-forecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Hourly Weather Forecast

This Python script uses the National Weather Service API to provide an easy-to-use command-line interface for retrieving hourly weather forecasts for any location. By supplying latitude and longitude coordinates, users can customize the forecast interval and the number of periods to display.

How to Use

  1. Make sure you have Python installed on your system.

  2. Clone this repository to your local machine:

git clone https://github.com/your-username/hourly-weather-forecaster.git

  1. Navigate to the project directory:

cd hourly-weather-forecaster

  1. Install the required libraries using:

pip install requests

  1. Run the script with the following command:

python weather_forecaster.py latitude longitude [--interval INTERVAL] [--periods PERIODS]

Example: python weather_forecaster.py 40.7128 -74.0060 --interval 2 --periods 12

This example fetches the hourly forecast for New York City, with a 2-hour interval for the next 12 periods.

About

This script gets hourly weather forecasts from the National Weather Service's API, allowing users to input coordinates and customize forecast intervals and periods.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages