Skip to content

Commit

Permalink
checking some linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Davda-James committed Oct 2, 2024
1 parent 134a24b commit 9e772ef
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
35 changes: 17 additions & 18 deletions weather_notifier/README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
# Weather Notifier - README

## Overview
The **Weather Notifier** is a Python-based GUI application built with `Tkinter`, which allows users to retrieve weather information for any city using the OpenWeatherMap API. It provides two modes of operation:
- **Manual Mode**: Fetch the weather on-demand with a single click.
# Overview
The ** Weather Notifier ** is a Python - based GUI application built with `Tkinter`, which allows users to retrieve weather information for any city using the OpenWeatherMap API. It provides two modes of operation:
- **Manual Mode**: Fetch the weather on - demand with a single click.
- **Auto Mode**: Fetch the weather at regular intervals and can also run in the background.

The app displays current weather details such as temperature, humidity, wind speed, and more in a user-friendly interface.
The app displays current weather details such as temperature, humidity, wind speed, and more in a user - friendly interface.

## Features
# Features
- Fetch current weather for any city globally.
- Switch between manual and automatic weather updates.
- Display detailed weather information, including temperature, humidity, wind, and more.
- Option to stop the automatic weather updates and return to the main city selection screen.

## Prerequisites
# Prerequisites
1. Python 3.x
2. The following Python libraries:
- `Tkinter`
- `requests`
- `threading`
- `geopy`
- `dotenv`
- `Tkinter`
- `requests`
- `threading`
- `geopy`
- `dotenv`

To install the required libraries, use the following command:
```bash
pip install -r requirements.txt
pip install - r requirements.txt
```

## Screenshots
![Main Screen](./images/box.jpg)
![Error](./images/error_box.jpg)
![Error](./images/automated_gui.jpg)
![Error](./images/data_automated.jpg)

# Screenshots
![Main Screen](. / images / box.jpg)
![Error](. / images / error_box.jpg)
![Error](. / images / automated_gui.jpg)
![Error](. / images / data_automated.jpg)
3 changes: 1 addition & 2 deletions weather_notifier/weather_notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ def get_weather(lat, long):
"Wind Speed": data['wind']['speed'],
"Wind Degree": data['wind']['deg'],
"Weather": data['weather'][0]['description'].capitalize(),
"Clouds": f"{
data['clouds']['all']}%",
"Clouds": f"{data['clouds']['all']}%",
"Visibility": data.get(
'visibility',
"N/A"),
Expand Down

0 comments on commit 9e772ef

Please sign in to comment.