Raspberry Pi 5 with ollama cooling fan hack

I got ollama and webui running on a Raspberry Pi 5 w 8gb RAM but didn’t get a cooling fan. It was getting up to 120 degrees while responding so I needed one. I had an old laptop fan so I connected that to 5v and GND and directed it down on the Pi with a 3d printed case mod. The fan does the job—keeps the max temp at about 98—but it’s noisy so I added a relay and a script for the fan to turn on when the temp is above 90 and turn off when it drops back down. It’s pretty awesome to see the fan start when it’s working hard computing and stop when it’s done.