   Serial.println("Getting " + url);
 
   client.get(url);
-
-  // if there are incoming bytes available
-  // from the server, read them and print them:
   
   // Get the JSON data
   int j = 0;
-  while (client.available()) 
-  {
+  while (client.available()) {
     char c = client.read();
     jsonStr[j++] = c;
-    Serial.print(c);
-    
   }
   jsonStr[j++] += '\0';
   
   int i = 0;
-  while(jsonStr[i])
-  {
+  while (jsonStr[i]) {
     Serial.print(jsonStr[i++]);
   }
   Serial.print("\0");

    Serial.println("delay is: " + String(delayMilliseconds));
    delay(delayMilliseconds);
    i++;
    }
}

void step3(int delayMilliseconds)
{
  if (i < steps_current_time)
    {
    digitalWrite(9, LOW);  //ENABLE CH A
    digitalWrite(8, HIGH); //DISABLE CH B
  
    digitalWrite(12, LOW);   //Sets direction of CH A
    analogWrite(3, 255);   //Moves CH A
    Serial.println("step 3");
    Serial.println("delay is: " + String(delayMilliseconds));
    delay(delayMilliseconds);
    i++;
    }
}

void step4(int delayMilliseconds)
{
  if (i < steps_current_time)
    {
    digitalWrite(9, HIGH);  //DISABLE CH A
    digitalWrite(8, LOW); //ENABLE CH B
  
    digitalWrite(13, HIGH);   //Sets direction of CH B
    analogWrite(11, 255);   //Moves CH B
    Serial.println("step 4");
    Serial.println("delay is: " + String(delayMilliseconds));
    delay(delayMilliseconds);
    i++;
    }
}

// Fill the dots one after the other with a color
//void colorWipe(uint32_t c, uint8_t wait) {
//  for(uint16_t i=0; i<strip.numPixels(); i++) {
//	strip.setPixelColor(i, c);
//	strip.show();
//	delay(wait);

  steps_current_time = steps_day;
  
  //make needle turn right speed until sunset day1
  while (i < steps_day) {
    step1(1);
    waitTime(daySteps);
    step2(1);
    waitTime(daySteps);
    step3(1);
    waitTime(daySteps);
    step4(1);
    waitTime(daySteps);
  }
  
  Serial.println("I is: " + String(i));
  Serial.println("Day 1 is over!");
  steps_current_time = steps_night;
  
//  if (i == steps_day) {
//    delay(5);
//    colorWipe(strip.Color(255, 255, 255), 1); // Red
//    delay(5);
//  }
  
  //make needle turn right speed until sunrise day2
  while (i < steps_night) {
    step1(1);
    waitTime(nightSteps);
    step2(1);
    waitTime(nightSteps);
    step3(1);
    waitTime(nightSteps);
    step4(1);
    waitTime(nightSteps);
  }
  
//  if (i == steps_night) {
//    delay(5);
//    colorWipe(strip.Color(0, 0, 0), 1); // Red
//    delay(5);
//  }
  i = 0;
}

// Get the sunrise and sunset times from openweather.org
void getSunRiseSet(String lat, String lon, uint32_t &daySteps, uint32_t &nightSteps, uint32_t &stepsToInit) {
  // Connect to server
  HttpClient client;

