Doplnenie grafov teploty, tlaku, vlhkosti

This commit is contained in:
2021-01-12 11:28:13 +01:00
parent 2604e77dc6
commit a6a0b7e3b7
9 changed files with 317 additions and 6 deletions

View File

@@ -16,12 +16,10 @@
color: #636b6f;
font-family: 'Nunito', sans-serif;
font-weight: 200;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
@@ -42,6 +40,7 @@
.content {
text-align: center;
width: 90%;
}
.title {
@@ -99,9 +98,14 @@
<li>Tlak: @{{pressure}} khPa</li>
<li>Napätie: @{{voltage}} V</li>
<li>Čas: @{{time}}</li>
</ul>
</div>
</div>
<dygraphs ref="dgt" :graph-data="series['temperature']" :graph-options="temp_options"></dygraphs>
<dygraphs ref="dgh" :graph-data="series['humidity']" :graph-options="hum_options"></dygraphs>
<dygraphs ref="dgp" :graph-data="series['pressure']" :graph-options="p_options"></dygraphs>
</div>
</div>