https://forums.wyze.com/t/my-attempt-at-a-self-powered-wildlife-cam/154743
Perhaps this will give you some ideas.