You can use either Tkinter or pyqt5 to create a GUI in python and assign the buttons with corresponding api call. You could check out on my channel- project for covid 19 vaccine availability checker. ua-cam.com/play/PLBeeFF3JmXWA-l4xv2TyCU1DnJGsoHseJ.html
Hi Rakshith, I have seen your email, there you have just attach the error portion. Can you send your complete code alongwith the error details. I will debug and let you know the solution. Keep learning and keep growing!!
You can follow the videos and use any code editor you are familiar with. Incase you are starting fresh then consider VS code and python version 3.9 or above.
That means, Python is not able to locate "current_weather_data" in the environment variable. You need to create such variable and assign the API key to it.. it is clearly explained in the video
You can view JSON data in web browser using a plugin called json formatter. Video link: ua-cam.com/video/99UUOxhiyDk/v-deo.html I am not sure about displaying the same in Graphical format. You can search some online json viewer
thank you for the good video, while i have a question about about the used api. can it let us to get the precipitation value and the soil moisture value or it is just used to get the temprature, humidity and speed values?
Hey Najla, Thank you for liking the video. I am not sure if it would give you the soil moisture, as it would require a dedicated sensor to be placed inside the soil at each specific location (trust me it's a very very tedious task for any organisation). But I am sure that api must have precipitation value. Best of luck and let me know for any other help.
Hello aipython, I wanted to develop a project that is a weather prediction system. I wanted to ask that how can I predict weather in upcoming days that whether it will be sunny or cloudy or what will be the temperature and all?
Yes, definitely you can build one such app. So the idea is pretty simple and can be implemented easily using Machine learning (specifically using Decision Tree). You can build model by aggregating past 4-5 year data of a place. Build a ML model and save the output of model result in a file and finally create GUI to display the future prediction.
It is straight forward, you have not created any variable with the name 'current_weather_data' in the environment variable. Please create one with this name and add your api key in the value field.
Hi... I keep getting this error and I have no clue why. Could anybody help? Traceback (most recent call last): File "c:\Users\*****\OneDrive\Documents\lol.py", line 26, in user_api = os.environ['current_weather_data'] File "C:\Program Files\Python310\lib\os.py", line 679, in __getitem__ raise KeyError(key) from None KeyError: 'current_weather_data' Thanks
Hello, It seems like you have not created any variable having a name as 'current_weather_data' in the environment variable. Please make sure to create this variable and paste the api key in the value field of the same environment variable.
i am given a project on weather forecasting but not an app based but web based ,i think this one u showed would be considered as app based so can u please suggest me what could i do for it.
You can check, if such information is available within the response provided by API service provider. If they are providing such data , well than good news is you can get it too.
Of course, why not.. you can get historical data in various forms BUT not via this API. openweathermap provided many other API to facilitate data delivery.
You can't get the time and date by using the OpenWeatherMap API. To get time and date for a specific timezone you gotta use two additional libraries called pytz and datetime. To specify the timezone you are looking for, do: tz = pytz.timezone('Europe/Berlin') berlin_now = datetime.now(tz) the string called "tz" specifies the timezone you are looking for. the string called "berlin_now" get's the information by using the "tz" string above. Now you just have to do >>> print(berlin_now)
@@tonightspecial7 Certainly, there is an issue with reading the information from the windows environment variable. YOu can watch this video for the solution of your problem ua-cam.com/video/bcYKKX3ljlE/v-deo.html
Jesus loves you so much brother. It’s not about religion but a relationship with the true and living God. He will give you so much peace and joy in your life. Ask him to reveal yourself to you in prayer and He will. If you confess with your mouth that Jesus Christ is Lord and believe in your heart that God raised Him from the dead you will be saved.
Wow thank you for taking the time to explain this video, Now I wish my professors gave this good of instructions!
My pleasure.
LOVE your explanation Brother i totally understand the concept .... just amazing
Usually I don't comment. But this is something which I found mind-blowing. Hatts off
Thank you so much for your fantastic word. It gives a lot of boost to do more such work. 👍
@@aipython Can u plz tell how can I design GUI for this project
You can use either Tkinter or pyqt5 to create a GUI in python and assign the buttons with corresponding api call. You could check out on my channel- project for covid 19 vaccine availability checker. ua-cam.com/play/PLBeeFF3JmXWA-l4xv2TyCU1DnJGsoHseJ.html
this is what ive been looking for, great explanation!!
Woww amazing 🎉 The concept amazing, everyone used to directly write the code but you are really amazing, feeling like i am making it by myself woww🎉
I am glad it helped you.
Best explanation available on the internet for beginners 💝🤝🤝
Great to hear this from you
Now I can implement it in my Voice Assistant thanks
thanks alot for explaining it in slow pace and using simpler terms bro
I am glad it helped you. Thanks 🙏
your voice so soothing. Thanks for this video. I am using this in my project now
Nice to hear that 😊
Can u help me
I have error in this project
Can you please let me know what is the error??
Very good Video! Thank you for explaining👍
Very helpful. Thank you so much for posting this.
Glad , it helped you
I like your voice and the way you describe thank you
This is a pretty good video. Thank you for the amount of effort you put in it.
Thank you for such a nice feedback. This is motivating to do more.
@@aipython I would recommend doing a video on another api.
We are working on it, by the way would you like us to make video on any specific api service. Anything in your mind?
@@aipython No not really.
you are the best man thanks so much
Great Video Man, Keep Posting
Awesome ❤❤❤❤
when i running the code the keyerror is "API "key line
please solve this problem (string number 5)
Well explained video. thank you sir
Great video
You deserve a like and a sub
key error = "main" what should I do?
Thank you so much you saved my final semester project ❣️❣️❣️❣️❣️☺️☺️☺️☺️☺️❣️☺️❣️❣️❣️☺️❣️❣️
Great, it worked for you.
Yes for that reason i message you on Instagram but i got my output after that
Hlo sir I am getting KeyError: 'main' from temp_city please telll me what to do
Hi Rakshith,
I have seen your email, there you have just attach the error portion. Can you send your complete code alongwith the error details. I will debug and let you know the solution.
Keep learning and keep growing!!
@@aipython thank you sir I have sent you the email
@@rakshith9584 even I am geting the same error , do you know how to remove it ?
What actually written in current_weather_data in environment variable ?plz tell me .
You need to obtain a API key from openweathermap website and put it there in environment field
@@aipython Ok Tnx👍
Awesome explanation 👍
does this require an internet connection>?
Yes of course, to fetch the data over API
@@aipython ok thanks
Why [0] is added to access sub elements of weather ? You haven't used the same rule to access sub elements of MAIN
Where exactly in the code, any line number?
@@aipython Line No. 20 Weather [0]
Line No 21... no zero. Here sub element is accessed without [0].
Thank you for the prompt response.
Brother can you explain me i'm first year student how to start and implement this project which text editor or what i need to build this project
You can follow the videos and use any code editor you are familiar with. Incase you are starting fresh then consider VS code and python version 3.9 or above.
do you have a weather forecast project report
Unfortunately not
thanks you but while i am running it its saying: KeyError: 'current_weather_data'
That means, Python is not able to locate "current_weather_data" in the environment variable. You need to create such variable and assign the API key to it.. it is clearly explained in the video
@@aipython ok thank you :D
The open weather map API has changed it's API call, will this video work there as well?
Hey Krunal, to be very frank, I haven't seen the new api structure. I will confirm you after verification. Give me some time
How can i do a graph with quiver forecast like windy?
I am not sure, if I understand you correctly. Did you mean to plot a graph for windy weather showing over some range let say 1 day or 2.
@@aipython Hey, I am try to do a graph like windy with fews files netcdfs. Can i send email, linkedin or whatsapp?
HOW CAN I FIX THIS ModuleNotFoundError: No module named 'requests'
Have you installed the requests module along with python?
Where can i download that?
You can refer to this video: ua-cam.com/video/5V713heaUE8/v-deo.html
@@aipython will i download all ?
Not exactly, only requests is required
Can we show this Jeson data into Web browser in Graphical way ? Please reply how ?
You can view JSON data in web browser using a plugin called json formatter. Video link: ua-cam.com/video/99UUOxhiyDk/v-deo.html
I am not sure about displaying the same in Graphical format. You can search some online json viewer
thank you for the good video, while i have a question about about the used api. can it let us to get the precipitation value and the soil moisture value or it is just used to get the temprature, humidity and speed values?
Hey Najla,
Thank you for liking the video. I am not sure if it would give you the soil moisture, as it would require a dedicated sensor to be placed inside the soil at each specific location (trust me it's a very very tedious task for any organisation). But I am sure that api must have precipitation value. Best of luck and let me know for any other help.
@@aipython thank you so much for your generosity :)
Sir can we convert this into an app for Android??
Hello aipython, I wanted to develop a project that is a weather prediction system. I wanted to ask that how can I predict weather in upcoming days that whether it will be sunny or cloudy or what will be the temperature and all?
Yes, definitely you can build one such app. So the idea is pretty simple and can be implemented easily using Machine learning (specifically using Decision Tree). You can build model by aggregating past 4-5 year data of a place. Build a ML model and save the output of model result in a file and finally create GUI to display the future prediction.
when I run my code and give it my city it returns '400',i searched it and it means bad request! I don't know what to do
plsss heeelp
Bro the code is not running instead its showing : raise KeyError(key) from None
KeyError: 'current_weather_data'
Plzz helpp!!
It is straight forward, you have not created any variable with the name 'current_weather_data' in the environment variable.
Please create one with this name and add your api key in the value field.
Should we put API key in brackets or nt
THANK YOU ❤️
Hi... I keep getting this error and I have no clue why. Could anybody help?
Traceback (most recent call last):
File "c:\Users\*****\OneDrive\Documents\lol.py", line 26, in
user_api = os.environ['current_weather_data']
File "C:\Program Files\Python310\lib\os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'current_weather_data'
Thanks
Hello, It seems like you have not created any variable having a name as 'current_weather_data' in the environment variable. Please make sure to create this variable and paste the api key in the value field of the same environment variable.
You can refer to this video - ua-cam.com/video/bcYKKX3ljlE/v-deo.html , for creating environment variable and assign a value to it
@@aipython tysm
Can i use jupyter notebook (anaconda3) to run this?
Sure 💯%
Finally found a good video
Which flatform you run the program
I am using Notepad++ to execute Python code. Here is the video, which explain how to use Notepad++ for Python. ua-cam.com/video/yxTbSTrCn6I/v-deo.html
I getting syntax error
8 th line....got error
I am doing project on weather api using machine learning.... could you please help me sir
Share the error screenshot at aipython.india@gmail.com
can we use pycharam sir
Yes, Sakib.
You can definitely use pycharm or any other IDE
Sir I have run the project but error shows
raise keyerro(key)from none
i am given a project on weather forecasting but not an app based but web based ,i think this one u showed would be considered as app based so can u please suggest me what could i do for it.
Hi Anshu,
You can build an front end (web app) using either flask or electron Js and keep this code at the back end. Display the result on that app.
Awesome video..
In which app u r running this problem? It's showing no module name requests
isnt working. the site has changed completely can't generate api keys.
Very good video! Is there a possibility to get the weather of a place for 2014?
Thank you.
I would say yes, there is possibility to get weather info from past , if the api stores previous data as well. I will check and update you.
Sir how to get output in simple notepad for this code?
Yes, you can write the information in a text file and that can be done pretty easily.
keep it up bro
Hey bro can you please share the synopsis or project report of this..
Sorry, Its not available right now
can we use this project in our final year....
Yes, of course go ahead and take all the code available on our website www.aipython.in
How can I see how much it has rained today?
You can check, if such information is available within the response provided by API service provider. If they are providing such data , well than good news is you can get it too.
Sorry im beginner in python, how ur spyder move to python374? And how to run the command? Please help
Sorry u use spyder or notepad++?
It is Notepad++
@@aipython but how to running the command to python?
I have explained in the video step by step. Do let us know , at what point you are getting issue.
Congrats
very nice
Can we save this data into csv
Yes, ofcourse
We can save all the data into Excel sheet using openpyxl module
are u store some data in api-user r not
how to run the code at 10:16 ?
You can use task scheduler or deploy it on Heroku cloud for free. Check my other video for detailed guide.
can we get monthly data by this API ...plz ansr asap....thank you.
Of course, why not.. you can get historical data in various forms BUT not via this API. openweathermap provided many other API to facilitate data delivery.
😢 I am getting error due to 11th and 12th line. Terminal saying no such file or directory
Isn't line 12 empty, i am a bit confused
Osm
How do I get the date and time for the timezone of the city we are searching for?
You can't get the time and date by using the OpenWeatherMap API.
To get time and date for a specific timezone you gotta use two additional libraries called pytz and datetime.
To specify the timezone you are looking for, do:
tz = pytz.timezone('Europe/Berlin')
berlin_now = datetime.now(tz)
the string called "tz" specifies the timezone you are looking for.
the string called "berlin_now" get's the information by using the "tz" string above.
Now you just have to do >>> print(berlin_now)
Superb, well explained. Thank you so much HolyCow ,🙏
What is the algorithm for this?
This is based upon RESTAPI
is there any PPT related to this project if available then please provide the link
Sorry, we don't have any PPT :(
@AIPYTHON Sir I am getting error
raise Key error(key) form None
In line ** user_Api line ** even I have passed same name that I have of Api key
Can you send the screenshot with code to aipython.india@gmail.com
Bro iam getting keyError:'main'
temp_city=((api_data['main']['temp'])
How to resolve it
same error in line number 13 please provide solution
I m getting keyerror in main temp
Can you share the code and the error screenshot to aipython.india@gmail.com
sir plese help me ..i have an error...
Have you shared your error screenshot to aipython.india@gmail.com
@@aipython i have send screen sort..please chek your gmail sir.
sir plese chek your mail..🙂
@@tonightspecial7 Certainly, there is an issue with reading the information from the windows environment variable. YOu can watch this video for the solution of your problem ua-cam.com/video/bcYKKX3ljlE/v-deo.html
You are Amazing
☺️😃
Where to run the code sir can u explain
You can execute code in any IDE of your choice preferably VS Code.
Jesus loves you so much brother. It’s not about religion but a relationship with the true and living God. He will give you so much peace and joy in your life. Ask him to reveal yourself to you in prayer and He will. If you confess with your mouth that Jesus Christ is Lord and believe in your heart that God raised Him from the dead you will be saved.
where can i find the source code?
You can find the source code for all my project related videos at aipython. www.aipython.in/python/python-projects/
can you do this in kivy
No idea about kivy.
I have user-api key error How to fix
You need to create an account and generate user api key. Keep this api key in environment variables and use it in programming
Actually I want a weather forecasting project using spring framework will you please help me with that
Hi Dharani,
I can help you with python but no idea about spring.
can you show the same method on linux?
It's the same
17:52
my mind ......
sir can u send coding file
bro how can we save this data in .txt file using requests
can u just tell me the code
You can save the complete JSON response data in text or CSV file using file.write(filename.txt, 'w+')
Bro can you share all these codes as a file
Hi Sauravv,
You can find the complete documentation as well as the code at our website www.aipython.in/python/python-projects/
Bro can u give that code plz
You can get complete code for all the projects at www.aipython.in/python/python-projects/
@@aipython l am getting an error
Unresolved reference
Can you share the error details on aipython.india@gmail.com
@@aipython plz check I send mail
Sir I have sent you the pic of my error plz do check it out
Sir did you get the solution for the error
I will connect with you... Can you share your contact number via email
Tq
can you assist me for some time
Hi,
Share your contact details on aipython.india@gmail.com
Response401
It's working normal, you can check again. Thanks
@@aipython yap it work, 👍
Zilizo Tuikia can u help me