Simple Python script to fetches weather ☀️ data from Open Weather Map.
- Written by Mohammad Laif Mzdhr.
- Licensed under The MIT License.
0.1
Still in Beta, while learning Python 😍 & Git in my sparetime!
- API: obtain it from here: http://openweathermap.org/appid
- Your City ID: get it from: http://bulk.openweathermap.org/sample/city.list.json.gz
not yet done, but you can clone it git clone https://github.com/mzdhr/weather.git
For the first time:
$ python3 weather.py --config
- Add your city ID, then hit enter.
- Add your API key, then hit enter.
- Type your preferred unit, then hit enter.
Then to check the weather:
$ python3 weather.py
- Create 'weather_config.ini' inside weather directory. that contains:
[DEFAULT]
prefer_unit = metric
user_api = ******************************
city_id = ******
- Run the script from PyCharm.
- add icons.
- setup.py.
- argparse library for argv.
- main.py.
- init.py.
- refactor.
- generate documentation with Sphinx.