Solar panels connected to energy storage system for nighttime electricity