Solar powered wireless sensor networks are very adapted to smart city applications, since they can operate for extended durations with minimal installation costs. Nonetheless, they require energy management schemes to operate reliably, unlike their grid-powered counterparts. Such schemes require the forecasting of future solar power inputs for each wireless sensor node, over a time horizon. They also require the determination of battery energy parameters in real time. To address both requirements, we propose a collaborative solar power forecasting framework combined to a real time battery capacity estimation model, which can be used to optimize the node schedules over the corresponding horizon.