This video looks at how to query at API continuously while a p5.js sketch is running using setInterval.
All examples: https://github.com/shiffman/Video-Lesson-Materials
Contact: https://twitter.com/shiffman
JavaScript basics:
HTML/CSS basics:
Full Data playlist:
Help us caption & translate this video!
http://amara.org/v/Qbtz/
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
Original source
23 responses to “10.7: API Query with JavaScript setInterval() – p5.js Tutorial”
Very good series of videos, I guess I will watch all of your videos, they are entertaining and informative π
I love you! You Make difficult interesting
#sleepingMouse
I m studying ur video just to realize my dream to become a programmer Ty mentor
#shiftmantutu checking in
I canβt resist #sleepingmouse excellent explanation, as I exploring p5.js with my particle photon, learnt a lot
Isn't the space station going the wrong way?
All the NASA maps that track it show it going from east to west
#sleepingmouseshiffman
You're literally the best teacher ever. I'm learning so much thank you endlessly!!
"I don't know what tense I'm in anymore." I felt this on a spiritual level haha
If you're using the p5 web editor for this you'll have to find a secure HTTP (HTTPS) source, there's a site you can google (wheretheiss.at) for this.
#Shiffmantutu #mymentor
Just want to say thank you so much!
Great video !! For those people who is look at the video and trying to use iss api locator. try this url instead "https://api.wheretheiss.at/v1/satellites/25544" looks like p5js forces "https" and doesnot take "http" for security thingy.
#sleepingmouse
Dan I'm enjoying your videos so so much. Thank you !
I have one question about this one – what is the role of the 'data ' argument in the function gotData(data)?
I mean, I understand what it's doing there (I.e. receiving the URL info), but why it's doing that, or where that argument actually gets used, just doesn't seem intuitive to me. The data argument isn't used anywhere else in the code. I watched earlier videos on arguments / parameters but still can't make sense of this one.
Maybe I'm overthinking. any tips grately appreciated π
Hi,Thanks for the video and explaining very easy way.Can you plz explain what is P5? I was trying to use but not able to do.
asskiss? π thehehe
can't ask Stephen Hawking anymore ):
what's the difference between this and the Geolocation API
ask iss = as & kiss = askiss is that … what i think it is?
awesome
he is doing cocaine, or meth, i`m sure