Using an ESP32, an INA226 for current sensing, a light sensor (VEML7700) I (with some good AI help) made this module that can predict the solar irradiance to come and plan usage for a micro solar installation like mine. it comes and plugs around my cheap mppt, ultimately relying on its management and offer a web dashboard that helps monitor current production, and manage output availability. code is on github. full docs and newer version on gumroad for a small fee