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)
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)
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)
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)
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)
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)