def get_precipitation_forecast(points):
    """Get the precipitation forecast from forecast data.

    Parameters
    ----------
    points : list of dicts
        The forecast raw data.

    Returns
    -------
    precipitation_forecast : dict of list of dicts
        The precipitation forecast grouped by time resolution.

    """
    precipitation = [i for i in points if 'precipitation' in i]
    # The precipitation forecast have a time resolution based given
    # by its to and from values. We will first group by this.
    precipitation_forecast = {}
    for point in precipitation:
        timediff = int(
            (point['time']['to'] - point['time']['from']).total_seconds()
        )
        if timediff not in precipitation_forecast:
            precipitation_forecast[timediff] = []
        precipitation_forecast[timediff].append(point)
    return precipitation_forecast