/weather

Simple Python script to fetche weather data from Open Weather Map.

Primary LanguagePythonMIT LicenseMIT

Python-Weather

Simple Python script to fetches weather ☀️ data from Open Weather Map.

Version

0.1

Still in Beta, while learning Python 😍 & Git in my sparetime!

Requirement

Install

not yet done, but you can clone it git clone https://github.com/mzdhr/weather.git

Usage from Terminal

For the first time:

$ python3 weather.py --config
  1. Add your city ID, then hit enter.
  2. Add your API key, then hit enter.
  3. Type your preferred unit, then hit enter.

Terminal Weather

Then to check the weather:

$ python3 weather.py

Terminal Weather

Usage from PyCharm IDE

  1. Create 'weather_config.ini' inside weather directory. that contains:
[DEFAULT]
prefer_unit = metric
user_api = ******************************
city_id = ******
  1. Run the script from PyCharm.

Terminal Weather

To Do:

  • add icons.
  • setup.py.
  • argparse library for argv.
  • main.py.
  • init.py.
  • refactor.
  • generate documentation with Sphinx.

This readme file created with: