 {
   IPAddress ip XS1_IP;
   String url = XS1_URL;
-  url += (int)(storageSum(60*XS1_TIMEFRAME/TIMEFRAME)*1.25*60/XS1_TIMEFRAME);
+  url += calculateWatt(XS1_TIMEFRAME);
 
   if (networkRequestIP(ip, url))
   {

#define WIFI_SSID "ssid"
#define WIFI_KEY "wpakey"

#define USE_XS1_SERVER
#define XS1_IP (10, 11, 10, 18)
#define XS1_URL "/control?callback=cname&cmd=set_state_sensor&number=9&value="
#define XS1_TIMEFRAME 2

}
#endif

int storageSum(unsigned int frames)
{
  int sum = 0;
  int pos = storagePointer;
