     String httpQuery = "GET /proxy-arduino/proxy.php?apiKey=" + apiKey + "&station=" +  myStations[currentIndex] + " HTTP/1.1";
     client.println(httpQuery);
     client.println("HOST: adrienbaptiste.com");
-    client.println();
-
-    int sizeStations = sizeof(myStations) / sizeof(int);
-    currentIndex++;
-
-    if (currentIndex == (sizeStations)) {
-      currentIndex = 0;
-    }
+    client.println();    
 
     startParse = false;
     endParse = false;

JsonParser<4> parser;
String jsonData = "";
int myStations[] = { 20024, 20025, 20026 };
int currentIndex = 0;
String apiKey = "833f7a451533ba92a04cf8fcbb840fff9612cae8";

const unsigned long requestInterval = 2000; // delay between requests
unsigned long lastAttemptTime = 0;

boolean startParse = false;
boolean endParse = false;

void setup() {

  Serial.begin(9600);
  while (!Serial) {

      if (!hashTable.success()) {
        Serial.println("parsing failed");
      }
      
      int availableBikes = hashTable.getLong("available_bikes");
      
      Serial.println(myStations[currentIndex]);
      Serial.println(availableBikes);
       
      if (availableBikes == 0) {
          digitalWrite(myLedStations[currentIndex], LOW);
           Serial.println("ZRO");
      } else {
         digitalWrite(myLedStations[currentIndex], HIGH);
         Serial.println(myLedStations[currentIndex]);
      }
      
     

      currentIndex++;
      
      if (currentIndex == (sizeof(myStations) / sizeof(int))) {
        currentIndex = 0;
      }
      
      client.stop();
    }
  } 
