Exemplo n.º 1
0
def windspeed():
    weather_list = get_db_data()
    title = "Windspeed"
    return render_template("base.html",
                           weather_data=weather_list,
                           history_val=history_windspeed_format(),
                           history_time=time_format(),
                           title=title)
Exemplo n.º 2
0
def rainfall():
    weather_list = get_db_data()
    title = "Rainfall [1 = low / 2 = light rain / 3 = heavy rain]"
    return render_template("base.html",
                           weather_data=weather_list,
                           history_val=history_rainfall_format(),
                           history_time=time_format(),
                           title=title)
Exemplo n.º 3
0
def lightindex():
    weather_list = get_db_data()
    title = "Light-index"
    return render_template("base.html",
                           weather_data=weather_list,
                           history_val=history_light_index_format(),
                           history_time=time_format(),
                           title=title)
Exemplo n.º 4
0
def humidity():
    weather_list = get_db_data()
    title = "Humidity"
    return render_template("base.html",
                           weather_data=weather_list,
                           history_val=history_humidity_format(),
                           history_time=time_format(),
                           title=title)
Exemplo n.º 5
0
def airpressure():
    weather_list = get_db_data()
    title = "Airpressure"
    return render_template("base.html",
                           weather_data=weather_list,
                           history_val=history_airpressure_format(),
                           history_time=time_format(),
                           title=title)
Exemplo n.º 6
0
def base2():
    weather_list = get_db_data()
    title = "Temperature"
    return render_template("base.html",
                           weather_data=weather_list,
                           history_val=history_temperature_format(),
                           history_time=time_format(),
                           title=title)