Permalink
Browse files

remove debug and readme update

  • Loading branch information...
1 parent 73683ca commit c2beffd9d7dffdbc88ea2dbcfc4725cf0ee17da8 @poelzi committed Jul 30, 2010
Showing with 13 additions and 6 deletions.
  1. +12 −0 README
  2. +1 −1 db/management/commands/uberclockd.py
  3. +0 −1 db/models.py
  4. +0 −4 tools/ez_chronos.py
View
@@ -11,6 +11,18 @@ UberClock is a alarm clock that is designed for more advanced sleep.
• django 1.2
• django-piston
+== Install ==
+
+To install the database run:
+
+ ./manage.py installdb
+
+Now you have a default user named "user" with password "user".
+
+== Run ==
+To run the daemon run:
+
+ ./uberclockd
== Architecture ==
@@ -52,7 +52,7 @@ def ez_chronos(self, *args, **options):
continue
pv = DBWriter(ser, clock=self.clock)
- pv.debug = 1
+ pv.debug = 0
pv.reset()
pv.start_ap()
try:
View
@@ -572,7 +572,6 @@ def smpl_0x04(self, data):
"""
Start new session
"""
- print "04", repr(data)
mdata = self.get_smpl_data(data)
ident = "0x%02x%02x" %(ord(mdata[0]), ord(mdata[1]))
device, created = Detector.objects.get_or_create(ident=ident,
View
@@ -174,9 +174,7 @@ def sync(self):
#self.stream.read()
for i in xrange(10):
res = self.send_read(BM_GET_STATUS, [0x00])
- print self.dstr(res)
res = self.send_read(BM_RESET, [])
- print self.dstr(res)
#self.stream.read()
def read(self, ln=None):
@@ -219,9 +217,7 @@ def start_ap(self):
self.send_read(BM_START_SIMPLICITI)
for i in xrange(10):
res = self.send_read(BM_GET_SIMPLICITIDATA, [0x00, 0x00, 0x00, 0x00])
- print self.dstr(res)
res = self.send_read(BM_GET_STATUS, [0x00])
- print self.dstr(res)
def stop_ap(self):
#The start access point command needs to come before the stop access point command

0 comments on commit c2beffd

Please sign in to comment.