Relay FAN

Not sure if I understand 100%. It does not automatically turn on/off when reaching the defined temperature (including a reasonable hysteresis)?

Generally GPIO states can be changed (low level to high level) via RPi.GPIO python module, via WiringPi which ships the gpio command, or via WebIOPi which serves a web interface to toggle GPIO states.