I am not aware of any ready-to-use scripts, you can most certainly write your own using something like python, or you can hire someone to do it, it shouldn't cost much because it's pretty simple, of course, depending on what parameters you need to look at it could get more complicated, I mean, fans at 70% form 1pm to 5pm and then 40% for the rest of the day will be simple.
Having to read chips' temps and initiate a timer to trigger that function and switch the fan speed accordingly will be slightly more complicated.
With that being said, if you are using custom firmware you can always use something like Awesomeminer, they have all of this stuff built in and you can make the software handle the fan speed based on many factors (temps, hashrate, time of the day, profitability, and etc), I have enough experience to write my own script but I just couldn't be bothered with reinventing the wheel, many programs already offer that for very low fees, sometimes for free if you are using their firmware.