 
   const String weatherData = getRequest(weatherDataEndPoint);
 
+  if (weatherData == "0") {
+    return;
+  }
+
   JsonObject& rootJson = jsonBuffer.parseObject(weatherData);
 
   if (!rootJson.success()) {


void setupTaskManager() {
  runner.init();
  runner.addTask(taskGetWeatherData);
  runner.addTask(taskGetTransportationData);
  runner.addTask(taskScheduleDataTasks);
  taskScheduleDataTasks.enable();
  delay(5000);

const int   NtpInterval =  oneMinute;    // In miliseconds
const char* NtpAddress =  "0.ie.pool.ntp.org";

const int buttonPin = D5;
int buttonState = 0;

const size_t weatherJsonBufferSize = JSON_OBJECT_SIZE(3) + 80;
const size_t transportationJsonBufferSize = JSON_ARRAY_SIZE(3) + 3 * JSON_OBJECT_SIZE(2) + 80;

LiquidCrystal_I2C lcd(0x27, lcdWidth, lcdHeight);

WiFiUDP ntpUDP;
ESP8266WiFiMulti WiFiMulti;
NTPClient timeClient(ntpUDP, NtpAddress, NtpOffset, NtpInterval);

int lineNumber = MAXLINENUMBER;
bool getData = false;

// Callback methods prototypes
void getWeatherData();
