From 4e408bf531d043637e8b4355eb66f273da0cc451 Mon Sep 17 00:00:00 2001 From: pihome-shc <33334232+pihome-shc@users.noreply.github.com> Date: Mon, 20 Jan 2020 19:15:27 +0000 Subject: [PATCH] Update wifigw.py changing this back as check_gw.php can not start python script. #88 --- cron/wifigw.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cron/wifigw.py b/cron/wifigw.py index 881f4aba..c9169772 100644 --- a/cron/wifigw.py +++ b/cron/wifigw.py @@ -34,13 +34,13 @@ class bc: # stty -F /dev/ttyUSB0 115200 # cat /dev/ttyUSB0 -# Initialise the database access varables -config = ConfigParser.ConfigParser() -config.read('../st_inc/db_config.ini') -dbhost = config.get('db', 'hostname') -dbuser = config.get('db', 'dbusername') -dbpass = config.get('db', 'dbpassword') -dbname = config.get('db', 'dbname') +#PiHome Database Settings Variables + + +dbhost = 'localhost' +dbuser = 'root' +dbpass = 'passw0rd' +dbname = 'pihome' con = mdb.connect(dbhost, dbuser, dbpass, dbname) cur = con.cursor()