Squarespace Portfolio
×
Home About Me Weekly Projects Final Project

Since I had been at CHITag all weekend, I wanted to use the little time I had to do some research into my final for this week. Last week for week 8, I essentially mocked up the kind of interaction I needed to replicate (aka, certain threshold difference triggers different vibration levels), but now I wanted to play around the the use of the CTAs APIs as an input to drive a vibration output.

chitag trackerapiinfo

I did a lot of random research, and found out that I can use python to pull the APIs from the internet and my given key. At first, I tested just reading the arrival time for trains at the Fullerton station with the given stop ID.

fullertonid ctaapis firstpythontest

Having gotten the Fullerton test working, I also tried to test out the Jackson trains using a specific stop ID (for the red line) instead of the generic station ID.

jacksonid secondpythontest

Okay, so the next step... Since I did all of the work last week settign up my vibration motor, I want to see if I can use what I already have and connect it to my API setup on python.

week8setup

I first tried to at least connect what I had with Arduino to my python code. I also changed the interval and made it larger, since before I had a fairly small interval of time between trains. The connection worked, but my motor did not vibrate.

pythonfail