1. An apparatus for cloud tracking, the apparatus comprising: a memory; and at least one processor device, coupled to the memory, operative to: (a) obtain a time-lapsed series of sky images using a sky camera system, wherein an image of the sun is included in the time-lapsed series of sky images, the sky camera system including (i) an objective lens having a field of view of greater than or equal to 170 degrees, (ii) a spatial light modulator at an image plane of the objective lens, wherein the spatial light modulator is configured to attenuate light from objects in images captured by the objective lens, (iii) at least one anti-blooming semiconductor image sensor, and (iv) one or more relay lenses configured to project the images from the spatial light modulator to the anti-blooming semiconductor image sensor, wherein the spatial light modulator is used to attenuate the image of the sun such that the image of the sun can fit into a dynamic range of the anti-blooming semiconductor image sensor along with the time-lapsed series of sky images, and wherein a response of the sky camera system, prior to field operation, has been calibrated indoors using a calibration light source of know radiation intensity; and (b) compute I) a velocity of one or more pixels in the time-lapsed series of sky images using optical flow analysis, wherein pixels in the time-lapsed series of sky images corresponding to cloud regions have a finite velocity and pixels in the time-lapsed series of sky images corresponding to non-cloud regions have a zero velocity, and II) total solar irradiance by integrating a signal from all pixels in the time-lapsed series of sky images multiplied by an attenuation factor at corresponding pixels of the spatial light modulator and the response of the sky camera system.