From a9cff8ba29de2325f4e441f205034dc298ae8dca Mon Sep 17 00:00:00 2001 From: mattbk Date: Thu, 16 Nov 2017 02:58:36 +0000 Subject: [PATCH] Keep db away from git. --- .gitignore | 1 + lab_app.db | 0 pi_temp.db => pi_temp_example.db | Bin 95232 -> 95232 bytes pi_temp_logger.py | 2 +- 4 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 lab_app.db rename pi_temp.db => pi_temp_example.db (98%) mode change 100755 => 100644 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a9b2577 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pi_temp.db diff --git a/lab_app.db b/lab_app.db deleted file mode 100644 index e69de29..0000000 diff --git a/pi_temp.db b/pi_temp_example.db old mode 100755 new mode 100644 similarity index 98% rename from pi_temp.db rename to pi_temp_example.db index 91b20d6a48c749d353f73a80d35b82bbc4708cfc..e621465d45b5467a376073554fe98f445c949996 GIT binary patch delta 141 zcmZp8!P@YGb%HeGnTayajAt4Xwk9wx$!3;d*fE*i#Asqsy|O~5D~mBdyODvRxvrt1 zuA!NNfsvJ|iIuUTp+lfJm$R|4@$|rAMw#v3a~OG<1=yJN7?|%e?_!?LT*4g4thZgU VfKiHB0iP*;YH116{fZek0Ra1#Bzyn> delta 73 zcmZp8!P@YGb%HeG>4`GVjHeqDwk9wx$z~R3xILNO#9(64lIelPj56E5=P>dz^RY4q bGBDp|-o-qfxr8}zyJ7)QaAJcINXdEt#qbzm diff --git a/pi_temp_logger.py b/pi_temp_logger.py index e529182..17091aa 100755 --- a/pi_temp_logger.py +++ b/pi_temp_logger.py @@ -39,7 +39,7 @@ import sys import Adafruit_DHT def log_values(sensor_id, temp, hum): - conn=sqlite3.connect('/home/pi/Documents/pi-temp/pi-temp.db') #It is important to provide an + conn=sqlite3.connect('/home/pi/Documents/pi-temp/pi_temp.db') #It is important to provide an #absolute path to the database #file, otherwise Cron won't be #able to find it!