A major component of this project is feeding Arduino Twitter data for rotating the crank of the knitting machine.
The current workaround is parsing the JSON data from Twitter using a nodeJS server. The Twitter Search API is pulling #rain within a mile of NYC. The results are then stored in an array.
Arduino executes a GET request to the server, which then pulls the number of tweets stored in the array. Right now the Arduino is rate-limited to pulling 10 tweets per request due to the amount of people mentioning #rain.
As a side note, the Twitter Search API is spotty in its success. While it finds #rain successfully, the “near” property seems to be unreliable. Fixing an exact longitude and latitude might help retrieving more reliable results.
The server is hosted on Heroku.