From 18359265339d87e99bf5309a818ccef046043718 Mon Sep 17 00:00:00 2001 From: st33v Date: Sun, 17 Jan 2016 19:24:34 +1100 Subject: write timestamp plus readings to file --- ldr-counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldr-counter.py b/ldr-counter.py index 85c980c..362ab55 100755 --- a/ldr-counter.py +++ b/ldr-counter.py @@ -62,7 +62,7 @@ def appendReading (ldrCount): # write the data f = open("ldr-readings.txt", "a") - f.write(timestamp) # , ldrCount) + f.write(timestamp + ' ' + " ".join(map(str, ldrCount)) + '\n') f.close() -- cgit v1.3