Science Daily has our bases covered with the invention of photoelectric cells that create power from sunlight, and the motion of falling rain:
For the conversion of solar energy to electricity, the team from the Ocean University of China (Qingdao) and Yunnan Normal University (Kunming, China) developed a highly efficient dye-sensitized solar cell. In order to allow rain to produce electricity as well, they coated this cell with a whisper-thin film of graphene.
…
In aqueous solution, graphene can bind positively charged ions with its electrons (Lewis acid-base interaction). This property is used in graphene-based processes to remove lead ions and organic dyes from solutions.
This phenomenon inspired researchers working with Qunwei Tang to use graphene electrodes to obtain power from the impact of raindrops. Raindrops are not pure water. They contain salts that dissociate into positive and negative ions. The positively charged ions, including sodium, calcium, and ammonium ions, can bind to the graphene surface.
—
And, abridged version, when you’ve got positive and negative ions next to each other, you’ve got electric current.