Skip to content

cloudymolecule/weather-boy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Boy

Description

The name actualy comes from here: [https://www.youtube.com/watch?v=XOi2jFIhZhA]
Weather Boy is a weather app that does a lot, it:

  1. Provides a current forecast
  2. Provides a forecast for the next 7 days
  3. Gives you an hourly forecast for 7 days (you better have a well-oiled mouse wheel)
  4. Allows you to see how many astronautas are currently in space

How to install and run

  • Clone and fork this repository, double check Python is installed in your system
  • Make sure you have the few dependencies I've used, if not just install them

pip3 install colorama
pip3 install opencage
pip3 install requests

for the Opencage API, you'll need an API Key from them but don't worry, it's free; just place it in a file called api_key.txt in the root directory and everything should be peachy.

How to use

From the weather-boy directory type:

python3 start.py

The first thing you'll do is select a location, the most descriptive the better; I've found the Opencage API to be awesome at matching places.
So for example you could type: Philadelphia, PA It'll show you more info. Depending on how precise the location, the county, the zip code and the country's flag.

From there just select an item from the menu and press enter

Here's the menu

Type "C" to get the current weather forecast
Type "W" to get the forecast for the week
Type "H" to see the hourly forecast
Type "O" to see another location
Type "A" to see how many astronauts are currently in space
Type "Q" to quit

APIs

I've utilized 3 API's in this project, and here they are in order of appearance

Pretty cool API, tells you how many people are currently in space
People In Space http://open-notify.org/Open-Notify-API/People-In-Space/

Allows me to send convert a location string and receive location data including coordinates
Opencage https://opencagedata.com/

Passing the coordinates from Opencage I can get local weather info
Open-Meteo https://open-meteo.com/en

Credits

Everyone involved in creating and maintaining these amazing free APIs so developers like me can learn and create.

About

CLI gets local weather

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages