Displaying REAL-WORLD Weather in Unity (using REST APIs)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

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

  • @qui-gonjinn8048
    @qui-gonjinn8048 4 ปีที่แล้ว +253

    "Using Unity's Particle System..."
    *Dani Intensifies*

    • @scattagain
      @scattagain 4 ปีที่แล้ว +5

      I liked your comment with all my 15 accounts (IDK why I have them) and now you're at the top

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

      @@scattagain liar there's 14 likes lol

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

      @@VortechBirb youtube system lags sometimes, now its 15 but I think one is yours

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

      @@scattagain nice can you sub to me on all 15

    • @KnightoftheSorryFace
      @KnightoftheSorryFace 4 ปีที่แล้ว +5

      @@prizmatik8696...

  • @tyleranders9972
    @tyleranders9972 5 ปีที่แล้ว +167

    Great video. Finally some different content from what everyone else is doing.

    • @PolyMars
      @PolyMars  5 ปีที่แล้ว +24

      Thanks!

    • @breakfastboi3344
      @breakfastboi3344 4 ปีที่แล้ว +6

      Can’t wait to convert unity into weather

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

      @@breakfastboi3344 convert you computer chips into water then

    • @breakfastboi3344
      @breakfastboi3344 4 ปีที่แล้ว

      Numero7 Mojeangering ok

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

      @@breakfastboi3344 Wait no it was a joke

  • @100secks2
    @100secks2 4 ปีที่แล้ว +173

    making this in wallpaper engine would be dope

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

      you can with lively wallpaper

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

      No

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

      No

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

      Eh

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

      Hmmmmm chain

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

    I stumbled on your channel yesterday. I will never regret this.

  • @dr.unventor
    @dr.unventor 5 ปีที่แล้ว +44

    That’s so cool and useful

    • @PolyMars
      @PolyMars  5 ปีที่แล้ว +8

      Thanks :)

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

    I like the way you share the coding process really cool to see your thought process during these

  • @bapookie
    @bapookie 4 ปีที่แล้ว +89

    waiting for raining weather
    Califrona Summer Players: Oh No

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

      Arizoninans :

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

      Oklahmoa

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

      the Sahara desert players:

  • @lincolnsnewaccount41
    @lincolnsnewaccount41 4 ปีที่แล้ว +70

    wait imagine if there was a survival platformer that used a real life day/night cycle and this. For example:
    Foggy: makes it impossible to see faraway things
    Rain: Makes it slippery
    Cloudy and Clear: N/A
    Snowy: Makes it slightly harder to move
    Thunder: Rainy but more deadly (Thunder kills you instantly unless more max health is added)

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

      This is a cool idea

    • @lincolnsnewaccount41
      @lincolnsnewaccount41 4 ปีที่แล้ว +6

      @@marfromthestars And i would use it... IF UNITY FUCKIN WORKED FOR ONCE.

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

      @@lincolnsnewaccount41 I feel this.

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

      @Ezequiel Ciamparella yep

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

      @Ezequiel Ciamparella question of game design: you can be in-game in different location then in real life

  • @CamronJK
    @CamronJK 4 ปีที่แล้ว +62

    I would love this in Animal Crossing

    • @junkeyz
      @junkeyz 4 ปีที่แล้ว +5

      That's what I wanted to use this for, I was gonna make a 2D Animal Crossing game lol

    • @Jesse-um1pz
      @Jesse-um1pz 4 ปีที่แล้ว +2

      @@junkeyz Great minds think alike, thats why im here haha

    • @junkeyz
      @junkeyz 4 ปีที่แล้ว

      @@Jesse-um1pz Ha, nice!

    • @opal9583
      @opal9583 3 ปีที่แล้ว

      @@junkeyz well, did you end up making it?

    • @opal9583
      @opal9583 3 ปีที่แล้ว

      @@Jesse-um1pz did you end up making it?

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

    Loved this video man! Inspired me to do the same thing but in under than 24 hours, but yours was definitely much better! Keep it up man

  • @ZooperPlayz
    @ZooperPlayz 4 ปีที่แล้ว +10

    Hey! This is really nice. Maybe add a few details to the character itself like if it’s rainy, he would open an umbrella. It it was sunny, probably sun bathing ;) or if it’s snowy make it so he’s wearing a sweater or a hoodie. That’s it! Nice vid as always!

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

    I love how quickly and efficiently you taught this. Subscribed

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

    Good work dude! I used the darksky API for a school project, just made a little weather site

  • @aneesh1283
    @aneesh1283 4 ปีที่แล้ว +12

    Amazing "this idea can be used many games"

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

    YES,this helped me so much, i want to make a app where your pc is affected by weather

    • @mibbleyt
      @mibbleyt 3 ปีที่แล้ว

      No.

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

      @@mibbleyt bruh

  • @mudokin
    @mudokin 4 ปีที่แล้ว +13

    Thinking of futureproofing this, you could cut down on the requests by hosting your on server that buffers the requests,
    this obviously makes most sence if your game or app gets very big though ;).
    Also if your weather- or ipservice ever closes down you can easily switch to a different service.

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

      Yup, because the Dark Sky API is going to be shut down by the end of 2021 :/

    • @kellymountain
      @kellymountain 4 ปีที่แล้ว

      @@Cabalex RIP

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

    No dislikes! Good job!

  • @dnspoofed
    @dnspoofed 4 ปีที่แล้ว +106

    people in egypt: *left the chat*

    • @iceyberq
      @iceyberq 4 ปีที่แล้ว +9

      *Sandstorm intensifies*

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

      Imagine enabling earthquakes, eclipses and haze in a actual game

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

      @Ezequiel Ciamparella maybe me :)

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

      @Ezequiel Ciamparella japan has about 1500 eathquakes a year. So they won t stop their life for a little earthquake

    • @phunweng962
      @phunweng962 4 ปีที่แล้ว

      @@luxraider5384 We don't even know there's an earthquake when it comes.

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

    how are you a small youtuber??? this is great!

  • @Todomo
    @Todomo 4 ปีที่แล้ว +8

    i wish animal crossing used real world weather. kinda sucks when it’s a super nice day out but in my game it’s all dark and dreary, or the other way around- but i do see how in some places that would suck because they would never get rain

    • @Kiralmao
      @Kiralmao 3 ปีที่แล้ว

      they could do something like have a setting to turn it on and off to combat that

  • @fleeb-f9u
    @fleeb-f9u 3 ปีที่แล้ว +1

    Escape from Tarkov actually uses this concept. its also a unity game, and it uses the weather in Moscow to decide what the in game weather will be when players join a game. They also use it to change the price of in game bitcoins to give or take match the real world price aswell.

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

    your content is simply amazing for me, even iam being brasilian and don't understanding many english coding terms.

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

    Very usefull for the quarantine.

  • @vedrane0
    @vedrane0 4 ปีที่แล้ว

    REST APIs can do really cool stuff, great video!

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

    Fun fact: Animal Crossing City Folk was originally going to use a similar system, pulling data from the Forecast Channel, but they decided against it after they realized some players would get very samey weather, whether that be constant sunniness, constant snow, or even constant rain...honestly I'm surprised they didn't just go "Welp they can go visit their friends if they want different weather lol" but honestly I think an option for it would've been cool

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

    oh your that guy that makes videos by creating spaghetti code!

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

    I was wanting to make a smart mirror in VRC that displays users weather, time, and temperature so this is great!

  • @KnightoftheSorryFace
    @KnightoftheSorryFace 4 ปีที่แล้ว +14

    Instructions unclear, accidentally made it send hitmen to player houses

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

    Very interesting and cool Video!
    I really want to make something with the rest apis, but i cant find a webpage with a list of them.
    I saw, that you found a website or something (0:12), on which some apis are listed.
    So can you maybe post the link?

    • @thenewgameevolution5442
      @thenewgameevolution5442 4 ปีที่แล้ว

      I might be hella late and you might have already found it, but the list is at github.com/public-apis/public-apis if you scroll down

    • @keanu_reeves
      @keanu_reeves 4 ปีที่แล้ว

      @@thenewgameevolution5442 Thank you!
      And no I've not found the list before

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

    It would be cool if whenever it was raining/drizzing, the character would hold an umbrella

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

    niceee

  • @oscwavcommentaccount
    @oscwavcommentaccount 4 ปีที่แล้ว +8

    4:11 That means you can request it every 1 minute 26 seconds.

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

      MΛRTYNΛSPLΛYZ it would be more impressive if you showed your working out

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

      But it's literally just 24 hours divided by 1000, then just convert to minutes and seconds
      24 hours / 1000 = 0.024 hours = 1.44 minutes = 1 minute 26.4 seconds

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

      @@MrMutebe But that's still more impressive than just saying the answer, even if it is still simple

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

      Garrett Richards Are you a teacher or something

    • @ste.t
      @ste.t 4 ปีที่แล้ว +1

      @@CreeperMan2254 lol

  • @falxie_
    @falxie_ 4 ปีที่แล้ว

    I like your unique ideas

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

    it says "replace this with your API key" how can i replace it?

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

      Just register on the darksky website. After you sign up, it will give you the api key. Copy the api key and then go to Unity and paste the API key on the API key box on Unity.

    • @MasterGeorge090
      @MasterGeorge090 4 ปีที่แล้ว

      ​@ilikeminecraft6753 gaming The maximum amount of weather requests are 1000 requests per day.

  • @QualifiedUmbrella
    @QualifiedUmbrella 4 ปีที่แล้ว +11

    Pause on 1:36... Cloudy: snowy. Snow: clear-day. Sunny: cloudy. I figure you just mislabeled but thought it was funny

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

      I just noticed that lol...

  • @TheJas-vr2vr
    @TheJas-vr2vr 4 ปีที่แล้ว +1

    Idea, take a random heightmap of somewhere on earth to use as terrain for a game.

  • @gamerninjask6746
    @gamerninjask6746 3 ปีที่แล้ว

    your videos are cool continue in your work

  • @farciarzfunny5326
    @farciarzfunny5326 4 ปีที่แล้ว +20

    Btw the unity particle system is now a real thing

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

      Thanks for the hearth i didnt expect that

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

      9 likes wow

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

      *hearth*

    • @focalpoint._
      @focalpoint._ 4 ปีที่แล้ว +1

      Heareth thee, I have gained thy hearth from thy kings ruler!

  • @doqe
    @doqe 4 ปีที่แล้ว +6

    also i think dark sky signups are disabled now.

    • @BaconStudio
      @BaconStudio 4 ปีที่แล้ว

      Ikr. This has been my daily bruh moment :/

  • @eboatwright_
    @eboatwright_ 5 ปีที่แล้ว +4

    how did you make that art in gimp?

  • @capp4198
    @capp4198 3 ปีที่แล้ว

    Polymars testing this be like. Rain come here. Right now.

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

    2:20 if anyone sees this comment, if u ever plan on getting a client's ip for a project that you want to publish, make sure it is listed in your ToS that u r, there is some law behind it.

  • @umerfarooq8494
    @umerfarooq8494 3 ปีที่แล้ว

    thanks for the video, it was helpful.

  • @lonelyPorterCH
    @lonelyPorterCH 4 ปีที่แล้ว

    Rest APIs, yeah, we also had to use them once at university ^^

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

    does the guy get worried if there's a weather advisory?

  • @frosty7674
    @frosty7674 3 ปีที่แล้ว

    Thinking about adding a Corona weather

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

    Is it secure, typing the API Key in inspector if I have to share the game with others?

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

    love this i was looking to have real time and date and make day cycle with sunrise and sunset data not sure how to find api or sites though

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

    Good video Keep it up

    • @PolyMars
      @PolyMars  4 ปีที่แล้ว

      Thank you!

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

    Im having trouble making it work :(

  • @GAMER_JOHNATHAN
    @GAMER_JOHNATHAN 3 ปีที่แล้ว

    How about adding a new feature make the sky dark when it’s night time

  • @Designguidetv
    @Designguidetv 4 ปีที่แล้ว +7

    I really like this explanation, but I cant get it to work with openweathermap, mainly I think because the json has a lot more information about then next 48 hours, which id like to include.

    • @Designguidetv
      @Designguidetv 4 ปีที่แล้ว

      i think its probably where to point inside that huge json file #beginner

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

    Good video, but can you give link to list of REST APIs wich you show at start?

  • @ErtBaran
    @ErtBaran 4 ปีที่แล้ว

    Good idea 👍🏻

  • @yunxiangchong226
    @yunxiangchong226 3 ปีที่แล้ว

    Can you do a tutorial on how to get data from Google Fit in Unity?

  • @matteow7369
    @matteow7369 3 ปีที่แล้ว

    Can you please update it? Dark sky will be discontinued next year and you can no longer get api keys

  • @mr.fakeman4718
    @mr.fakeman4718 4 ปีที่แล้ว

    Omg this is awesome

  • @ounhy5359
    @ounhy5359 4 ปีที่แล้ว

    this would be great for vr games

  • @MokarromHossain
    @MokarromHossain 3 ปีที่แล้ว

    now this looks realistic...

  • @monstercollectormsm2787
    @monstercollectormsm2787 3 ปีที่แล้ว

    Now make a creepy text box appear that says "find shelter now" when the weather is tornado

  • @SheepyIsSleepy
    @SheepyIsSleepy 4 ปีที่แล้ว

    you should make this into a custom desktop background

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

      Yeah,even in Wallpaper Engine

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

    I really like the format and pacing of this video, but it's missing something that I've been looking everywhere for... I don't know why, but the API i'm using has a lot of the apis containing a "data" object, which holds a lot of the information... This wasn't so big of a deal with most data objects i made, I made a special class that handled ALL data classes with the help of someone called ApiResponse and it contains a generic object for "Data". Buut for some reason one API has a DATA inside the DATA... It goes like, Odds {Data{ Id, name, Market{data{odds{data" This is incredibly confusing lol, how am i supposed to handle all these datas?! I tried making separate classes, but it doesn't seem to be populating them...

  • @carbonated_blood
    @carbonated_blood 4 ปีที่แล้ว

    Your new icon looks like it's from project arrhythmia

  • @hitoshilxrd4518
    @hitoshilxrd4518 4 ปีที่แล้ว

    which text editor/ide you use for C#?

  • @supersillystuffs
    @supersillystuffs 4 ปีที่แล้ว +13

    Y'all ever heard of animal crossing?

  • @bunkfoss50yearsago53
    @bunkfoss50yearsago53 3 ปีที่แล้ว

    Wait he used Star Dew Valley as an example but I didn't know people still remembered that game.

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

    Darksky api is no longer accepting new signup requests :(

  • @HugoMartinez-bj1xc
    @HugoMartinez-bj1xc 4 ปีที่แล้ว

    do someone get any alternative solution, could someone share it ?

  • @doomjunyu_
    @doomjunyu_ 4 ปีที่แล้ว

    Does it work for people using a vpn

  • @lovehansel
    @lovehansel 4 ปีที่แล้ว

    Is the Dark Sky API detracted now that the app is down.

    • @noisehero4409
      @noisehero4409 4 ปีที่แล้ว

      It's not really down, just the Android and Wear OS. But the API from what I can tell should be going down probably the end of 2021? Or I maybe just misinterpreted it

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

    it isn't possible to use it anymore

  • @jaydonoobinactive5983
    @jaydonoobinactive5983 4 ปีที่แล้ว

    But theres no snow in jamaica :((

  • @sheez-5486
    @sheez-5486 4 ปีที่แล้ว +1

    waiting for rainy weather
    me who stays in International Space Station: Oh no

  • @mohammedsaad3801
    @mohammedsaad3801 3 ปีที่แล้ว

    Every one use the wethet for helping thier country
    PolyMars: lets make a game

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

    So.. you're saying i can add the ISS to my game & have it relate to the actual location of the ISS.. great

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

    RIP Dark Sky API...

  • @Megagon10k
    @Megagon10k 4 ปีที่แล้ว

    @PolyMars I am sure you probably know this by now but there is an easier way to get a users IpAddress :-)

  • @johnsrj
    @johnsrj 3 ปีที่แล้ว

    Dark Sky no longer accepts new signups, that's a bummer

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

    3:36 Just a little more complex... haha

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

    OkMars

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

    Try to make a game with scratch

  • @totallygrape9971
    @totallygrape9971 4 ปีที่แล้ว

    grown 2k subs in one week!

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

    nice

  • @rajeevjawaji4472
    @rajeevjawaji4472 4 ปีที่แล้ว

    you could have just used ip-api.com/json/{ipaddress}?fields=status,lat,lon to only get the status, lat and long so you don't have to parse that much data

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

    im in arizona. so the weather would never change 😭😭

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

    cant create a acount

  • @lucavoros8073
    @lucavoros8073 3 ปีที่แล้ว

    I really hope that these aren't the categories 1:35

  • @boldey
    @boldey 3 ปีที่แล้ว

    Dark sky is shut down :c

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

    I just noticed that the player looks like a character from "Super Paper Mario." Heh.

  • @Dorbellprod
    @Dorbellprod 3 ปีที่แล้ว

    Hi Pocket Mars

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

    rip dark sky

  • @leastexpected3115
    @leastexpected3115 4 ปีที่แล้ว

    you can also use opensource project github .com/chubin/wttr.in for weather api, it's absolutely free

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

    im glad that farming games dont work like that, cuz if they did, it would be impossible to play them on arizona

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

    They need to add something like this to animal crossing pocket camp!!

  • @luxraider5384
    @luxraider5384 4 ปีที่แล้ว

    Oh fck it s raining!!!! Lets plant smth!!!

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

    This in Minecraft.

  • @gbgaming7724
    @gbgaming7724 4 ปีที่แล้ว

    You should make this in minecraft

  • @roz9318
    @roz9318 4 ปีที่แล้ว

    Rip Dark Sky

  • @xtema4931
    @xtema4931 4 ปีที่แล้ว

    implanting this system in games like stardew valley would be stupid, I live in brazil specifically in the driest region. in addition to not snowing it would not rain, it would leave the game in a giant sameness.

  • @qnarrinlive
    @qnarrinlive 3 ปีที่แล้ว

    So u know everyone's opinion address that has played that