You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: weather_notifier/README.md
+2-37Lines changed: 2 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,16 @@
1
-
2
1
# Weather Notifier - README
3
2
4
3
## Overview
5
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:
6
5
-**Manual Mode**: Fetch the weather on-demand with a single click.
7
-
-**Auto Mode**: Fetch the weather at regular intervals and can also run in background.
6
+
-**Auto Mode**: Fetch the weather at regular intervals and can also run in the background.
8
7
9
8
The app displays current weather details such as temperature, humidity, wind speed, and more in a user-friendly interface.
10
9
11
10
## Features
12
11
- Fetch current weather for any city globally.
13
12
- Switch between manual and automatic weather updates.
14
13
- Display detailed weather information, including temperature, humidity, wind, and more.
15
-
- Adjustable update interval when in auto mode.
16
14
- Option to stop the automatic weather updates and return to the main city selection screen.
17
15
18
16
## Prerequisites
@@ -25,43 +23,10 @@ The app displays current weather details such as temperature, humidity, wind spe
25
23
-`dotenv`
26
24
27
25
To install the required libraries, use the following command:
28
-
```bash or windows
26
+
```bash
29
27
pip install -r requirements.txt
30
28
```
31
29
32
-
## Installation and Setup
33
-
1. Clone the repository or download the script.
34
-
2. Set up a `.env` file in the same directory as the script, and add your OpenWeatherMap API key like so:
35
-
```env
36
-
OPENWEATHER_API_KEY=your_api_key_here
37
-
```
38
-
3. Run the script:
39
-
```bash
40
-
python weather_notifier.py
41
-
```
42
-
43
-
## Usage
44
-
1.**City Entry**:
45
-
- Enter the name of the city for which you want to fetch the weather.
46
-
47
-
2.**Mode Selection**:
48
-
-**Manual Mode**: Select "On-click only" to get weather updates with a button press.
49
-
-**Auto Mode**: Select "Run after a fixed interval" and input an interval in seconds to get weather updates automatically at the specified interval.
50
-
51
-
3.**Start Notifier**:
52
-
- Click the `Start Notifier` button to begin fetching weather updates.
53
-
54
-
4.**Stop Notifier**:
55
-
- If you are in auto mode, click the `Stop Notifier` button to stop automatic updates and return to the city selection screen.
56
-
57
-
## Example
58
-
- In manual mode, you simply input your city name and press the `Start Notifier` button to get weather information.
59
-
- In auto mode, you can set an interval (e.g., 10 seconds) to fetch updates regularly, which will continue until the `Stop Notifier` button is pressed.
60
-
61
-
## Notes
62
-
- Ensure you have a valid OpenWeatherMap API key in your `.env` file.
63
-
- The app defaults to "On-click only" mode if no mode is selected.
0 commit comments