Dimly: The stars shone dimly through the thick clouds. (emphasizes faintness)
Faintly: The stars shone faintly, barely visible through the cloud cover. (emphasizes barely noticeable)
Sporadically: The stars shone sporadically through the breaks in the clouds. (emphasizes intermittent appearance)
Weakly: The stars shone weakly, their light struggling to penetrate the clouds. (emphasizes lack of strength)
Pitifully: The stars shone pitifully, their light swallowed by the darkness. (emphasizes sadness of the situation)
Glimmeringly: The stars shone glimmeringly, their light flickering through the clouds. (emphasizes subtle, intermittent light)
The best choice depends on the specific effect you want to create in your writing.