Data centers are increasingly adopting renewable energy sources to mitigate environmental impact and reduce operational costs. However, effectively optimizing energy costs remains challenging due to unpredictable workloads and fluctuating renewable energy availability. This paper introduces LOECM, a Lyapunov-driven online scheduling algorithm designed to minimize energy cost without relying on future information.