Skip to content

Commit

Permalink
remove debug and readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
poelzi committed Jul 30, 2010
1 parent 73683ca commit c2beffd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
12 changes: 12 additions & 0 deletions README
Expand Up @@ -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 ==

Expand Down
2 changes: 1 addition & 1 deletion db/management/commands/uberclockd.py
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion db/models.py
Expand Up @@ -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,
Expand Down
4 changes: 0 additions & 4 deletions tools/ez_chronos.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c2beffd

Please sign in to comment.