Natural disasters have spurred some communities and homeowners to generate their own electricity.