Skip to main content
8 events
when toggle format what by license comment
Nov 3, 2015 at 0:15 comment added brainiak4431 I finally figured it out. Just a simple syntax problem ruined the whole thing. The checks to see which argument was passed at command line and then run the function was wrong. if gate_command is "open": should really be if gate_command == "open": Now the functions are called properly.
Nov 3, 2015 at 0:02 comment added brainiak4431 I've narrowed down the problem in the code. It is the very last section: starting with # Call functions. I can''t figure it out but there is something wrong with the if statements not calling the functions at all.
Nov 2, 2015 at 9:55 comment added brainiak4431 I took out all the logging and all the exceptions. I even tried changing the pin to BCM4. It's just not working.
Nov 2, 2015 at 9:23 comment added joan I suspect the logging is failing, causing the catchall except to be called.
Nov 2, 2015 at 9:20 comment added brainiak4431 That's the other thing. The log file is being created but nothing is getting logged. Somewhere in my code there is a problem after the GPIO command is set, but before any logging takes place. I don't know if it's the exception handling? I'm going to try taking out all the try and except stuff.
Nov 2, 2015 at 9:16 comment added joan Yes, sorry, I didn't read the code carefully enough. I still suspect cleanup is being called. What do the logs contain?
Nov 2, 2015 at 9:05 comment added brainiak4431 I don't understand. If I run sudo python3 myfile.py holdopen it should use the function the gate_hold_open() which doesn't have a cleanup before exiting.
Nov 2, 2015 at 8:53 history answered joan CC BY-SA 3.0