That would be nice. The equation would need inputs that account for sunrise and sunset times, and some way to account for increasing/decreasing lux through the year, and ultimately output a number that corresponds to the lux output of my specific light sensor.
I did poke at the SunCalc driver code, trying to add equations to get it to calculate illuminance at any time of day from it, but I couldn't get it to work. Math is not my strongpoint. What that driver does is so close though, maybe I should poke at that again.
I first heard about SunCalc in a post about adjusting shades using this driver to determine when the sun would come in a window, if it was sunny out.





