   uint32_t now = millis();
   bool swtch = !digitalRead(SWITCH);
 
-  if (fade == dim) {
+  if (fade == cfg.dim) {
     if (swtch) {
       display_on = now;
-      fade = bright;
+      fade = cfg.bright;
       analogWrite(TFT_LED, fade);
     }
-  } else if (now - display_on > on_time) {
+  } else if (now - display_on > cfg.on_time) {
     analogWrite(TFT_LED, --fade);
     delay(25);
   } else if (swtch && now - display_on > 500) {

  });
  ArduinoOTA.begin();
  
  last_fetch_conditions = -conditions_interval;
  last_fetch_forecasts = -forecasts_interval;
}

struct Conditions {

    struct Forecast &f = forecasts[i];
    f.epoch = (time_t)atoi(day["date"]["epoch"]);
    strncpy(f.day, day["date"]["weekday_short"], sizeof(f.day));
    if (cfg.metric) {
      f.temp_high = atoi(day["high"]["celsius"]);
      f.temp_low = atoi(day["low"]["celsius"]);
      f.max_wind = day["maxwind"]["kph"];
