How to say it was raining when i woke up, but by afternoon the sky had cleared up and the sun was shining. in French

1)il pleuvait lorsque je me levai, mais à l'après-midi, le ciel s'était éclairci et le soleil brillait.    
0
0
Translation by sacredcelticConnect Error: Too many connections