Hotels generate electricity from solar energy by installing solar panels on the ground or rooftops. Solar panel installation takes around three weeks, so hotels won't have to shut down during the construction period.