Tell us about yourself!
An arduino could be paired with a photovoltaic cell (light sensor) positioned where it could see the sky instead of using web data. If you have an arduino with lan/wifi/bt you could, but those components are expensive. You could just to sunrise/sunset with no cloud cover using an Ardiuno and a realtime clock. Pi is the easiest way to do it without having a window to put the light sensor.