Solar power generation for charging the electric cabinet