2019-10-13 20:35:48 +02:00
|
|
|
from django.shortcuts import render
|
2019-10-20 21:39:03 +02:00
|
|
|
from . import plot
|
2019-10-13 20:35:48 +02:00
|
|
|
|
2019-10-20 21:39:03 +02:00
|
|
|
def index_view(request):
|
|
|
|
plot_temp = plot.temperature()
|
|
|
|
plot_humidity = plot.humidity()
|
|
|
|
plot_pressure = plot.pressure()
|
|
|
|
return render(request, "collector/index.html",
|
|
|
|
context={'plot_temp': plot_temp,
|
|
|
|
'plot_humidity': plot_humidity,
|
|
|
|
'plot_pressure': plot_pressure})
|