Keep db away from git.

This commit is contained in:
mattbk
2017-11-16 02:58:36 +00:00
parent 8499c457fd
commit a9cff8ba29
4 changed files with 2 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
pi_temp.db

View File

BIN
pi_temp.db → pi_temp_example.db Executable file → Normal file

Binary file not shown.

View File

@ -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!