Update path to db.
This commit is contained in:
@ -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!
|
||||||
|
Reference in New Issue
Block a user