#!/usr/bin/python3 from flask import Flask from flask import url_for from flask import render_template app = Flask(__name__) @app.route('/') def myCar_root(): return 'myCar project Page' @app.route('/bluetooth/controller') def myCar_bluetooth_controller(): # this method will return available bluetooth devices as a list for the web template output import bluew #return len(bluew.controllers()) return render_template('bluetooth/controller.html', bt_ctrl=bluew.controllers()) @app.route('/bluetooth/devices') def myCar_bluetooth_devices(): # this method will return available bluetooth devices as a list for the web template output import bluew #return len(bluew.controllers()) return render_template('bluetooth/devices.html', bt_dev=bluew.devices())