Update path to db.

This commit is contained in:
mattbk committed 2017-11-14 04:32:17 +00:00
1 parent ad6e09243b
commit 0b89c1a9e7
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ import sys
import Adafruit_DHT import Adafruit_DHT
def log_values(sensor_id, temp, hum): def log_values(sensor_id, temp, hum):
conn=sqlite3.connect('/var/www/lab_app/lab_app.db') #It is important to provide an conn=sqlite3.connect('/home/pi/Documents/Pi-Temp/lab_app/lab_app.db') #It is important to provide an
#absolute path to the database #absolute path to the database
#file, otherwise Cron won't be #file, otherwise Cron won't be
#able to find it! #able to find it!