EUV imaging and spectroscopy for improved space weather forecasting