By attaching a transparent nanogenerator to a silicon solar cell, researchers have designed a device that harvests solar energy in sunny conditions and the mechanical energy of falling raindrops in rainy conditions. The dual functionality may provide a way to harvest energy with greater consistency in the midst of constantly changing weather conditions.