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 91b20d6..e621465 Binary files a/pi_temp.db and b/pi_temp_example.db differ 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!