Weather API Tutorial in Python

แชร์
ฝัง

ความคิดเห็น • 89

  • @yari6896
    @yari6896 2 ปีที่แล้ว +3

    This is great man, thank you!

  • @alham__aa
    @alham__aa ปีที่แล้ว +3

    Thank you, very much!
    This is a awesome tutorial and content is very easy to understand😍

  • @jburns3210
    @jburns3210 ปีที่แล้ว +2

    Great video, really like your presentation

  • @markmcfadden7428
    @markmcfadden7428 7 หลายเดือนก่อน

    Great vid, it really helped.

  • @arghyl
    @arghyl ปีที่แล้ว

    Great video! thank you for going over every data point. In specific how the code works as you were writing it.

  • @mouaidsirafai
    @mouaidsirafai 11 หลายเดือนก่อน

    amazing, thank you! :)

  • @jesusdacoast872
    @jesusdacoast872 2 ปีที่แล้ว

    Good job 😎
    Thank you so much

  • @shbn7275
    @shbn7275 ปีที่แล้ว

    Thank you very much!

  • @codzo2628
    @codzo2628 2 ปีที่แล้ว

    Great video 👍👍

  • @adoseofconsciousness3960
    @adoseofconsciousness3960 ปีที่แล้ว

    Thank you!

  • @danielbali-jencik8798
    @danielbali-jencik8798 2 หลายเดือนก่อน +5

    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

  • @033_gauravpatel8
    @033_gauravpatel8 2 หลายเดือนก่อน

    thanks man!

  • @sandhyashankar8722
    @sandhyashankar8722 ปีที่แล้ว +3

    how do I get this weather information for a date in the past or future for a specific city?

  • @ihuarulamchizoba4751
    @ihuarulamchizoba4751 3 หลายเดือนก่อน

    Thanks a lot

  • @jessicaprall4366
    @jessicaprall4366 ปีที่แล้ว +33

    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 :)

    • @LiveNewYorkYT
      @LiveNewYorkYT 9 หลายเดือนก่อน

      I don't speak in english but you can use what do you know or use Google Translator

    • @hassanaqeel5594
      @hassanaqeel5594 5 หลายเดือนก่อน

      Nazi's

    • @edwing637
      @edwing637 4 หลายเดือนก่อน

      an@@LiveNewYorkYT ...and that sentence made no sense. BTW I'm also from Germany.

    • @edwing637
      @edwing637 4 หลายเดือนก่อน

      sorry, i didn`t mean that so bad.@@LiveNewYorkYT

  • @user-ns5gr5oq3t
    @user-ns5gr5oq3t 2 ปีที่แล้ว

    thanks video

  • @dgankitgaming1872
    @dgankitgaming1872 ปีที่แล้ว

    Thanks sir

  • @swail221
    @swail221 ปีที่แล้ว

    Nice

  • @sagarsriva
    @sagarsriva ปีที่แล้ว +1

    How can I get rain info? Like what time is it going to rain next?

  • @anaghaareddy9318
    @anaghaareddy9318 ปีที่แล้ว

    Thankyou...

  • @IronMechanic7110
    @IronMechanic7110 2 ปีที่แล้ว

    thanks

  • @adamfatyga7977
    @adamfatyga7977 2 ปีที่แล้ว +1

    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.

  • @saarthjhaveri1016
    @saarthjhaveri1016 5 หลายเดือนก่อน

    from where did you find the base url?

  • @IronMechanic7110
    @IronMechanic7110 2 ปีที่แล้ว

    nice.

  • @pr0g4m3rgyt
    @pr0g4m3rgyt ปีที่แล้ว +3

    Not me stuck on how to do the degrees symbol

  • @andrewtopgtate
    @andrewtopgtate ปีที่แล้ว

    hi! can I use this code for a twitter bot which posts hourly updates for weather?

  • @venkata1857
    @venkata1857 ปีที่แล้ว

    Can we fetch data of 30 cities at a time ?

  • @jonakthakuria8508
    @jonakthakuria8508 ปีที่แล้ว

    Sir, how to get weather pridiction from the API?

  • @Wave-px5me
    @Wave-px5me 8 หลายเดือนก่อน

    i keep on getting method object is not subscriptable temp_kelvin = response['main']['temp']

  • @digitalnomad2196
    @digitalnomad2196 3 หลายเดือนก่อน

    can you get forecasted data from the API ?

  • @santiagobardelli5675
    @santiagobardelli5675 7 หลายเดือนก่อน

    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...

    • @StayStoic__
      @StayStoic__ 5 หลายเดือนก่อน

      Any luck? I am getting the same error message for 3 hours now

  • @0xSigma
    @0xSigma 2 ปีที่แล้ว +5

    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

    • @Josh-og9eo
      @Josh-og9eo ปีที่แล้ว +6

      You can use the geocoder import that finds current location and pass that through LAT LONG :P

  • @NormannCfC
    @NormannCfC 2 ปีที่แล้ว +5

    Yes, windspeed is m/s

    • @IronMechanic7110
      @IronMechanic7110 2 ปีที่แล้ว

      to convert easy in km/h {wind_speed*3.6:.2f}

    • @tomduke558
      @tomduke558 2 ปีที่แล้ว +1

      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..

  • @friday8118
    @friday8118 ปีที่แล้ว

    wondering why VSC gave me an error when importing the requestis library, the code stated "No module name 'requests' ". Any thoughts would be appreciated.

    • @sillymonke21
      @sillymonke21 ปีที่แล้ว

      Make sure your Python Interpreter has the 'requests' module installed. If request is not installed, then run 'pip install requests' in your command prompt.

  • @rachanagupta6179
    @rachanagupta6179 2 ปีที่แล้ว

    How can I get weather data on the date I hit?

  • @RHSSTUDIOS
    @RHSSTUDIOS 5 หลายเดือนก่อน

    For the city can I just put my zip code?

  • @mobaius6479
    @mobaius6479 14 วันที่ผ่านมา

    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.

  • @bunnyvlogs7647
    @bunnyvlogs7647 หลายเดือนก่อน

    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

  • @philwebb6671
    @philwebb6671 ปีที่แล้ว

    For US cities, the source temperature data is in Fahrenheit. Openweather uses 273, not 273.15, in the conversion to Kelvin.

  • @BrennerEraFan
    @BrennerEraFan ปีที่แล้ว +1

    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?

  • @DigneDiconfiance
    @DigneDiconfiance 11 หลายเดือนก่อน

    import reqeusts is the actaul error which occured

  • @anowosad
    @anowosad 2 ปีที่แล้ว +6

    Is the source code available?

  • @ConorJTobin
    @ConorJTobin 2 ปีที่แล้ว +4

    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?

    • @Mark.Richter
      @Mark.Richter 2 ปีที่แล้ว +5

      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.

    • @ConorJTobin
      @ConorJTobin 2 ปีที่แล้ว +2

      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?

    • @Mark.Richter
      @Mark.Richter 2 ปีที่แล้ว

      @@ConorJTobin in this case they have free accounts and subscription accounts.

  • @fiokfilmes1526
    @fiokfilmes1526 2 ปีที่แล้ว +2

    What if my Api key is not workink? I got he error 401

    • @johnberry6663
      @johnberry6663 ปีที่แล้ว

      Did you find a solution, if so what is it?
      Thanks.

    • @grahampawar
      @grahampawar ปีที่แล้ว

      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.

  • @frandei4416
    @frandei4416 2 ปีที่แล้ว +1

    Esto va a ser epiko papus xd

    • @gbagba81
      @gbagba81 2 ปีที่แล้ว

      Viena í (contexto el chabon es de austria)

  • @sillymonke21
    @sillymonke21 ปีที่แล้ว +1

    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'

    • @Josh-og9eo
      @Josh-og9eo ปีที่แล้ว +2

      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

    • @sillymonke21
      @sillymonke21 ปีที่แล้ว +2

      @@Josh-og9eo so I should use visual studio?

    • @Josh-og9eo
      @Josh-og9eo ปีที่แล้ว +1

      @@sillymonke21 I’d recommend it personally

    • @user-bx3ht6in2g
      @user-bx3ht6in2g ปีที่แล้ว

      win+r type cmd, in cmd pip install requests

    • @sillymonke21
      @sillymonke21 ปีที่แล้ว

      @@user-bx3ht6in2g I found that out a long time ago but thanks for the help

  • @clentargerototing2792
    @clentargerototing2792 2 ปีที่แล้ว +1

    Hi, first of all thank you so much for this video... I just want to ask if weather api are free?

    • @RidingWithGerdas
      @RidingWithGerdas 2 ปีที่แล้ว +1

      Simple plan yes. More advanced stuff is paid. For example forecasts.

  • @anncokafor
    @anncokafor ปีที่แล้ว

    Celsius is arbitrary as well.

  • @sibot6482
    @sibot6482 ปีที่แล้ว +1

    Getting json error

  • @-maxxxeffect
    @-maxxxeffect ปีที่แล้ว

    fucking question mark!!!
    I've trying to run weather API for 3 fucking hours!
    and it's not working without question mark :D

  • @stgaming1569
    @stgaming1569 ปีที่แล้ว

    how to import request

  • @flosrv3194
    @flosrv3194 3 หลายเดือนก่อน +1

    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.

    • @udaysethi2190
      @udaysethi2190 3 หลายเดือนก่อน

      Same here

    • @markoskarabinakis1284
      @markoskarabinakis1284 2 หลายเดือนก่อน

      read the api docs ... the url has changed because they changed their product's name

  • @Small_paps
    @Small_paps 10 หลายเดือนก่อน

    I keep having errors with the response

  • @amazing2210
    @amazing2210 11 หลายเดือนก่อน

    Ur text color should be in yellow or blue unless u wdint want everyone to follow

  • @Remedialpriya.
    @Remedialpriya. 2 ปีที่แล้ว

    Sup

  • @benlefler6304
    @benlefler6304 10 หลายเดือนก่อน +1

    i am getting an error: "KeyError: 'main'" does somebody know the solution?

  • @tcgvsocg1458
    @tcgvsocg1458 2 ปีที่แล้ว

    Can you do a video on how to access twitter and create a account without phone number please ? Thx a lot

  • @eliezerdokpomiwa4149
    @eliezerdokpomiwa4149 ปีที่แล้ว +1

    the link request API not work, he send me response 401.
    have a free plan.

  • @yateeam
    @yateeam ปีที่แล้ว +1

    Can i get your code please ?

    • @benlefler6304
      @benlefler6304 10 หลายเดือนก่อน

      I also need itt

  • @coopernik
    @coopernik ปีที่แล้ว +1

    error code 401 :[

  • @soulquesthealingmusic2307
    @soulquesthealingmusic2307 ปีที่แล้ว

    You lost me after 3 minutes. Do you have a video for QGIS users who are not programmers?

  • @colbr06
    @colbr06 หลายเดือนก่อน

    This is showing your work, but definitely not teaching.

  • @pottoker612
    @pottoker612 2 ปีที่แล้ว

    Hello said the 🕷 spider to the fly... 🪰