The energy optimization of resource constrained energy harvesting Wireless Sensor Networks (WSN) have constituted a major research topic in recent years in areas such as environmental monitoring, hazard detection and industrial applications. Current approaches leverage techniques such as adaptive duty cycling, transmission power adaptation and data reduction methods to minimize energy consumption. However, the majority of the state of the art approaches with WSN research assume that energy generation, although variable, is not controllable in-situ to optimize energy generation. In this paper, we design a low power, low cost, open source solar tracking mechanism for energy harvesting wireless sensors. Furthermore, we formulate the dynamic energy generation system as an optimization problem and from this design an adaptive, lightweight, distributed, prediction free algorithm to maximize the energy generation of the system. Moreover, we evaluate the proposed method using a combination of real trace-driven real solar data based simulation, comparison to a centralized globally optimum solution and real world experimentation. From our evaluation, an improvement of up to 165% in energy generation has been seen when compared to traditional tracking methodologies and that the lightweight distributed implementation is, on average, 99.1% as efficient as the globally optimum solution across 28 distinct testing scenarios.