Raspberry Pi fan controller.
This repository provides scripts that can be run on the Raspberry Pi that will monitor the core temperature and start the fan when the temperature reaches a certain threshold.
Added a feature that creates a minimum runtime for the fan. This avoids the constant cycling.
To use this code, you'll have to install a fan. The full instructions can be found on the guide: Control Your Raspberry Pi Fan (and Temperature) with Python.