Skip to content
applekao edited this page Dec 2, 2014 · 17 revisions

Use an external data source (local text or JSON file or from an API) in a sketch. Try drawing something based on the data or creating / modifying DOM elements with the data. Consider incorporating user input into your request from data.

For reference / inspiration I suggest reading Art and the API by Jer Thorp. For further context, take a look at some of the art projects that use APIs at Google's Dev Art. Feel free to incorporate discussion of these or other projects that use APIs into a post about your homework.

Questions

  • Pat — Running servi often results in a rogue server that would not close. I tried restarting servi but it didn't close the port. I ended up running the following to kill the port, but I don't understand what's happening. Can we go over this please?
    sudo lsof -i :ROGUE_PORT_NUMBER
    kill -9 PID_NUM_OF_ROGUE_PROCESS

  • When do browsers cache files? How can we make sure that users are viewing the correct version of the file?

  • Marc - How can I update my data and what it's driving without refreshing the page?

  • Xi - I used 'scale' to zoom in the map, but I can only see part of it. How can I add a scrollbar to see the whole map?

Luke - How to select one element in an array of JSON data? (I successfully select 7 data(elements) about the timestamp I made a google hangout. I want to select the first data (or second one etc.)). My way is used "time[1],time[2]... ", but when I console.log(time[1]), it is not working....I try to count the time interval, so I need to do some math.

Your homework links

  • Your name here - some comments about what you did
  • AJ
  • Changyeon
  • Cole
  • Jingwen
  • Karthik - (Ignore Homepage) This is the online server for my pComp project that uses routes ( /sensor/Value1/Value2) to save values to a simple database with timestamp and produce a JSON string ( /json ) to spit out the string with latest values first. A local server listens to the JSON string and pushes them to the hue lights through another API.
  • Marc - A bitcoin/gold analysis to tell us if we're living in the future!
  • Maya
  • Pat
  • Martin
  • Ross
  • Sehwan
  • Soni
  • Upasana
  • Xi-locao JSON file to store my travel data
  • Yifan
  • Luke- google hangout JSON file, find out when did you call your girl friend
Clone this wiki locally