Standalone Thingspeak and enc28j60

Hi guys,

I successfully installed standalone Thingspeak on Ubuntu. Unfortunatelly I'm stuck little bit just now :frowning: . I have been searching any usuable tips to upload data by enc28j60 into the local thngspk for last 3 days and - nothing usuable.

Every sketch for enc28j60 with ethercard library I've found contains definition of server like this:
const char website PROGMEM = "api.thingspeak.com"; (for example here)

I need to replace this domain address by IP local 192.168.0.159:3000. A plain substitution of text in brackets doesn't work. Could anybody suggest me any hint at least? How and where shall I change a mentioned code described on the hyperlink?

Eventually, this joined sketch for ESP8266 with AT comands is workable - hence I'm sure the local server is OK.

Thank you very much
Tom

.
.
.

String password = "xxxxx";                  // hidden
#define IP "192.168.0.159"                        // IP address of thingspeak.com
String GET = "GET /update?key=xxxxxT";    // hidden

.
.
.

  String cmd = "AT+CIPSTART=\"TCP\",\"";
  cmd += IP;
  cmd += "\",3000";
  esp8266Module.println(cmd);
  Serial.println(cmd);
  delay(5000);
  if(esp8266Module.find("Error")){
    if(DEBUG){
      Serial.println("ERROR while SENDING");
    }  
    return;
  }
  cmd = GET + "&field1=" + voltage1 + "&field2=" + voltage2 + "&field3=" + voltage3 + "&field4=" + voltage4 + "\r\n";
  esp8266Module.print("AT+CIPSEND=");
  esp8266Module.println(cmd.length());
  delay(15000);
  if(esp8266Module.find(">"))
  {
    esp8266Module.print(cmd);
    if(DEBUG){
      Serial.println("Data sent");
    }
  }else
  {
    esp8266Module.println("AT+CIPCLOSE");
    if(DEBUG){
      Serial.println("Connection closed");
    }  
  }