from gpiozero import LED
#we are using the LED sub-module just as a generic output
fan = LED(18) #for the positive, put the negative in one of the grounds
f = open("/sys/class/thermal/thermal_zone0/temp")
CPUTemp = f.read()
if StringToOutput >= 45:
elif StringToOutput < 45:
This is some fairly simple code that gets the temperature from /sys/class/thermal/thermal_zone0/temp in thousandths Celsius divides by 1000 for Celsius and checks if it is more than 45. if it is it turns the "fan" on and if not , it stays off. But you'll almost certainly never need a fan as long as you're not doing anything stupid.
This code was adapted from a SE question but i am not sure which.
Un bon article de blog qui donne les astuces sur BASH notamment la recherche avec Ctrl+R ;)
Easy SVN Browser 1.07 - Easy SVN is a subversion browser via the Web.
The second and concluding part of our look at XML and Privacy examines XML standards initiatives aimed at giving users and businesses control over privacy.
3939 links, including 870 private