Skip to content

Commit

Permalink
Merge pull request #24 from pihome-shc/master
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
twa127 authored Jan 21, 2020
2 parents b4e4676 + 2a2cbef commit d831d8e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cron/wifigw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d831d8e

Please sign in to comment.