More communities are relying on solar power as a source of renewable energy, but increasing demand and climate change threaten its reliability.