  if (client.connect(server, 80)) {
    #if defined(DEVMODE)
    Serial.println("connecting...");
-   Serial.print("GET "); Serial.print("/"); Serial.print(device); Serial.print("/"); Serial.print(password);
+   Serial.print("GET ");
+   Serial.print("/api");
+   Serial.print("/"); Serial.print(device); Serial.print("/"); Serial.print(password);
    Serial.print(monthDay); Serial.print(month);Serial.print(year); Serial.print(hour);Serial.print(minute);
    #endif
    //String getRequest ="GET"+"hola"+" "
    // send the HTTP GET request:
-   client.print("GET "); client.print("/"); client.print(device); client.print("/"); client.print(password);
+   client.print("GET ");
+   client.print("/api");
+   client.print("/"); client.print(device); client.print("/"); client.print(password);
    // HTTP time
    client.print(monthDay);client.print(month);client.print(year);client.print(hour);client.print(minute);
    //http GET end

  Serial.println(server);
  if (client.connect(server, 80)) {
    client.print("GET ");
    client.print("/"); client.print(device);
    client.print("/"); client.print(password);
    client.print("/");
    //http GET end
    client.print(" HTTP/1.1");
    client.println("");

        }
        if (measure[0]==0xff && measure[1]==0x86){
          ppm = measure[2]*256+measure[3];
          co=calibrate(ppm, co_x2, co_x1, co_b);
          #if defined(DEVMODE)
          Serial.print("  [CO]:  ");
          Serial.println(ppm);
