Permalink
Browse files

mct's giant patch

Major changes:

    - Only checks for a valid code when the user hits "#", which is much more
      sane.  "*" clears the input buffer without checking it for a valid code.
      If the keypad is idle for 10 seconds, the input buffer is also cleared.

    - No longer uses of threads.  Yay.

    - Checks the mtime of the codes file to determine when it should be re-read
  • Loading branch information...
1 parent c9d613b commit 5232dad37d4f757493be02e1a6911d6c7f88a9eb @mct mct committed Aug 27, 2012
Showing with 205 additions and 261 deletions.
  1. +2 −1 baron.conf
  2. +196 −238 baron.py
  3. +0 −22 codes.txt
  4. +7 −0 codes.txt.example
View
@@ -1,12 +1,13 @@
# baron - baron.py job file
+# Sample configuration file for use with upstart (http://upstart.ubuntu.com/)
+
description "monitor door keypad"
author "Noisebridge"
start on runlevel [2345]
stop on runlevel [016]
respawn
-#expect fork
# Start the process
exec python /usr/local/share/baron/noisebridge-baron/baron.py --codefile /usr/local/share/baron/codes.txt --port /dev/ttyS5 --logfile /usr/local/share/baron/baron.log
Oops, something went wrong.

0 comments on commit 5232dad

Please sign in to comment.