Which basically will mean that he is just using vars w/o declaring it first and if its not previously used when called on, is when you end up with this message.
Doing proper coding, means you declare all variable before you use them, else.....
Attached file should have a .py extension.
Edit the file, to suit your requirements, with a code editor such as scite or notepad.
Edit: Seems the attachments on other posts have appeared again. Seems like I picked good time to visit this site!
Edit: Updated to version 0.2 so that power must be off for a defined period of time before shutdown commences. This should avoid shutting down on momentarty power interuptions such as caused by engine cranking etc
Last edited by lawabb; 02-18-2011 at 12:29 AM. Reason: Update code