Skip to content

Commit

Permalink
Donw with the Project
Browse files Browse the repository at this point in the history
  • Loading branch information
antu12 authored and antu12 committed Dec 2, 2016
1 parent 83cbd62 commit 03acc4e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CodePi/db_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#This is for To open the Connection

def openConn():
return mysql.connector.connect(user='root', password='', host='192.168.1.116', database='CSE360')
return mysql.connector.connect(user='root', password='Nopassword01', host='172.16.34.36', database='CSE360')
def openlocal():
return mysql.connector.connect(user='root', password='root', host='localhost', database='pi_counter')

Expand Down
Binary file modified CodePi/db_helper.pyc
Binary file not shown.
7 changes: 5 additions & 2 deletions CodePi/ip.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import requests
def getCourse():
slot = requests.get("http://192.168.1.116/NKTR/getCourseid/getcourse.php")
slot = requests.get("http://172.16.34.36/NKTR/getCourseid/getcourse.php")
if slot.status_code!=200:
return "error"
else:
print slot.content
return slot.content

def getDate():
date=requests.get("http://192.168.1.116/NKTR/getCourseid/getDate.php")
date=requests.get("http://172.16.34.36/NKTR/getCourseid/getDate.php")
print date
return date.content
#getCourse()
Binary file modified CodePi/ip.pyc
Binary file not shown.

0 comments on commit 03acc4e

Please sign in to comment.