Skip to content

SomnathDas/QtPyWeatherApp

Repository files navigation

QtPy WeatherApp

A Simple Demonstration of using PyQT and APIs in Python

Screenshot-from-2021-05-28-13-55-24 Screenshot-from-2021-05-28-12-09-15


Make sure you have PyQT5, Pyuic5, aiohttp-3.7.4.post0, request installed in your system before using this

Install some required packages

Paste the command in the terminal or powershell

> sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev python-tk python3-tk tk-dev pyqt5 aiohttp-3.7.4.post0 request pyuic5

GET API KEYS

Openweathermap [FREE]

  1. Get API_KEY from Open Weather Map
  2. Paste your API_KEY on line 111 in the file named "app.py" for openweathermap

Windy [FREE]

  1. Get API_KEY from Windy
  2. Paste your API_KEY on line 174 in the file named "app.py" for windy

Usage

Running the app

python3 app.py

Compiling the .ui file into .py

pyuic5 file_name.ui -o file_name.py