convertWeatherDataGroupedBy (allWeatherData, coordinates, groupBy = "day") {
		let currentWeather;
		let result = [];

		let allWeatherObjects = this.fillInGaps(allWeatherData).map((weatherData) => this.convertWeatherDataToObject(weatherData, coordinates));
		let dayWeatherTypes = [];

		for (const weatherObject of allWeatherObjects) {
			//If its the first object or if a day/hour change we need to reset the summary object
			if (!currentWeather || !currentWeather.date.isSame(weatherObject.date, groupBy)) {
				currentWeather = new WeatherObject();
				dayWeatherTypes = [];
				currentWeather.temperature = weatherObject.temperature;
				currentWeather.date = weatherObject.date;
				currentWeather.minTemperature = Infinity;
				currentWeather.maxTemperature = -Infinity;
				currentWeather.snow = 0;
				currentWeather.rain = 0;
				currentWeather.precipitationAmount = 0;
				result.push(currentWeather);
			}

			//Keep track of what icons have been used for each hour of daytime and use the middle one for the forecast
			if (weatherObject.isDayTime()) {
				dayWeatherTypes.push(weatherObject.weatherType);
			}
			if (dayWeatherTypes.length > 0) {
				currentWeather.weatherType = dayWeatherTypes[Math.floor(dayWeatherTypes.length / 2)];
			} else {
				currentWeather.weatherType = weatherObject.weatherType;
			}

			//All other properties is either a sum, min or max of each hour
			currentWeather.minTemperature = Math.min(currentWeather.minTemperature, weatherObject.temperature);
			currentWeather.maxTemperature = Math.max(currentWeather.maxTemperature, weatherObject.temperature);
			currentWeather.snow += weatherObject.snow;
			currentWeather.rain += weatherObject.rain;
			currentWeather.precipitationAmount += weatherObject.precipitationAmount;
		}

		return result;
	}
Takes all the data points and converts it to one WeatherObject per day.
@param {object[]} allWeatherData Array of weatherdata
@param {object} coordinates Coordinates of the locations of the weather
@param {string} groupBy The interval to use for grouping the data (day, hour)
@returns {WeatherObject[]} Array of weatherobjects