All my ebike miles for the past year have come from solar power. I don't claim that this system is very efficient, fancy, or high-tech, but it works for me. Details at:
https://kentsbike.blogspot.com/2019/04/running-ebike-on-solar-energy-sheddy.html
and...