     tft.println(cfg.hostname);
     tft.println(F("to configure WiFi"));
   } else {
-
     DBG(println());
     DBG(print(F("Connected to ")));
     DBG(println(cfg.ssid));

  tft.print(F("dim: "));
  tft.println(cfg.dim);
  if (debug)
    tft.println("DEBUG");

  WiFi.mode(WIFI_STA);
  WiFi.hostname(cfg.hostname);

#define TFT_LED D2
#define SWITCH D3

bool debug;
TFT_ILI9163C tft = TFT_ILI9163C(CS, DC);
MDNSResponder mdns;
ESP8266WebServer server(80);
ESP8266HTTPUpdateServer httpUpdater;

uint32_t last_fetch_conditions = 0, last_fetch_forecasts = 0;
uint32_t display_on = 0;
