deploy.py
1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#-*- coding: utf-8 -*-
from flask import Flask, render_template, request, url_for
#from getDatos.py import SeleniumGet as SG
app = Flask(__name__)
data = {
"header" : {
"dominio" : "dom",
"fecha" : "15-01-2019",
},
"alineador" : {
"eje_delan" : "0.000"
},
"suspension" : [
{
"ren_izq" : "0.000",
"peso" : "0.000",
"ren_der" : "0.000",
},
{
"ren_izq" : "0.000",
"peso" : "0.000",
"ren_der" : "0.000",
}
],
"frenos" : [
{
"f_izq" : "0.000",
"res_izq" : "0.000",
"ov_izq" : "0.000",
"peso" : "0.000",
"f_der" : "0.000",
"res_der" : "0.000",
"ov_der" : "0.000",
},
{
"f_izq" : "0.000",
"res_izq" : "0.000",
"ov_izq" : "0.000",
"peso" : "0.000",
"f_der" : "0.000",
"res_der" : "0.000",
"ov_der" : "0.000",
},
{
"f_izq" : "0.000",
"res_izq" : "0.000",
"ov_izq" : "0.000",
"peso" : "0.000",
"f_der" : "0.000",
"res_der" : "0.000",
"ov_der" : "0.000",
},
{
"f_izq" : "0.000",
"res_izq" : "0.000",
"ov_izq" : "0.000",
"peso" : "0.000",
"f_der" : "0.000",
"res_der" : "0.000",
"ov_der" : "0.000",
}
],
"trasero" : {
"f_izq" : "0.000",
"f_der" : "0.000"
},
"gaseshumos" : {
"co" : "0.000",
"hc" : "0.000",
"med" : "0.000"
}
}
@app.route('/')
def main():
#SG().getdata()
return render_template(
"resultados.html",
data = data
)
# Inicio del servicio
if __name__ == "__main__":
app.run("0.0.0.0")