Problem with twitter example. Please help

Hi guys, thanks for reading. I’m a computer science student in college and i recently bought an arduino uno kit and an Ethernet shield to fool around with and try things out. I was doing well in the learning until i went to make the project that i was really excited about; I am trying to import tweets from twitter that say colors and out put it to the string of led lights that i bought. But i am truly stuck. I used the mac address on the bottom of the shield, got the IP from a program that confirms it(i had to since I’m at school so its kind of hard to acquire such things).

TweetLED Code

This code is based on the code made by Tom Igoe and is used in episode 3 of the Mike's Lab Series on Youtube.
#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 
  0x90, 0xA2, 0xDA, 0x0F, 0x3C, 0xAE };
IPAddress ip(148,137,251,15);

// initialize the library instance:
EthernetClient client;

const int requestInterval = 30000;  // delay between requests

char serverName[] = "";  // twitter URL

boolean requested;                   // whether you've made a request since connecting
long lastAttemptTime = 0;            // last time you connected to the server, in milliseconds

String currentLine = "";            // string to hold the text from server
String tweet = "";                  // string to hold the tweet
boolean readingTweet = false;       // if you're currently reading the tweet

void setup() {
  // reserve space for the strings:

// initialize serial:
  // attempt a DHCP connection:
  if (!Ethernet.begin(mac)) {
    // if DHCP fails, start with a hard-coded address:
    Ethernet.begin(mac, ip);
  // connect to Twitter:

void loop()
  if (client.connected()) {
    if (client.available()) {
      // read incoming bytes:
      char inChar =;

      // add incoming byte to end of line:
      currentLine += inChar; 

      // if you get a newline, clear the line:
      if (inChar == '\n') {
        currentLine = "";
      // if the current line ends with <text>, it will
      // be followed by the tweet:
      if ( currentLine.endsWith("<text>")) {
        // tweet is beginning. Clear the tweet string:
        readingTweet = true; 
        tweet = "";
      // if you're currently reading the bytes of a tweet,
      // add them to the tweet String:
      if (readingTweet) {
        if (inChar != '<') {
          tweet += inChar;
        else {
          // if you got a "<" character,
          // you've reached the end of the tweet:
          readingTweet = false;
          // close the connection to the server:
  else if (millis() - lastAttemptTime > requestInterval) {
    // if you're not connected, and two minutes have passed since
    // your last connection, then attempt to connect again:
   else if(tweet==">ledoff"){


void connectToServer() {
  // attempt to connect, and wait a millisecond:
  Serial.println("Connecting to server");
  if (client.connect(serverName, 80)) {
    Serial.println("Making HTTP Request");
  // make HTTP GET request to twitter:
    client.println("GET /1/statuses/user_timeline.xml?screen_name=scottjglascott&count=1 HTTP/1.1");
  // note the time of this connect attempt:
  lastAttemptTime = millis();

I found this example of just one color to test it out then i was going to expand on it and change the if statements to more colors and outputs, but nothing happens and i cant tell where it gets stuck. The way i see it, either its not getting to the internet AT ALL, its reading twitter wrong or not at all, or maybe even y wiring is messed up but i dont think that would be it. THANK YOU SOOOOO MUCH for any input at all you guys have to offer


Twitter doesn't seem to know the account "scottjglascott".

Also the 1.0 API has been turned off. You have to jump through the 1.1 API hoops:

"The Twitter REST API v1 is no longer active. Please migrate to API v1.1."