meteo-core/src/main/java/no/api/meteo/service/locationforecast/extras/LongtermForecastHelper.java
public MeteoExtrasLongTermForecast createSimpleLongTermForecast() throws MeteoException {
        List<MeteoExtrasForecastDay> forecastDays = new ArrayList<>();
        ZonedDateTime dt = getNow();
        for (int i = 0; i <= 6; i++) {
            ZonedDateTime dti = dt.plusDays(i);
            if (getIndexer().hasForecastsForDay(dti)) {
                MeteoExtrasForecastDay mefd = createSimpleForcastForDay(dti);
                if (mefd != null && mefd.getForecasts().size() > 0) {
                    forecastDays.add(mefd);
                }
            }
        }
        return new MeteoExtrasLongTermForecast(forecastDays);
    }
public MeteoExtrasLongTermForecast createSimpleLongTermForecast() throws MeteoException {
        List<MeteoExtrasForecastDay> forecastDays = new ArrayList<>();
        ZonedDateTime dt = getNow();
        for (int i = 0; i <= 6; i++) {
            ZonedDateTime dti = dt.plusDays(i);
            if (getIndexer().hasForecastsForDay(dti)) {
                MeteoExtrasForecastDay mefd = createSimpleForcastForDay(dti);
                if (mefd != null && mefd.getForecasts().size() > 0) {
                    forecastDays.add(mefd);
                }
            }
        }
        return new MeteoExtrasLongTermForecast(forecastDays);
    }
public MeteoExtrasLongTermForecast createSimpleLongTermForecast ( ) throws MeteoException { List < MeteoExtrasForecastDay > forecastDays = new ArrayList <> ( ) ; ZonedDateTime dt = getNow ( ) ; for ( int i = 0 ; i <= 6 ; i ++ ) { ZonedDateTime dti = dt . plusDays ( i ) ; if ( getIndexer ( ) . hasForecastsForDay ( dti ) ) { MeteoExtrasForecastDay mefd = createSimpleForcastForDay ( dti ) ; if ( mefd != null && mefd . getForecasts ( ) . size ( ) > 0 ) { forecastDays . add ( mefd ) ; } } } return new MeteoExtrasLongTermForecast ( forecastDays ) ; }
Create a longterm forecast, but only with a small subset of the weather data fields. Typically for use in simple
weather reports where you only show the predicted weather icon and temperature, and not all the weather details.

@return A long term forecast, which is a week in our view of the world.

@throws MeteoException
If an error occurred while creating the simple longterm forecast.
Create a longterm forecast but only with a small subset of the weather data fields . Typically for use in simple weather reports where you only show the predicted weather icon and temperature and not all the weather details .