From 4a3f6995973be4e4d0ba2af40a6ac30f03dfab5a Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 6 Dec 2016 07:46:40 -0500 Subject: [PATCH] Initial commit --- influx_frontend.py | 16 ++++++++++++++++ requirements.txt | 7 +++++++ 2 files changed, 23 insertions(+) create mode 100644 influx_frontend.py create mode 100644 requirements.txt diff --git a/influx_frontend.py b/influx_frontend.py new file mode 100644 index 0000000..fe89464 --- /dev/null +++ b/influx_frontend.py @@ -0,0 +1,16 @@ +from flask import Flask +app = Flask(__name__) +from influxdb import InfluxDBClient + +def db_main(host='localhost', port=8086): + user = 'root' + password = 'root' + dbname = 'gas' + + +@app.route('/') +def main_page(): + + return 'Hello influxers!' + +app.run(debug=True) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..11e933e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +click==6.6 +Flask==0.11.1 +itsdangerous==0.24 +Jinja2==2.8 +MarkupSafe==0.23 +pkg-resources==0.0.0 +Werkzeug==0.11.11