Skip to content

Commit 9e772ef

Browse files
committed
checking some linting
1 parent 134a24b commit 9e772ef

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

weather_notifier/README.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
# Weather Notifier - README
22

3-
## Overview
4-
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:
5-
- **Manual Mode**: Fetch the weather on-demand with a single click.
3+
# Overview
4+
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:
5+
- **Manual Mode**: Fetch the weather on - demand with a single click.
66
- **Auto Mode**: Fetch the weather at regular intervals and can also run in the background.
77

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

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

16-
## Prerequisites
16+
# Prerequisites
1717
1. Python 3.x
1818
2. The following Python libraries:
19-
- `Tkinter`
20-
- `requests`
21-
- `threading`
22-
- `geopy`
23-
- `dotenv`
19+
- `Tkinter`
20+
- `requests`
21+
- `threading`
22+
- `geopy`
23+
- `dotenv`
2424

2525
To install the required libraries, use the following command:
2626
```bash
27-
pip install -r requirements.txt
27+
pip install - r requirements.txt
2828
```
2929

30-
## Screenshots
31-
![Main Screen](./images/box.jpg)
32-
![Error](./images/error_box.jpg)
33-
![Error](./images/automated_gui.jpg)
34-
![Error](./images/data_automated.jpg)
35-
30+
# Screenshots
31+
![Main Screen](. / images / box.jpg)
32+
![Error](. / images / error_box.jpg)
33+
![Error](. / images / automated_gui.jpg)
34+
![Error](. / images / data_automated.jpg)

weather_notifier/weather_notifier.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ def get_weather(lat, long):
4747
"Wind Speed": data['wind']['speed'],
4848
"Wind Degree": data['wind']['deg'],
4949
"Weather": data['weather'][0]['description'].capitalize(),
50-
"Clouds": f"{
51-
data['clouds']['all']}%",
50+
"Clouds": f"{data['clouds']['all']}%",
5251
"Visibility": data.get(
5352
'visibility',
5453
"N/A"),

0 commit comments

Comments
 (0)