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)