Open my ZIP file attached a few posts above. There is a README file included, with all file locations/placement and what they do.
Sorry, I'm not in the other thread, where I posted the ZIP file. I'll re-attach it, here.
Thanks. I am not looking to load the entire picture frame scripts. I like some of the features it has:
-autofan script is great to eliminate having it on 24/7
-I was going to try to see if it would be possible to add some of the code like turn on Pi with auto-start iu3 and alt-f4 turn off Pi but to be triggered when monitor is turned on & off.
There are some debug lines in the bottom part of the script. Remove the three leading '#' comment characters from the lines and it will output to the console/screen.
Thanks - do you mean this:
sleep(5) # Read the temperature every 5 sec, increase or decrease this limit if you want
except KeyboardInterrupt: # trap a CTRL+C keyboard interrupt
GPIO.cleanup() # resets all GPIO ports used by this program
Should look like this:
sleep(5)
except KeyboardInterrupt:
GPIO.cleanup()
I also notice in code it says pin = 21 which is GPIO9 on GPIO. I have my fan on 1 and 6 though. Would you have to write pin = 1 ?