28 lines
605 B
Python
28 lines
605 B
Python
from flask import Blueprint,session,render_template
|
|
from app.glo import *
|
|
|
|
|
|
wrobot = Blueprint('wrobot', __name__)
|
|
|
|
@wrobot.route('/wrobot/')
|
|
def main():
|
|
|
|
device_list = GetUserDeviceIdList(session['user']['user_id'])
|
|
|
|
follow_list = {
|
|
'face': 'track_face',
|
|
# 'hand': 'track_hand',
|
|
'none': 'track_off',
|
|
}
|
|
data = {
|
|
"page_title": "%s" % ( "Wrobot") ,
|
|
|
|
"device_id": device_list[0],
|
|
|
|
"follow_id": 'face',
|
|
|
|
"device_list": device_list,
|
|
"follow_list": follow_list,
|
|
}
|
|
|
|
return render_template('/cn/aiot/wrobot.html', **data) |