Thank you , this is very helpful ! You can also get the data with personalized units, if you add something like "&units=metric" for celsius or "&units=imperial" for Fahrenheit. Sorry, my english is not that good. Greetings from Germany :)
Thank you, unefortunatly I couldnt make this API work, I receive 401 error all the time... for the last 4 hours... this things are very usefull when it works...
am i the only one that isnt really getting what he is writing just copying, i mean its cool that you know what a response is but i came here to learn and you just show us how to do it
Then, the best thing to do is research the things you don't understand and try to get the base topics. For example, I just did a free course on rest API and CRUD (which might sound complex but quite basic), and then I came here for practice and real-world experience. And it is helpful as I recognize some syntax and methods/modules he is pulling up.
Hey, were those lessons online? I’d appreciate if you could share the link of the course with us. Sometimes the learning materials are still available for quite some time. A month ago I did a free python class, which only covered the basics, but kept me interested in learning more. :)
wondering why VSC gave me an error when importing the requestis library, the code stated "No module name 'requests' ". Any thoughts would be appreciated.
Make sure your Python Interpreter has the 'requests' module installed. If request is not installed, then run 'pip install requests' in your command prompt.
Very educational! Is there a way to automatically detect the city? Through ip or location instead of hard coding “London” for instance. Thanks in advance
1) Make sure your API key is active on openweathermap's website because there is an option to deactivate it. 2) Make sure you have entered the API key correctly in the text file or added ".txt" to the filename if you have used the open("filename.txt", "r").read() function. 3) Make sure you have entered the url = base_url + "appid=" + "&q=" + city correctly and that each variable has proper values assigned. 4) Make sure you have installed and imported "requests" package.
Hi. Can You make a video how to make a calendar-like app on KivyMD? I want to make calendar app, but every tutorials show how to make popup calendar. But i need to 'static' on screen calendar, just like buttons etc.
I'm getting an error. I've installed the requests library, but I am still getting this error: Traceback (most recent call last): File "C:\Users\NAME\PycharmProjects\WeatherScript\venv\Weather.py", line 1, in import requests ModuleNotFoundError: No module named 'requests'
I had this problem too. I changed my version of python to the global one on my pc. On VS code bottom of the terminal you can select your python version. Worked fine on 3.10
I really enjoyed this video, but at the risk of asking a stupid question, I noted you went to great lengths to hide your API key. What are the security implications for this key, which is specific to you, getting out, and why is it that each individual is assigned a personal key? Further, what is considered best-practice for obscuring such keys in public repositories? If I wanted to host a similar project on GitHub, for example, how would I go about it?
Thanks a lot for that explanation, @@Mark.Richter, I appreciate it. The reason individual users only have an allotted amount is to avoid the risk of denial-of-service attacks against a site, is that right?
yeah you literally replicate the predicament for the Brain... it literally is meters per second... it'd be insanely gusty for winds to be miles per second..
Doesnt work. constantly getting 401 error even if i get the pay as you go subscription. no way to make anything work no matter how much youtube tuto im watching.
Can you make a video about a script that will give Aviation weather reports, such as ATIS from a specific airport, or METAR or NOTAM reports from an API, then the output would be sent via a web hook to a discord server, as well as announced every 30 minutes or every hour or so through the speakers?
Americans use weird units to make it hard for others to figure out what system is being used for what for security reasons. Maybe to be different so that encoded data cannot be breached? Not sure.
Thank you , this is very helpful !
You can also get the data with personalized units, if you add something like "&units=metric" for celsius or "&units=imperial" for Fahrenheit.
Sorry, my english is not that good.
Greetings from Germany :)
I don't speak in english but you can use what do you know or use Google Translator
Nazi's
an@@LABrawl602 ...and that sentence made no sense. BTW I'm also from Germany.
sorry, i didn`t mean that so bad.@@LABrawl602
how do I get this weather information for a date in the past or future for a specific city?
This is great man, thank you!
Thank you, very much!
This is a awesome tutorial and content is very easy to understand😍
Fantastic dude!!! thank you!
Great video, really like your presentation
Thank you, unefortunatly I couldnt make this API work, I receive 401 error all the time... for the last 4 hours... this things are very usefull when it works...
Any luck? I am getting the same error message for 3 hours now
Great vid, it really helped.
a great lecture, thank you very much
How can I get rain info? Like what time is it going to rain next?
from where did you find the base url?
am i the only one that isnt really getting what he is writing just copying, i mean its cool that you know what a response is but i came here to learn and you just show us how to do it
Then, the best thing to do is research the things you don't understand and try to get the base topics. For example, I just did a free course on rest API and CRUD (which might sound complex but quite basic), and then I came here for practice and real-world experience. And it is helpful as I recognize some syntax and methods/modules he is pulling up.
@@harshakarapureddy2596 same i recognize the syntax has been used and it helpful
Read documentation…video tutorials are a “How to” rather than intended to help you understand documentation
Hey, were those lessons online? I’d appreciate if you could share the link of the course with us. Sometimes the learning materials are still available for quite some time. A month ago I did a free python class, which only covered the basics, but kept me interested in learning more. :)
i keep on getting method object is not subscriptable temp_kelvin = response['main']['temp']
Sir kindly let us know where is this code located.. not able to see this in your github account...seems like u mixed this with django project
amazing, thank you! :)
Thank you very much!
can you get forecasted data from the API ?
Good job 😎
Thank you so much
wondering why VSC gave me an error when importing the requestis library, the code stated "No module name 'requests' ". Any thoughts would be appreciated.
Make sure your Python Interpreter has the 'requests' module installed. If request is not installed, then run 'pip install requests' in your command prompt.
Thank you!
Very educational! Is there a way to automatically detect the city? Through ip or location instead of hard coding “London” for instance. Thanks in advance
You can use the geocoder import that finds current location and pass that through LAT LONG :P
thanks man!
What if my Api key is not workink? I got he error 401
Did you find a solution, if so what is it?
Thanks.
1) Make sure your API key is active on openweathermap's website because there is an option to deactivate it.
2) Make sure you have entered the API key correctly in the text file or added ".txt" to the filename if you have used the open("filename.txt", "r").read() function.
3) Make sure you have entered the
url = base_url + "appid=" + "&q=" + city
correctly and that each variable has proper values assigned.
4) Make sure you have installed and imported "requests" package.
Great video! thank you for going over every data point. In specific how the code works as you were writing it.
For the city can I just put my zip code?
Hi.
Can You make a video how to make a calendar-like app on KivyMD?
I want to make calendar app, but every tutorials show how to make popup calendar.
But i need to 'static' on screen calendar, just like buttons etc.
I'm getting an error. I've installed the requests library, but I am still getting this error:
Traceback (most recent call last):
File "C:\Users\NAME\PycharmProjects\WeatherScript\venv\Weather.py", line 1, in
import requests
ModuleNotFoundError: No module named 'requests'
I had this problem too. I changed my version of python to the global one on my pc. On VS code bottom of the terminal you can select your python version. Worked fine on 3.10
@@Josh-og9eo so I should use visual studio?
@@sillymonke21 I’d recommend it personally
win+r type cmd, in cmd pip install requests
@@Lanzo-s2o I found that out a long time ago but thanks for the help
I really enjoyed this video, but at the risk of asking a stupid question, I noted you went to great lengths to hide your API key. What are the security implications for this key, which is specific to you, getting out, and why is it that each individual is assigned a personal key? Further, what is considered best-practice for obscuring such keys in public repositories? If I wanted to host a similar project on GitHub, for example, how would I go about it?
You are limited to how many API calls you can make per minute and total per month. So if others had your API, they would use up your allotted amount.
Thanks a lot for that explanation, @@Mark.Richter, I appreciate it. The reason individual users only have an allotted amount is to avoid the risk of denial-of-service attacks against a site, is that right?
@@ConorJTobin in this case they have free accounts and subscription accounts.
i hop i can learn more from your video
Yes, windspeed is m/s
to convert easy in km/h {wind_speed*3.6:.2f}
yeah you literally replicate the predicament for the Brain... it literally is meters per second... it'd be insanely gusty for winds to be miles per second..
Not me stuck on how to do the degrees symbol
Can we fetch data of 30 cities at a time ?
hi! can I use this code for a twitter bot which posts hourly updates for weather?
Doesnt work. constantly getting 401 error even if i get the pay as you go subscription. no way to make anything work no matter how much youtube tuto im watching.
Same here
read the api docs ... the url has changed because they changed their product's name
Sir, how to get weather pridiction from the API?
Thanks a lot
How can I get weather data on the date I hit?
For US cities, the source temperature data is in Fahrenheit. Openweather uses 273, not 273.15, in the conversion to Kelvin.
Great video 👍👍
Is the source code available?
Hi, first of all thank you so much for this video... I just want to ask if weather api are free?
Simple plan yes. More advanced stuff is paid. For example forecasts.
Can you make a video about a script that will give Aviation weather reports, such as ATIS from a specific airport, or METAR or NOTAM reports from an API, then the output would be sent via a web hook to a discord server, as well as announced every 30 minutes or every hour or so through the speakers?
how to import request
Thanks sir
For anyone having trouble with Error 401, make sure you verify your account (with your email). otherwise you won't get access. hence the error.
import reqeusts is the actaul error which occured
Getting json error
thanks video
I keep having errors with the response
Thankyou...
thanks
the link request API not work, he send me response 401.
have a free plan.
Nice
nice.
i am getting an error: "KeyError: 'main'" does somebody know the solution?
Celsius is arbitrary as well.
Ur text color should be in yellow or blue unless u wdint want everyone to follow
Americans use weird units to make it hard for others to figure out what system is being used for what for security reasons. Maybe to be different so that encoded data cannot be breached? Not sure.
Can i get your code please ?
I also need itt
Esto va a ser epiko papus xd
Viena í (contexto el chabon es de austria)
error code 401 :[
I also have it!
able to solve it??
You lost me after 3 minutes. Do you have a video for QGIS users who are not programmers?
fucking question mark!!!
I've trying to run weather API for 3 fucking hours!
and it's not working without question mark :D
Can you do a video on how to access twitter and create a account without phone number please ? Thx a lot
This is showing your work, but definitely not teaching.
Hello said the 🕷 spider to the fly... 🪰