   server.serveStatic("/config", SPIFFS, "/config.json");
   server.serveStatic("/js/transparency.min.js", SPIFFS, "/transparency.min.js");
 
+  httpUpdater.setup(&server);
   server.begin();
 }
 

    mdns.addService("http", "tcp", 80);
  } else
    out.println("Error starting MDNS");
  
  ArduinoOTA.setHostname(cfg.hostname);
  ArduinoOTA.onStart([]() {
#ifdef DEBUG
    Serial.println("Start");
#endif
  });
  ArduinoOTA.onEnd([]() {
#ifdef DEBUG
    Serial.println("\nEnd");
#endif
  });
  ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
#ifdef DEBUG
    Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
#endif
  });
  ArduinoOTA.onError([](ota_error_t error) {
    Serial.printf("Error[%u]: ", error);
    if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
    else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
    else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
    else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
    else if (error == OTA_END_ERROR) Serial.println("End Failed");
  });
  ArduinoOTA.begin();
  
  last_fetch_conditions = -cfg.conditions_interval;
  last_fetch_forecasts = -cfg.forecasts_interval;



  static int screen = 0;

  server.handleClient();
  mdns.update();

