turning dreams into reality

Lights, Camera, … API

This was quite a struggle this week as I have never used API’s before.  I have always wanted to, but as like most things in my life, I have been too scared to actually learn how they work.  Well, as it so happened, the assignment for the week was to create a sketch using an external source.  I had a very hard time actually finding API’s that really fit my passion for sports.  ESPN has placed quite a few roadblocks to obtain their API’s and at least from my understanding – – it is no longer possible to obtain their data.  Am I completely wrong, by chance?  If so, any help in finding these JSON files of this information would be much appreciated.

Nonetheless, after some troubleshooting/signing up for random sites with the API’s that I wanted, I landed on the New York Times website.  As per one of Shiffman’s last videos, I followed the steps in obtaining an API key and how to properly gather data from the New York Times.  While, I could not find a sports API, I decided to instead use the movie API as film has always been a strong passion of mine.  I obtained the data of all of the movies listed on this site and then set out to incorporate the information into a simple p5 sketch.

Again, following step by step based on yet another Shiffman video, I created a button and text field to search for the movies in my sketch.  After preloading a stock image as a background, my sketch was pretty much set.  It is quite boring to look at and will only refresh when you hit stop in the editor.  Also, the text is not appearing next to the stock photo of Linoln like I had hoped.  Instead, you will have to scroll down to underneath the photo to see the actual text summaries.  Is this a CSS issue that can easily be altered?

For the time being, here is the API sketch in progress:

Here is the p5 code:

screen-shot-2016-10-27-at-2-54-15-pm

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Final Project == 4.0

Well, the day has finally come.  Alex, Katie and I have spent the past couple of weeks working together on what seemed like an inconceivable idea considering our collective aptitude in physical computing and processing, but we finally crossed the finish line.  Alex and I are set to present tomorrow and we will be in the winter show over the weekend.  While there are still a few bugs to adjust in the interim, we are confident that we will have those fixed by the time it will be shown to the world (or at least whoever comes to the show on Sunday and Monday).

Unity Dancing

This was my first experiment with Unity and I must say that I actually really enjoyed it.  While obviously there is still a lot to learn, I was amazed how quickly I was able to grasp everything at a basic level.  This may not be the most graceful video ever made, but I am controlling the three movements with different key strokes.

Dancing in a meadow below: