Energy system for public truck charging