Yesterday it was partly cloudy.

It was raining off/on during the night.

When I went to bed it was raining.

When I got up it was partly cloudy.