deploy.py 1.52 KB
#-*- 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" : "07-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",
		}
	],
	"freno" : [
		{
			"eje" : "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",	
		},
		{
			"eje" : "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",	
		},
		{
			"eje" : "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",	
		},
		{
			"eje" : "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"
	},
	"gases" : {
		"co" : "0.000",
		"hc" : "0.000",
	},
	"humos" : {
		"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")