 int sunrise = 366;
 int sunset = 1185;
 
-uint32_t coloredWeather[3][NUM_LEDS+2];
+//uint32_t coloredWeather[3][NUM_LEDS+2];
+byte red[3][NUM_LEDS+2];
+byte blue[3][NUM_LEDS+2];
+byte green[3][NUM_LEDS+2];
 
 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800);
 

  convertWeatherToColor();
}

void loop() {
  // put your main code here, to run repeatedly:
  for(int j=0; j<3; j++){
    
    if(j == DAYLIGHT_MODE){
      Serial.println("Daylight");
    } else if (j== TEMPERATURE_MODE){
      Serial.println("Temperature");
    } else if (j== POP_MODE){
      Serial.println("Precip");
    }
    
    for(int i=0;i<NUM_LEDS;i++){
      
      // pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
      pixels.setPixelColor(i, coloredWeather[j][i]);
      
    }
    pixels.show(); // This sends the updated pixel color to the hardware.
    delay(3000);
  }
}

void convertWeatherToColor() {

    }
    if((abs(timeOfIDX - sunrise) < 16) || (abs(timeOfIDX - sunset) < 16)){
      // first or last light
      red[DAYLIGHT_MODE][idx] = 75;
      green[DAYLIGHT_MODE][idx] = 75;
      blue[DAYLIGHT_MODE][idx] = 200;
    } else if((timeOfIDX > sunrise) && (timeOfIDX < sunset)){
      // if daylight
      red[DAYLIGHT_MODE][idx] = 128;
      green[DAYLIGHT_MODE][idx] = 128;
    } else {
      // nighttime
      blue[DAYLIGHT_MODE][idx] = 75;
    }
    //coloredWeather[DAYLIGHT_MODE][idx] = (r<<16)+(g<<8)+b;

    // Temperature
    //r = 0; g = 0; b = 0;
    byte tmp = 0; // temporary not temperature
    if(temperatures[idx/2] <= 0){
      red[TEMPERATURE_MODE][idx] = 128; 
      green[TEMPERATURE_MODE][idx] = 128;
      blue[TEMPERATURE_MODE][idx] = 255;
    } else if(temperatures[idx/2] <= 30) {
      tmp = map(temperatures[idx/2], 0, 30, 0, 128);
      red[TEMPERATURE_MODE][idx] = (128-tmp);
      green[TEMPERATURE_MODE][idx] = (128-tmp);
      blue[TEMPERATURE_MODE][idx] = 255;
    } else if(temperatures[idx/2] <= 60) {
      tmp = map(temperatures[idx/2], 30, 60, 0, 255);
      red[TEMPERATURE_MODE][idx] = 0;
      green[TEMPERATURE_MODE][idx] = tmp;
      blue[TEMPERATURE_MODE][idx] = (255-tmp);
    } else if(temperatures[idx/2] <= 90) {
      tmp = map(temperatures[idx/2], 60, 90, 0, 255);
      red[TEMPERATURE_MODE][idx] = tmp;
      green[TEMPERATURE_MODE][idx] = (255-tmp);
      blue[TEMPERATURE_MODE][idx] = 0;
    } else if(temperatures[idx/2] <= 105) {
      tmp = map(temperatures[idx/2], 90, 105, 0, 128);
      red[TEMPERATURE_MODE][idx] = (255-tmp);
      green[TEMPERATURE_MODE][idx] = 0;
      blue[TEMPERATURE_MODE][idx] = tmp;
    } else {
      red[TEMPERATURE_MODE][idx] = 128;
      green[TEMPERATURE_MODE][idx] = 0;
      blue[TEMPERATURE_MODE][idx] = 128;
    }
    //coloredWeather[TEMPERATURE_MODE][idx] = (r<<16)+(g<<8)+b;

    // Precip
    //r = 0; g = 0; b = 0;
    red[POP_MODE][idx] = 0;
    green[POP_MODE][idx] = 0;
    blue[POP_MODE][idx] = map(pops[idx/2], 0, 100, 0, 255);
    //coloredWeather[POP_MODE][idx] = (r<<16)+(g<<8)+b;
  }

}
