convertWeatherDataToObject (weatherData, coordinates) {
		let currentWeather = new WeatherObject();

		currentWeather.date = moment(weatherData.validTime);
		currentWeather.updateSunTime(coordinates.lat, coordinates.lon);
		currentWeather.humidity = this.paramValue(weatherData, "r");
		currentWeather.temperature = this.paramValue(weatherData, "t");
		currentWeather.windSpeed = this.paramValue(weatherData, "ws");
		currentWeather.windFromDirection = this.paramValue(weatherData, "wd");
		currentWeather.weatherType = this.convertWeatherType(this.paramValue(weatherData, "Wsymb2"), currentWeather.isDayTime());
		currentWeather.feelsLikeTemp = this.calculateApparentTemperature(weatherData);

		/*
		 * Determine the precipitation amount and category and update the
		 * weatherObject with it, the valuetype to use can be configured or uses
		 * median as default.
		 */
		let precipitationValue = this.paramValue(weatherData, this.config.precipitationValue);
		switch (this.paramValue(weatherData, "pcat")) {
			// 0 = No precipitation
			case 1: // Snow
				currentWeather.snow += precipitationValue;
				currentWeather.precipitationAmount += precipitationValue;
				break;
			case 2: // Snow and rain, treat it as 50/50 snow and rain
				currentWeather.snow += precipitationValue / 2;
				currentWeather.rain += precipitationValue / 2;
				currentWeather.precipitationAmount += precipitationValue;
				break;
			case 3: // Rain
			case 4: // Drizzle
			case 5: // Freezing rain
			case 6: // Freezing drizzle
				currentWeather.rain += precipitationValue;
				currentWeather.precipitationAmount += precipitationValue;
				break;
		}

		return currentWeather;
	}
Converts the returned data into a WeatherObject with required properties set for both current weather and forecast.
The returned units is always in metric system.
Requires coordinates to determine if its daytime or nighttime to know which icon to use and also to set sunrise and sunset.
@param {object} weatherData Weatherdata to convert
@param {object} coordinates Coordinates of the locations of the weather
@returns {WeatherObject} The converted weatherdata at the specified location