10.7: API Query with JavaScript setInterval() – p5.js Tutorial




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”

  1. 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 πŸ™‚

Leave a Reply