From 1a6c45164d4e1579af81971e5c573c1c34dd4ccd Mon Sep 17 00:00:00 2001 From: st33v Date: Thu, 15 Jun 2017 18:03:23 +1000 Subject: overdue cleanup --- ldr-counter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ldr-counter.py') diff --git a/ldr-counter.py b/ldr-counter.py index 362ab55..a399457 100755 --- a/ldr-counter.py +++ b/ldr-counter.py @@ -61,7 +61,7 @@ def appendReading (ldrCount): timestamp = datetime.now(timezone.utc).astimezone().isoformat() # write the data - f = open("ldr-readings.txt", "a") + f = open("/home/st33v/sense/light/ldr-readings.txt", "a") f.write(timestamp + ' ' + " ".join(map(str, ldrCount)) + '\n') f.close() @@ -70,10 +70,10 @@ def appendReading (ldrCount): obs=list() # an empty list for num in range(0, obsCount): obs.append(RCtime()) - print(obs) +# print(obs) -print("sum=", sum(obs)) -print("Ave time: ", sum(obs)/obsCount) # Measure timing using GPIO4 +#print("sum =", sum(obs)) +#print("Ave time: ", sum(obs)/obsCount) # Measure timing using GPIO4 appendReading(obs) -- cgit v1.3