Given the sentence:
Since I have been sick for a long time, I can only go out when the weather is nice and there is the sun,
my German attempt is:
Da ich viele Zeit krank gewesen sein bin, kann ich ausgehen, nur wenn das Wetter schön ist und es die Sonne gibt.
I have some doubts on the italic phrase: is the placement of the verb correct? There of course may be other, independent errors as well.