Detection of Coronal Mass Ejections at L1 and Forecast of Their Geoeffectiveness