Anyone tried hardwiring a solar panel to the Floodlight Battery?

I have a floodlight and spotlight battery. The battery life is less than expected even with minimal activations. I picked up a solar floodlight and it is great. I haven’t had to recharge the Ring battery at all. I was wondering if anyone has tried to hardwire a solar panel to the older battery floodlight with NiMH rechargable batteries?