####Concept
Osama & Dan O’Sullivan watch over weather changes in cities Osama’s lived in. Literally.
####Process
For this assignment I work in p5 with help of data visualization techniques taught by Moon in his workshop.
First, I create a Canvas and load an image of the globe as the background.
Next, we loadJSON via openweathermap API in setup() and declare global variables/arrays to include city names.
Declare a function cityWeatherData() where we define objects that are relevant to us:
Then, we create a callback for pushing data into array cityWeathers[].
Now we draw() data coming in from the array. We map data to fit it into canvas. I’m having trouble getting the data to map such that it aligns with the globe image in background(globe). This is what draw looks like:
Finally, ofcourse, we have to add Osama watching over weather in cities he’s lived in using a createCapture() function,