 	drawScreen();
 
 	synchronizeTime();
+#if !defined(API_NO_HTTPS)
 	wifiClientSecure.setCACert_P(LECertRoot, LECertRootSize);
-
-	if (!wifiClientSecure.connect(API_HOSTNAME, 443))
-	{
-		DEBUG_PRINTLN("connection failed");
-		while (true)
-		{
-			delay(500);
-		}
-	}
-	// Verify validity of server's certificate
-	if (wifiClientSecure.verifyCertChain(API_HOSTNAME))
-	{
-		DEBUG_PRINTLN("Server certificate verified");
-	} else
-	{
-		DEBUG_PRINTLN("ERROR: certificate verification failed!");
-		while (true)
-		{
-			delay(500);
-		}
-	}
-
-	String url = "/";
-	Serial.print("requesting URL: ");
-	Serial.println(url);
-
-	wifiClientSecure.print(String("GET ") + url +
-	                       " HTTP/1.1\r\n"
-	                       "Host: " API_HOSTNAME "\r\n"
-	                       "User-Agent: ESP8266\r\n"
-	                       "Connection: close\r\n\r\n");
-
-	Serial.println("request sent");
-	while (wifiClientSecure.connected())
-	{
-		String line = wifiClientSecure.readStringUntil('\n');
-		Serial.println(line);
-		if (line == "\r")
-		{
-			Serial.println("headers received");
-			break;
-		}
-	}
-	Serial.println("reply was:");
-	Serial.println("==========");
-	while (wifiClientSecure.connected())
-	{
-		String line = wifiClientSecure.readStringUntil('\n');
-		Serial.println(line);
-	}
-	Serial.println("==========");
-	Serial.println();
+#endif
 }
 
 extern "C" void esp_schedule();

	dht.humidity().getEvent(&sensorHumidity);
}

void drawScreen()
{
	String displayData;

	{
		drawScreen();
	}
	postData();

	lastButtonPressed += pauseInMs; // a little false since we are doing other, stuff, but, meh
	if (lastButtonPressed >= POWERSAVE_IN_MS)
	{
