adding stuff

This commit is contained in:
David Bryan 2019-10-21 20:58:57 +01:00
parent 56929e4892
commit 4dca4a3174
2 changed files with 8 additions and 7 deletions

1
app.py Symbolic link
View file

@ -0,0 +1 @@
proxmark3-web.py

View file

@ -9,7 +9,7 @@ from flask import Flask, flash, redirect, render_template, \
from datetime import datetime
debug=1
debug=0
proxmark3_rdv4_dir='/home/pi/proxmark3'
proxmark3_rdv4_client=proxmark3_rdv4_dir + '/client/proxmark3'
logfile = "/home/pi/card-reads.log"
@ -21,7 +21,7 @@ def get_card_data(data):
for line in data.split("\n"):
if("TAG ID:" in line):
print(str(line.strip()))
line.split()
if debug: line.split()
cardsplit = line.split()
card_data = {}
card_data['raw_cardnumber'] = str(cardsplit[5])
@ -57,11 +57,11 @@ if(True):
app = Flask(__name__, instance_relative_config=True)
# create and configure the app
app = Flask(__name__, instance_relative_config=True)
app.config.from_mapping(
SECRET_KEY='abc123',
DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'),
)
# app = Flask(__name__, instance_relative_config=True)
# app.config.from_mapping(
# SECRET_KEY='abc123',
# DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'),
# )
# if test_config is None:
# # load the instance config, if it exists, when not testing