The impact of weather on solar power generation