> I wrote this program that hooks up to a webcam. It takes a photo out the window every five minutes, and it will upload that to a server. The server then reads the sky portion of the photo, and it goes pixel by pixel. What it does is it takes all those values, the RGB values, and it averages them. So what you are seeing is not the dominant color in the sky it’s actually just the average color.
Mike Bodge's personal website:https://bod.ge/
Recent tweet by author: https://twitter.com/mikebodge/status/1666507978663690240
Here's also a submission from a decade ago (2011): https://news.ycombinator.com/item?id=2685621
Shameless plug: Assisted by my HNRelevant browser extension
[1] https://www.villagevoice.com/2011/06/23/mike-bodge-nskyc-cre...
Average raw RGB gives you bad results.
If you're enthusiastic about the project, maybe consider DMing the author on Twitter to discuss it with him
[0] https://twitter.com/mikebodge/status/1666541169273372672