Under gravity influence concentration of salt in water depends on height same as air pressuredepends on height. If we insert two electrodes in the tube, one near top and one near bottom, dueto difference in ions concentration some EMF appear between electrodes and if we close circuitthere will be some electric current flow. In such buttery plus will be on top terminal and minuson bottom terminal. If you turn it upside-down polarity will change. I think if we periodicallyturn such battery upside-down, polarity will change periodically and we can control (reverse)processes on electrodes and avoid chemical destruction. So, theoretically, such battery can havequite long life time.
Some years ago I saw an article in Nuts & Volts magazine where somebody used flowers aspower source. It said that if you connect one wire to the ground and one to the flower’s topleaves some voltage appear and very small current can be obtained. This article puzzled me a lot.It is not typical chemical battery like “lemon” battery which works similar to regular batteries.I made some information search and to my surprise found that it is well known fact...
I think everyone knows about "Drinking bird" toy (https://en.wikipedia.org/wiki/Drinking_bird). Here I would like present "modern", solid state analog Take a Peltier element and put wet rag on one side and big heat sink on the other side.Water will be evaporating from the rag and it will be cooling.This creates small (about one degree) temperature difference for several hours.Using modern DC-DC converter for energy harvesting (like LTC3108) some small electronic device can be powered e.g. clock.I also believe that it is possible build similar system with "closed cycle" where water (or perhaps some other coolant circulate inside device).This, however, presents much more serious engineering challenge.