Blynk Solar Power weather station - Local Blynk Server

Hi,
I already have successfully made a solar powered weather station however I was having trouble connecting to my local Blynk server.

I adjusted the code however received a conflict and a little unsure how to resolve it.?

please see the *.ino attached.

however I get and error with the said conflict. Can't figure how else to get past this conflict, when the ThingSpeak code is uncommented higher up and should not interfere with this section.

exit status 1
conflicting declaration 'const char* server'

Any guidance appreciated..... I am a noob so please try to explain step by step.

Kind regards Spence

PTHsleep.h (5.05 KB)

Solar-WiFi-Weather-Station-V2.0.ino (4.93 KB)

you have two identifiers with the same name

char server[] = "192.168.0.28";  // The local IP address of your Local Server device.
// Thingspeak Write API
const char* server = "api.thingspeak.com";

Thanks, I got it working by getting rid of the whole server line and entering the server IP manually with a HTTP port. Please see my code change below. Works now and local blynk server accessible from over the internet after I forwarded the port and made additional changes to the login.

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "My WIFI"; // WiFi Router ssid
char pass[] = "MY WIFI PASSWORD"; // WiFi Router password

// Thingspeak Write API
const char* server = "XXXX";
const char* api_key = "XXXX"; // API write key 

#include "PTHsleep.h" // tab file

void setup() {
  Serial.begin(115200);
  //  Serial.begin(9600); // use this if you get errors with the faster rate
  Serial.println("\nStart of solarWiFiWeatherStationESP_12th Feb2019");

  // **************Choose Application**********************************
  
  if (App == "BLYNK")  // for posting datas to Blynk App
  { 
    Blynk.begin(auth, ssid, pass, "192.168.0.28", 8080); //Blynk.begin(auth, ssid, pass, server);