Initial commit
This commit is contained in:
parent
3b9935756c
commit
4a3f699597
16
influx_frontend.py
Normal file
16
influx_frontend.py
Normal file
@ -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)
|
7
requirements.txt
Normal file
7
requirements.txt
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user