The idea brought up by Neodymium50 is correct. Movement gained, then lost due to switching of repelling to attracting. Continuous motion could only be gotten by alternating the magnet polarity. Tough mechanical problem.
Solar panels charging batteries to drive a DC motor could give you the needed rpm to drive a generator. Or a more expensive converter of DC solar to AC house current. With newer panels with parabolic lenses to converge solar energy intensity, cheaper as receiver is now smaller to catch solar rays.
I do remember seeing the Tonight show where the PM generator lit up the auditorium. He also metioned giving it a patriot's patent. So what ever happened to this unit that could be put in every home? He also mentioned exposing this nationally fearing harm. I think this idea went out with the Fish Carburator.
I would love to get off the grid, the only thing I lack is juice.