Create Weather Forecast App Using Python | Weather API | Python Tkinter Project
HTML-код
- Опубликовано: 16 сен 2024
- In this video we are going to make a weather forecasting app using python. It is a completely gui tkinter project.
We will use the Open Weather Map API to get the data.
Weather api
Application Programming Interfaces that provide access to current & historical weather data on a global scale. There are several public weather APIs like OpenWeatherMap API, Dark Sky API, & Visual Crossing Weather API. These REST APIs can be used to build powerful weather apps
Create weather API code: • Create Weather API Cod...
Project Report📃📄 :
pages.razorpay...
Download images: drive.google.c...
-------------------------------------------------------------
Instant Image Approval Link 🤖🤖🤖
Download Images: rzp.io/l/weath...
Notice🚫
It's only for those who need it urgently and I am not available to approve it on google drive. Otherwise, you will 100% get approval for the image within 7-12 hours of approval request for free through the google drive link.
After Completing payment, wait for 5-6 sec folder will automatically download to your system .
---------------------------------------------------------------
We can find weather reports such as temperature, humidity, pressure, wind speed and description etc. of any place in the world. You need to provide the name of a place. Not only this you will also get current time of that place.
Also you will get 8 day weather forecast result for your searched name. It is desigend in such way that you are able to find weather report of complete week (7 upcoming days ).
CODE EXPLAINATION: ☁☁🔻
1. it will take input(city name) from user and convert it to longitude and latitude
2. it will convert longitude and latitude to time zone and clock.
3. now we will use longitude and latitude in api link to get data from OpenweatherApi .
4. you can import data like, temperature , climate, wind speed, pressure, cloud, image, humidity and many other things you want.
5. we have use datetime module to get day name .
Please guys support me by sharing with your friends 🙏,it will help me to grow and motivate to create more unique and amazing tutorial as you like.
~Parvat Computer Technology
Required modules:
pip install pytz
pip install geopy
pip install timezonefinder
pip install requests
pip install pillow
#python
#pythonprojects #tkinter #pythonproject
#weatherapp #weatherreporttoday #pythontkinter
#openweatherapi #python ##weathercondition
Search Related to :
* Build a Weather app with Python and Tkinter
* Make a Weather App in Python | Weather API | Python Project
* weather forecasting app using python
* tkinter weather forecast app
* Using open weather api in Python to get weather-report of any place
* How to make a Weather Forecaster in 5 lines of Python
* create weather app in python | python tkiner project
* Machine learning Python Project
* How to create tkinter weather app |#parvatcomputertechnology
* weather app using python tkinter
* Using Weather API in Python | OpenWeatherMap API
Hello creators! Just a quick update to let you know that you can now download project reports from the following URL: pages.razorpay.com/weatherforecastreport
does that give access to code too?
@@artfactorynahan its just report file.
Thanks for the new video. This time your presentation is more informative and explained. Pls.try to make a video on Talking Chatbot with nice user interface. wish you for the best.
sure ! Noted 👍
@@parvatcomputertechnology hey man can you please give me access to the files ? thanks already.
@@shubhamdudhal9498 you can access now !
I learn a lot from it... thanks and I will be visiting more ...
Thanks for visiting
Hey my code is showing some kind of error after clicking on search button can you help me with that
Can you give the sizes of rounded-rectangles
you can also use for change backgruand
root["bg"] = "color"
sir wheels for h3 are not installing along timezonefinder library please resolve this issue i am stucked here
found any solution
@@srushtibhosale28 yess timezonefinderL use krlo instead of timezonefinder and then version doosra install krlo apne terminal pe bss hojayega
@@srushtibhosale28 timezonefinder ki jagah write timezonefinderL and then install an older version in terminal just write pip install importlib-resources==5.2.2 and after your version is installed just install timezonefinderL library with pip install timezonefinderL thats it
How to get access one call api 3.0, pay or free?
message me at my Instagram , i will explain .
Hello!! I have a Problem please help me. How Can i fix this error:
#first cell- Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python310\lib\tkinter\__init__.py", line 1921, in __call__
return self.func(*args)
File "c:\Users\tusha\Weather API\weather.py", line 52, in getWeather
firstimage.config(image=photo1)
NameError: name 'firstimage' is not defined
you haven't create label of firstimage .
Its so good! Thank you for it! can you give the all of code?pls:(
you have to build your own
Hello bro, getting keyError: 'current', even though I set it to 2.5. What should we do now?
Yes same here
Plzz solve the problem 😭😭
then message me at my Instagram , i will explain how to fix it.
sir, i got that error too. What should i do@@parvatcomputertechnology
Same here
My whole code is same but not working after entering my api id
message me at my Instagram i will help
@@parvatcomputertechnology your Instagram id name?
Thank you a lot it Meade me to understand better
most welcome !
very good thank you for the effort for tutuorial
🙂🙂
Can I request access to Google Drive to download the sample
already given access !
Bro can you please tell what you replaced with API KEY . how to get this
thank you so much sir. 😄😄😄
Most welcome
thanks for this
You're welcome
Sir, I have one error .that is current not defined. please help me. I am using the same syntax as whatever you wrote.
You could not have activated your API key, once check the validity of your API key and try again
@@Simba_2711 yes right
its ok message me on my Instagram i will check and explain how to fix it
Dear sir, I have a huge problem
my Error is:
img = Image.open(f'icon/{seconddayimage}@2x.png')
^^^^^^^^^^^^^
AttributeError: type object 'Image' has no attribute 'open'
Can you fix that code for me, pleaseeee?
from PIL import Image, ImageTk
How to resolve error tkinter callback TimezoneFinder is not defiened coming at 29:50
install timezonefinder
image drive not working asking for permission help
just request you will get permission to access!
@@parvatcomputertechnology me tooo(
in the google drive settings, you can make it possible for everyone to download at once, so that you don't have to confirm for everyone )
@@pasiklydes9462 i don't mind in approval ! if you requested you can access
by the way it was allowed to for everyone before June , but just because of few programmers i have done this .
@@parvatcomputertechnology thx
Project is very good sir, Plz give access to these images sir!!
you can access now!
@@parvatcomputertechnology 6:42 no module named Image error is coming, I have put the image folder in the same folder where py folder is there then also , what should I do
@@tawabshaikh8980 o"Please send me a screenshot of the error to my email address."
@@parvatcomputertechnology38:38 I got the same error but not solved by doing 2.5 in api, plz help sir i dont use insta plz tell here only how can i solve it?
Thank you for this awesome presentation of the code and making it easier for us 🥰.
Can you pls provide the access to these image file...I need to make it within tomorrow
you can access now ! And al the best 👍👍🙂
@@parvatcomputertechnology Thank you sir😊
@@parvatcomputertechnology I have also sent request to access the images please approve.Thank you
@@godwillkiprop1120 and i already given access
do we have to pay for the one call 3.0 api ?? because its showing this error
temp = json_data['current']['temp']
~~~~~~~~~^^^^^^^^^^^
KeyError: 'current'
message me at my Instagram , i will try to help
File "C:\Users\Administrator\system\weatherapp.py", line 38, in getWeather
temp = json_data['current']['temp']
~~~~~~~~~^^^^^^^^^^^
same error
@@Tech-verse24 do you already have the solution? i have the same problem.
@@michellejocelyne5892 I'm done defending my thesis about this and i didnt do the all steps. You need to buy a api key in order to proceed .
File "c:\Users\AVITA\OneDrive\Desktop\ex
Please solve my error
Show continues this error
How to solve I can not understand
am.py", line 39, in getweather temp=json_data['current']['temp'] ~~~~~~~~~^^^^^^^^^^^ KeyError: 'current'.
you solved it??
yes
Thank you sir for this awesome presentation of the code and making it easier to us❤🥰...apart from this i am currently facing one problem i.e. I don't have the subscription for the " one day 3.0 api " so how would i proceed with my work and i have seen that u have used '2.5' so for 2.5 from where we will get the api key. Please help me out with this i will be very much grateful ❤
@parvatcomputertechnology sir please reply me i need your help
message me at my Instagram i will help you !
do you get it?? then pls help me
@@dostirathi8254 yes
Hi! can you help with the API part
I can't get the access to the data in my json_data variable
Please help me i am making it as my college project
and can you please provide me the full code
its ok message me at my Instagram id , and send screenshot
Thanks for this amazing tutorial. Can you please provide access to the drive?🙏🏻 thank you so much
you can access now !
great! thx for the tutorial
glad to see your review ❤❤
Nice tutorial. Thanks for the Guidance.
Can you please provide access 🙏🏻
yes you can access now!
@@parvatcomputertechnology it says empty folder 🙁
@@sachinkumarsk9010 contact me at my instagram id
Hey! Awesome code but can i have access to the button images?
Thanks for allowing
you can access now!
thanks a lot for this info
🙂👍
sir from where you have downloaded these png's?
these are my own created png if you want then click on the given link and access
File "c:\Users\R\Desktop\Python projects\Weather app\weather.py", line 26, in getweather
result=obj.timezone_at(lng=location.longitude,lat=location.latitude)
AttributeError: 'NoneType' object has no attribute 'longitude'
PS C:\Users\R\Desktop\Python projects\Weather app> this is the error im getting sir can you pls guide me?
location= geolocator.geocode(city) ,check this line in your code. you will found your mistake
Same problem location= line is also correct plz help
@@atharvanarkhede5429 message me on my Instagram and send screenshot
doing our thesis we are required to use the method. What method did you use to make this weatherapp,sir?
what are you trying to ask !
@@parvatcomputertechnology Does making this weatherapp use a method?
If so, what method do you use?
ML
on some code of lable you use root and some of the lable you are not use root why is that
root is applicable in the whole code while in some labels we used frames, which limit the area
Getting a key error:daily what should I do
check your api code once again
Hello..I have a problem please help me ... ModuleNotFoundError : No module named ' timezonefinder'
is it fixed !!
could you please make me access to drive?
Thanks for awesome project
Dear Sir,
Giving this error, i typed whole code as it is in video-
timezone.config(text=result)
AttributeError: type object 'datetime.timezone' has no attribute 'config'
check spelling , also take care of keywords . use variable name as it is use by me.
Provide source code
Sir i have a problen that 'tkinter.TCLError: could not open "images/search.png" no such file or dictionary . can u plz guide me
sure, message me on my Instagram, so that I can easily explain.
ok
Hello can you tell which software you have used for coding i am using pycharm but there are many errors occurring
then tell me i will fix
Thank you for this great tutorial, also could you please provide the access to these image files?
you can access !
hey @Parvat Computer Technonoly, please grant me acces to the images
you can access now!
Thank you for this helpful tutorial. can you plz provide access to the images?
Yes, you can access it!
Can you pls provide the access to these image file?
you can't access , because you are using wrong link
@@parvatcomputertechnology Where is the link correct?
@@desarrolloxerezdevelopment2364 in the video description
@@parvatcomputertechnology ok, thank you very much...🥰
Can u pls provide access to the drive????pls do it fast
you can access now!
Actually we are not able to see the api code
What is this
Can you plz send us that exact api line
And you can hide your api_key
take it
api="api.openweathermap.org/data/2.5/onecall?lat="+str(location.latitude)+"&lon="+str(location.longitude)+"&units=metric&exclude=hourly&appid="
@@parvatcomputertechnology
I am using postman to test the api I think it is no longer functional
Thanks for the video please how do i access the file and also the images please?
bro i m getting issue regarding to the api key unable to get it cause i dont have a credit or debit card what should i do ?? can you help me arrange api key ?
ok message me i will try to fix your problem
Unfortunately, I got error
Keyerror ' current '
Can someone help me to solve this ??
message me at my Instagram i will explain how to fix
@@parvatcomputertechnologyhey bro can you please tell in
#weather
What you wrote after cutting API KEY , you scratched it , how can I generate my own . Please tell
good video and can u grant access to the drive
you can access now!
Everything works fine but unable to access data through api. Please resolve
what's error!
@@parvatcomputertechnology invalid api error 401
then there is issue with you api link
Thank you for this awesome presentation
Can you pls provide the access to these image file...I need to submit it by tommorrow
you can access now !
@@parvatcomputertechnology I am getting an error in my code I am unable to access the daily response there is an key error
once message at my Instagram , i will provide you solution
I am having a problem installing timezonefinder module
ERROR: Could not build wheels for h3, which is required to install pyproject.toml-based projects
it is showing the above error please help me out
i think you are using latest version of python , am i right
@@parvatcomputertechnology I to getting the same error please guide me how to solve the error
what's the error
@@parvatcomputertechnology yes sir then? what should i do to resolve this error?
Sir can you please send me the source code? If it is paid please provide further details to access it. Iam ready to pay.
message me here instagram.com/pct_parvatcomputertechnology/
Hey Parvat! I am stuck at pip install timezonefinder
error- failed to build h3
Please help!
message me on my instagram , i will give you solution
Hi
I can't run the API even if I change the version to 3.0 or 2.5 like you did at 40:04 of the video. Can you help me?
do you have subscription of open weather api ??
@@parvatcomputertechnology i also got that problem but I have the free api which we get when we open account not the subscription one 😢
@@tawabshaikh8980 once message me at my Instagram , i will try to help
@@parvatcomputertechnology sir i dont use insta plz. Tell me how to solve it here only sir plz
I Am getting alot of errors while runnimg please guide have to submit project
once message me at my instagram and share screenshot of error !
@@parvatcomputertechnology hello sir can you please share your api key because mine is not working i hope you will reply soon
Bro iam facing current temp error with json_data can you help me with that please
once share your code at my mail , i will check
Having some error in json(temp) (current ) step can u help
do you have subscription of open weather api ??
Thanks for this amazing tutorial. Can you please provide access to the drive?🙏🏻
already given approval check your mail
amazing video tutorial! can i have access to the google drive? would love to try it, thank you sir.
you can access , already approved !
@@parvatcomputertechnology thank you so much sir!
Is it better to use .place(x= , y= ) or .grid(row= , column= ) for building apps
its depend upon project. But for fix project place is best
@@parvatcomputertechnology
Hi sir pls I have sent u an email message for a request to download the images I don't have access to it here
@@mosesabiodun139 you can access now
@@parvatcomputertechnology hello sir please give acess i request u a mail
@@alleditzs10 you can access now !
Can I send complete code plz in the comment box
why
Hi
I am getting the error in the line code of 41 where it shows that the current word is not present in JSON dictionary. How i can resolve the error as i change the api version from 3.0 to 2.5 but then too it didn't worked
once send screenshot at my Instagram id
I am getting the same error which you got in the 38.33 sec video part after the changes in api call from 3.0 to 2.5
@@thekhushisaini1723 its ok message me at my Instagram i will help you to solve this issue
@@parvatcomputertechnology ok i have msg
@@parvatcomputertechnology hi have msg you on Instagram
Traceback (most recent call last):
File "C:\Users\Али\Desktop\analog_clock.py", line 67, in
image_icon=PhotoImage(file="I\analog_clock.png")
NameError: name 'PhotoImage' is not defined
from tkinter import *
@@parvatcomputertechnology i have requested for images, please accept😊
@@akilbektop9310 ok done
sir i’m having a problem. Key error:’current’. please help me solve it
message me on my instagram i will check
Can u pls provide access to drive,sir.
once check your mail , already provided access !
Can u provide access to image drive folder 🙏🏻 thank u so much
already given access !
I have just created an api key and used it in the code but it says invalid api key while running the program kindly help me? Referring to the video my code is also not wrong
share screenshot at my Instagram i will check
maybe you have done any mistake
Plz I need the full code please I have an exam tomorrow I try during the entier day and I have 300 error I need Help please 🙏
ok then message me at my instagram, other at my mail
my latitude is coming on left side instead of right side of screen how can i fix this
check your longitude positional statement
I am facing same keyerror current even after changing to 2.5 version what should I do
Please feel free to send me a message on Instagram, and I will be happy to explain the solution to you.
you solved it??
@Parvat Computer Technology Sir I asked you for permission to access the files please accept it.
you can access now!
What does this day and night showing along the days?
its temperature
Hii i am facing issue in api and json_data can you help me in this.
Okay, please send me a message on my Instagram account and share a screenshot of the error you encountered.
label not defined bata raha hai searchbox ke upar wala
Can you pls give me access?? Of the image
you can access now!
Please sir give me the access for downloading the images
you can access now!
How to resize the image like search box and button
these images the design in fix order , you can resize it with the help of pillow library .
sir woh mere mai label error bata raha hai label 1 is not defined solution plzz
then define it
nonetype object has no attributes longitude how to solve error
send your code at my mail i will check
File "C:\Program Files\Python311\Lib\tkinter\__init__.py", line 1948, in __call__
return self.func(*args)
^^^^^^^^^^^^^^^^
File "c:\Users\chinmoyee\OneDrive\Desktop\weather_prediction\main.py", line 43, in getWeather
temp = json_data['current'] ['temp']
~~~~~~~~~^^^^^^^^^^^
KeyError: 'current'
i am facing this problem
it is working sir...thank you
How did you fix it
message me , i will explain how to fix
@@parvatcomputertechnology ppls help me
Can u please provide the acess of images ?
already given access !
Hey, thanks for the video. Please provide access to the images.
already given access ! once check your mail again .
could I have access to the images please I have an assignment due tomorrow
yes you can access now !
Traceback (most recent call last):
File "C:\Users\Али\Desktop\90.py", line 79, in
root.iconphoto(False,i)
File "D:\Python_3.12\Lib\tkinter\__init__.py", line 2183, in wm_iconphoto
self.tk.call('wm', 'iconphoto', self._w, *args)
_tkinter.TclError: failed to create an iconphoto with image "../I/analog_clock.png"
message me at my Instagram i will help to solve
Thanks. But can you make this app work on the phone
yes
@@parvatcomputertechnology .Can you download a video with this?
@@sajadhussain2803 you means download video with the help of tkinter
@@parvatcomputertechnology . yes.
@@sajadhussain2803 yes we can download video using tkinter
What is api code and( instal.txt file)
can you give me Drive access, thanks
you can access now !
pls help me, I'm stuck with this error
temp = json_data['current']['temp']
~~~~~~~~~^^^^^^^^^^^
KeyError: 'current'
sure message me at my Instagram i will help
Hey
Can you help me how to solve your error
Please help me
I am trying but can't solve this error
@@shivaneemishra4325 message eat my Instagram , i will help
hello can i please get access to the images?
yes you can access now!
how to convert this application to exe?
use pyautogui
Sir...was it notepad you were working on?
it a python idle
ruclips.net/video/JeLWmzqJxho/видео.html
Ser please grant me access to photo folder
Please check it again. Permission has been granted!
for photos folder pls
Sir. I can drive access
Yes you can