Update path to db.

This commit is contained in:
mattbk
2017-11-14 04:32:17 +00:00
parent ad6e09243b
commit 0b89c1a9e7

View File

@ -39,7 +39,7 @@ import sys
import Adafruit_DHT
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
#file, otherwise Cron won't be
#able to find it!