This Python script fetches current weather information for a specified city and sends it to a recipient via email. Additionally, it generates a graph depicting the weather forecast for the next 5 days and attaches it to the email.
- EMAIL: Email address from which the weather updates will be sent.
- PASSWORD: Password for the email account.
- WEATHER_API_KEY: API key for accessing weather data.
schedulesmtplibrequestsosdatetimematplotlib.pyplotemail.mime.multipartemail.mime.textemail.mime.baseemail.encoderstkinter
To run the script, simply execute python gui.py. Ensure that the necessary environment variables are set correctly in the .env file.
Currently, the city name is hardcoded within the script. If you wish to change the city, modify the respective variable in the script.