by eigma · 5y ago · 0 comments
Well, it's more complicated than that. We have to consider daily maximums and minimums, as well as deviation of daily temperature from your ideal. But you get the idea. Read the code for the gory details!
Related HN thread that prompted me to post this: https://news.ycombinator.com/item?id=27841209
Enjoy!
Contact: cronos586@gmail.com