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

  Рет қаралды 94,488

PolyMars

PolyMars

Күн бұрын

Пікірлер: 207
@tyleranders9972
@tyleranders9972 5 жыл бұрын
Great video. Finally some different content from what everyone else is doing.
@PolyMars
@PolyMars 5 жыл бұрын
Thanks!
@breakfastboi3344
@breakfastboi3344 4 жыл бұрын
Can’t wait to convert unity into weather
@numero7mojeangering
@numero7mojeangering 4 жыл бұрын
@@breakfastboi3344 convert you computer chips into water then
@breakfastboi3344
@breakfastboi3344 4 жыл бұрын
Numero7 Mojeangering ok
@numero7mojeangering
@numero7mojeangering 4 жыл бұрын
@@breakfastboi3344 Wait no it was a joke
@100secks2
@100secks2 4 жыл бұрын
making this in wallpaper engine would be dope
@mrdarip4289
@mrdarip4289 3 жыл бұрын
you can with lively wallpaper
@Solomonwo
@Solomonwo 2 жыл бұрын
No
@DaanHun
@DaanHun 2 жыл бұрын
No
@Strikery
@Strikery 2 жыл бұрын
Eh
@fampasicyalt
@fampasicyalt 2 жыл бұрын
Hmmmmm chain
@qui-gonjinn8048
@qui-gonjinn8048 4 жыл бұрын
"Using Unity's Particle System..." *Dani Intensifies*
@scattagain
@scattagain 4 жыл бұрын
I liked your comment with all my 15 accounts (IDK why I have them) and now you're at the top
@VortechBirb
@VortechBirb 4 жыл бұрын
@@scattagain liar there's 14 likes lol
@scattagain
@scattagain 4 жыл бұрын
@@VortechBirb youtube system lags sometimes, now its 15 but I think one is yours
@prizmatik8696
@prizmatik8696 4 жыл бұрын
@@scattagain nice can you sub to me on all 15
@KnightoftheSorryFace
@KnightoftheSorryFace 4 жыл бұрын
@@prizmatik8696...
@JadedThrone957
@JadedThrone957 2 жыл бұрын
I stumbled on your channel yesterday. I will never regret this.
@Franschisco
@Franschisco 4 жыл бұрын
I like the way you share the coding process really cool to see your thought process during these
@dr.unventor
@dr.unventor 5 жыл бұрын
That’s so cool and useful
@PolyMars
@PolyMars 5 жыл бұрын
Thanks :)
@ZooperPlayz
@ZooperPlayz 4 жыл бұрын
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!
@jamedev1801
@jamedev1801 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
@Zynigma
@Zynigma 4 жыл бұрын
I love how quickly and efficiently you taught this. Subscribed
@lincolnsnewaccount41
@lincolnsnewaccount41 4 жыл бұрын
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 жыл бұрын
This is a cool idea
@lincolnsnewaccount41
@lincolnsnewaccount41 4 жыл бұрын
@@marfromthestars And i would use it... IF UNITY FUCKIN WORKED FOR ONCE.
@wenelol
@wenelol 4 жыл бұрын
@@lincolnsnewaccount41 I feel this.
@10secanimations51
@10secanimations51 4 жыл бұрын
@Ezequiel Ciamparella yep
@MetaCzech
@MetaCzech 4 жыл бұрын
@Ezequiel Ciamparella question of game design: you can be in-game in different location then in real life
@lambbonesdev
@lambbonesdev 4 жыл бұрын
Good work dude! I used the darksky API for a school project, just made a little weather site
@bapookie
@bapookie 4 жыл бұрын
waiting for raining weather Califrona Summer Players: Oh No
@lynnlo
@lynnlo 4 жыл бұрын
Arizoninans :
@trod146
@trod146 4 жыл бұрын
Oklahmoa
@squidno4902
@squidno4902 3 жыл бұрын
the Sahara desert players:
@CamronJK
@CamronJK 4 жыл бұрын
I would love this in Animal Crossing
@junkeyz
@junkeyz 4 жыл бұрын
That's what I wanted to use this for, I was gonna make a 2D Animal Crossing game lol
@Jesse-um1pz
@Jesse-um1pz 4 жыл бұрын
@@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?
@nightfr09
@nightfr09 2 жыл бұрын
I was wanting to make a smart mirror in VRC that displays users weather, time, and temperature so this is great!
@Nicolonho
@Nicolonho 4 жыл бұрын
your content is simply amazing for me, even iam being brasilian and don't understanding many english coding terms.
@fen4flo
@fen4flo 3 жыл бұрын
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 жыл бұрын
@@mibbleyt bruh
@AmbarWasTaken
@AmbarWasTaken 4 жыл бұрын
Very usefull for the quarantine.
@damid4557
@damid4557 4 жыл бұрын
how are you a small youtuber??? this is great!
@vedrane0
@vedrane0 4 жыл бұрын
REST APIs can do really cool stuff, great video!
@fleeb-f9u
@fleeb-f9u 4 жыл бұрын
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.
@ToaderTheToad
@ToaderTheToad 2 жыл бұрын
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
@mudokin
@mudokin 4 жыл бұрын
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 жыл бұрын
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 жыл бұрын
No dislikes! Good job!
@falxie_
@falxie_ 4 жыл бұрын
I like your unique ideas
@aneesh1283
@aneesh1283 4 жыл бұрын
Amazing "this idea can be used many games"
@QualifiedUmbrella
@QualifiedUmbrella 4 жыл бұрын
Pause on 1:36... Cloudy: snowy. Snow: clear-day. Sunny: cloudy. I figure you just mislabeled but thought it was funny
@BooleanCube
@BooleanCube 4 жыл бұрын
I just noticed that lol...
@hk5716
@hk5716 4 жыл бұрын
oh your that guy that makes videos by creating spaghetti code!
@PolyMars
@PolyMars 4 жыл бұрын
shhh
@citrinesanimations
@citrinesanimations 5 жыл бұрын
niceee
@Todomo
@Todomo 4 жыл бұрын
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
@gamerninjask6746
@gamerninjask6746 3 жыл бұрын
your videos are cool continue in your work
@nathanbanji5015
@nathanbanji5015 2 жыл бұрын
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.
@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
@lonelyPorterCH
@lonelyPorterCH 4 жыл бұрын
Rest APIs, yeah, we also had to use them once at university ^^
@ounhy5359
@ounhy5359 4 жыл бұрын
this would be great for vr games
@keanu_reeves
@keanu_reeves 5 жыл бұрын
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
@maketolaughyou6402
@maketolaughyou6402 4 жыл бұрын
Good video Keep it up
@PolyMars
@PolyMars 4 жыл бұрын
Thank you!
@TheJas-vr2vr
@TheJas-vr2vr 4 жыл бұрын
Idea, take a random heightmap of somewhere on earth to use as terrain for a game.
@capp4198
@capp4198 3 жыл бұрын
Polymars testing this be like. Rain come here. Right now.
@oscwavcommentaccount
@oscwavcommentaccount 4 жыл бұрын
4:11 That means you can request it every 1 minute 26 seconds.
@garrettrichards9028
@garrettrichards9028 4 жыл бұрын
MΛRTYNΛSPLΛYZ it would be more impressive if you showed your working out
@MrMutebe
@MrMutebe 4 жыл бұрын
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 жыл бұрын
@@MrMutebe But that's still more impressive than just saying the answer, even if it is still simple
@CreeperMan2254
@CreeperMan2254 4 жыл бұрын
Garrett Richards Are you a teacher or something
@ste.t
@ste.t 4 жыл бұрын
@@CreeperMan2254 lol
@BojanVasilev
@BojanVasilev 5 жыл бұрын
it says "replace this with your API key" how can i replace it?
@MasterGeorge090
@MasterGeorge090 4 жыл бұрын
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.
@KnightoftheSorryFace
@KnightoftheSorryFace 4 жыл бұрын
Instructions unclear, accidentally made it send hitmen to player houses
@ErtBaran
@ErtBaran 4 жыл бұрын
Good idea 👍🏻
@eboatwright_
@eboatwright_ 5 жыл бұрын
how did you make that art in gimp?
@dnspoofed
@dnspoofed 4 жыл бұрын
people in egypt: *left the chat*
@iceyberq
@iceyberq 4 жыл бұрын
*Sandstorm intensifies*
@luxraider5384
@luxraider5384 4 жыл бұрын
Imagine enabling earthquakes, eclipses and haze in a actual game
@bandvitromaniaios1307
@bandvitromaniaios1307 4 жыл бұрын
@Ezequiel Ciamparella maybe me :)
@luxraider5384
@luxraider5384 4 жыл бұрын
@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.
@meatballman28
@meatballman28 3 жыл бұрын
It would be cool if whenever it was raining/drizzing, the character would hold an umbrella
@amanpandey3131
@amanpandey3131 3 жыл бұрын
Is it secure, typing the API Key in inspector if I have to share the game with others?
@MokarromHossain
@MokarromHossain 3 жыл бұрын
now this looks realistic...
@frosty7674
@frosty7674 3 жыл бұрын
Thinking about adding a Corona weather
@mr.fakeman4718
@mr.fakeman4718 4 жыл бұрын
Omg this is awesome
@TheEpicplushgod
@TheEpicplushgod 2 жыл бұрын
nice
@totallygrape9971
@totallygrape9971 4 жыл бұрын
grown 2k subs in one week!
@user-co7do9nz9s
@user-co7do9nz9s 4 жыл бұрын
Good video, but can you give link to list of REST APIs wich you show at start?
@doqe
@doqe 4 жыл бұрын
also i think dark sky signups are disabled now.
@BaconStudio
@BaconStudio 4 жыл бұрын
Ikr. This has been my daily bruh moment :/
@yunxiangchong226
@yunxiangchong226 3 жыл бұрын
Can you do a tutorial on how to get data from Google Fit in Unity?
@SuperJavaMan7
@SuperJavaMan7 3 жыл бұрын
OkMars
@hitoshilxrd4518
@hitoshilxrd4518 4 жыл бұрын
which text editor/ide you use for C#?
@Designguidetv
@Designguidetv 4 жыл бұрын
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
@GAMER_JOHNATHAN
@GAMER_JOHNATHAN 3 жыл бұрын
How about adding a new feature make the sky dark when it’s night time
@Vallee152
@Vallee152 4 жыл бұрын
does the guy get worried if there's a weather advisory?
@farciarzfunny5326
@farciarzfunny5326 4 жыл бұрын
Btw the unity particle system is now a real thing
@farciarzfunny5326
@farciarzfunny5326 4 жыл бұрын
Thanks for the hearth i didnt expect that
@farciarzfunny5326
@farciarzfunny5326 4 жыл бұрын
9 likes wow
@eggiosus
@eggiosus 4 жыл бұрын
*hearth*
@focalpoint._
@focalpoint._ 4 жыл бұрын
Heareth thee, I have gained thy hearth from thy kings ruler!
@matteow7369
@matteow7369 3 жыл бұрын
Can you please update it? Dark sky will be discontinued next year and you can no longer get api keys
@doomjunyu_
@doomjunyu_ 4 жыл бұрын
Does it work for people using a vpn
@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...
@Megagon10k
@Megagon10k 4 жыл бұрын
@PolyMars I am sure you probably know this by now but there is an easier way to get a users IpAddress :-)
@brxtjn6660
@brxtjn6660 4 жыл бұрын
Im having trouble making it work :(
@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
@carbonated_blood
@carbonated_blood 4 жыл бұрын
Your new icon looks like it's from project arrhythmia
@SheepyIsSleepy
@SheepyIsSleepy 4 жыл бұрын
you should make this into a custom desktop background
@ShortMiao
@ShortMiao 2 жыл бұрын
Yeah,even in Wallpaper Engine
@plumper303
@plumper303 3 жыл бұрын
3:36 Just a little more complex... haha
@Dorbellprod
@Dorbellprod 3 жыл бұрын
Hi Pocket Mars
@bunkfoss50yearsago53
@bunkfoss50yearsago53 3 жыл бұрын
Wait he used Star Dew Valley as an example but I didn't know people still remembered that game.
@luxraider5384
@luxraider5384 4 жыл бұрын
Oh fck it s raining!!!! Lets plant smth!!!
@monstercollectormsm2787
@monstercollectormsm2787 3 жыл бұрын
Now make a creepy text box appear that says "find shelter now" when the weather is tornado
@yoshikagekira812
@yoshikagekira812 3 жыл бұрын
:troll:
@m_ibrahim990
@m_ibrahim990 4 жыл бұрын
Darksky api is no longer accepting new signup requests :(
@sheez-5486
@sheez-5486 4 жыл бұрын
waiting for rainy weather me who stays in International Space Station: Oh no
@leastexpected3115
@leastexpected3115 4 жыл бұрын
you can also use opensource project github .com/chubin/wttr.in for weather api, it's absolutely free
@HugoMartinez-bj1xc
@HugoMartinez-bj1xc 4 жыл бұрын
do someone get any alternative solution, could someone share it ?
@jaydonoobinactive5983
@jaydonoobinactive5983 4 жыл бұрын
But theres no snow in jamaica :((
@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
@CoolModderJaydonX
@CoolModderJaydonX Жыл бұрын
I just noticed that the player looks like a character from "Super Paper Mario." Heh.
@mohammedsaad3801
@mohammedsaad3801 3 жыл бұрын
Every one use the wethet for helping thier country PolyMars: lets make a game
@lucavoros8073
@lucavoros8073 3 жыл бұрын
I really hope that these aren't the categories 1:35
@youtissoum
@youtissoum 3 жыл бұрын
it isn't possible to use it anymore
@jojoto147
@jojoto147 4 жыл бұрын
RIP Dark Sky API...
@Cookie_Wookie_7
@Cookie_Wookie_7 4 жыл бұрын
rip dark sky
@noxious_nights
@noxious_nights 4 жыл бұрын
They need to add something like this to animal crossing pocket camp!!
@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
@landenew
@landenew 4 жыл бұрын
im in arizona. so the weather would never change 😭😭
@johnsrj
@johnsrj 3 жыл бұрын
Dark Sky no longer accepts new signups, that's a bummer
@boldey
@boldey 3 жыл бұрын
Dark sky is shut down :c
@nova5259
@nova5259 4 жыл бұрын
Try to make a game with scratch
@roz9318
@roz9318 4 жыл бұрын
Rip Dark Sky
@flightsimguy3897
@flightsimguy3897 2 жыл бұрын
cant create a acount
@teu009
@teu009 4 жыл бұрын
im glad that farming games dont work like that, cuz if they did, it would be impossible to play them on arizona
@supersillystuffs
@supersillystuffs 4 жыл бұрын
Y'all ever heard of animal crossing?
@starleaf-luna
@starleaf-luna 4 жыл бұрын
ye why
@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.
@gbgaming7724
@gbgaming7724 4 жыл бұрын
You should make this in minecraft
@DrewCoop30
@DrewCoop30 4 жыл бұрын
Hi
@marfromthestars
@marfromthestars 4 жыл бұрын
Hello
@DrewCoop30
@DrewCoop30 4 жыл бұрын
Ok buddy
@myfirerescue1965
@myfirerescue1965 3 жыл бұрын
karen screaming intesifies
Making a Game With Discord's Bot API
10:39
PolyMars
Рет қаралды 2,6 МЛН
Creating a Custom Tab System in Unity
13:45
Game Dev Guide
Рет қаралды 240 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
I Made Snake With 30,000 Players
7:28
PolyMars
Рет қаралды 555 М.
Unity3d - UnityWebRequest Get async tutorial
15:48
Coding with Carlos
Рет қаралды 27 М.
How to Use RESTful APIs In Unity [Unity Tutorial]
10:23
Comp-3 Interactive
Рет қаралды 47 М.
How To PLAN your Game as a Solo Developer
16:26
Heartbeast
Рет қаралды 542 М.
My Worst Game Dev Job
6:11
PolyMars
Рет қаралды 1,2 МЛН
10 Minutes vs. 10 Years of Animation
19:29
Isto Inc.
Рет қаралды 1,6 МЛН
I Made A Difficult Game About Climbing
15:04
Pontypants
Рет қаралды 2,3 МЛН
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,5 МЛН
How to get Good Graphics in Unity
8:14
Brackeys
Рет қаралды 1,2 МЛН
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН