Is it possible to do this in a tod sensor as well? I know you can use offsets for sunset and sunrise, but the elevation would be more useful in my case.
Yes. There are only very minor variations due to the earth’s orbit not being circular (see analemma). Also the angle the sun rises and sets stays the same throughout the year but the rise and set locations and zenith change, so local geographic features like mountains might have an effect.