 #endif
 
 // TimeStorage - stores the # of bytes needed to store the information
-const int timeStorage = 60 / TIMEFRAME * 60 * STORAGE_HOURS;
+const unsigned int timeStorage = 60 / TIMEFRAME * 60 * STORAGE_HOURS;
 byte storage[timeStorage];
 
 bool useNetwork = false;

#define TIMEFRAME 15

// STORAGE_HOURS defines how many hours of detailed information are stored in RAM
#define STORAGE_HOURS 2

#define SERVER_PORT 80
// *************************************

  String url = XS1_URL;
  url += (int)(storageSum(60*XS1_TIMEFRAME/TIMEFRAME)*1.25*60/XS1_TIMEFRAME);
  Serial.println("[XS1] Update URL: "+url);  

  if (networkRequestIP(ip, url) == true)
  {
    Serial.println("[XS1] updated");
