get forecast data and use it from frontend