arduino ethernet auto post need HELP!!

Hi! i use arduino ethernet and real time module DS3231.

i need send request to server every 60s. but not working:s i use in ethernet web server

code:

#include <SPI.h>
#include <Ethernet.h>
#include <DS3231.h>
#include <Wire.h>


byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(192,168,1,177);

DS3231 Clock;
bool Century=false;
bool h12;
bool PM;
byte ADay, AHour, AMinute, ASecond, ABits;
bool ADy, A12h, Apm;

int siurblys = 0, i = 0;
String readString = String(30), readString1;
double tempC = 0, dregn = 0;

int yourarduinodata = 999;
String yourdatacolumn = "yourdata=";
String yourdata;


EthernetServer server(80);

void setup() {
  Wire.begin();
  Clock.setSecond(1);
  Ethernet.begin(mac, ip);
  server.begin();
  Serial.begin(9600);
}


void loop() {
  // listen for incoming clients
  EthernetClient client = server.available();
  if (client) {
    Serial.println("new client");
   
    boolean currentLineIsBlank = true;
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();
        
        readString += c;
        
        Serial.write(c);
        
        if (c == '\n' && currentLineIsBlank) {
          
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println("Connection: close");  // the connection will be closed after completion of the response
	  client.println();
          ProcessCheckbox(client);
          test();
          client.println("grab({");
          client.println("\"temperatura\":");
          client.println(temp());
          client.println(",\"dregnumas\":");
          client.println(dreg());
          client.println(",\"siurblys\":");
          client.println(siurblys);
          client.println("})");      
          
          readString = "";
          break;
        }
        if (c == '\n') {
          // you're starting a new line
          currentLineIsBlank = true;
        } 
        else if (c != '\r') {
          // you've gotten a character on the current line
          currentLineIsBlank = false;
        }
      }
    }
    delay(1);
    client.stop();
    Serial.println("client disonnected");
  }
  ReadDS3231();
}

void ReadDS3231(){
  int second; 
  second=Clock.getSecond();
  if(second == 0){
      Serial.println("Issiusta");    
      
    EthernetClient client;   
    client.println("GET /search?q=arduino HTTP/1.1");
    client.println("Host:192.168.1.103");
    client.println("Connection: close");
    client.println();
    delay(1000);  
  }
}

i send data in ReadDS3231 method time forks fine but but data not send:s

You left some stuff out:

          ProcessCheckbox(client);
          test();

So, I will to. Here’s what you need to do:


Besides the stuff PaulS mentioned, there is this:

    EthernetClient client;   
    client.println("GET /search?q=arduino HTTP/1.1");
    client.println("Host:192.168.1.103");
    client.println("Connection: close");
    client.println();

Where are you connecting to the server? You need something like this:

EthernetClient client;   
IPAddress server(192,168,1,2);

if(client.connect(server,80)) {
    client.println("GET /search?q=arduino HTTP/1.1");
    client.println("Host: 192.168.1.177");
    client.println("Connection: close");
    client.println();

   while(client.connected()) {
      while(client.available()) {
         Serial.write(client.read());
      }
   }
   client.stop();
}

Not working:s