Thanks for your replys...I installed the raspberry pi tools addon and I can build a simple circuit from fan to transistor to raspberry pi gpio for control and power from power source or raspberry pi itself 5 v pins...
Been in the addon folders...got 3 folders I assume I have to put the script in...one of these...Gpiozero,picamera and rPi...This is where it s getting complicated and not sure where I m starting from...Been using Kodi for few years now but when it comes to this kind of scripts I m hopeless...
It's really more of a fun thing I m trying then that I really need a fan
Thanks for any more help..