This repository has been archived by the owner on Aug 17, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
index.jinja
82 lines (78 loc) · 3.3 KB
/
index.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<style>
body {
background-color: rgb(16,185,129);
}
.upper {
text-transform: uppercase;
}
</style>
<title>{{'#'}}GrowLab live</title>
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<div class="container-fluid">
<a href="https://github.com/alexellis/growlab"><span class="navbar-brand mb-0 h1 upper">{{'#'}}growlab</span></a>
<img src="https://raw.githubusercontent.com/alexellis/growlab.dev/master/src/images/logo-notext.svg" class="navbar-brand mb-1" width="60px">
</div>
</nav>
<div class="d-grid gap-3">
<div class="p-2"></div>
</div>
<div class="container">
<div class="card">
<h5 class="card-header">
<quote>Welcome to your live monitoring</quote>
</h5>
<div class="card-body">
<h5 class="card-title"><a href="https://growlab.dev">growlab</a> is a community project to monitor nature with technology</h5>
<p class="card-text">Generated with the <a href="https://github.com/alexellis/growlab/tree/master/app">growlab app</a></p>
<h5>Latest readings</h5>
<div class="col-sm-6 col-lg-6 col-md-6 col-xl-6">
<table class="table">
<thead>
<tr>
<th scope="col">Reading</th>
<th scope="col">Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Time</td>
<td>{{ time }}</td>
</tr>
<tr>
<td>Temperature</td>
<td>{{ temperature }}</td>
</tr>
<tr>
<td>Humidity</td>
<td>{{ humidity }}</td>
</tr>
<tr>
<td>Pressure</td>
<td>{{ pressure }}</td>
</tr>
</tbody>
</table>
</div>
<h5>Latest image</h5>
<div style="width: 85%;">
<img class="figure-img img-fluid rounded" src="./preview.jpg?uid={{uid}}">
</div>
</div>
</div>
</div>
<nav class="navbar navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="https://www.openfaas.com/">Growlab is sponsored by OpenFaaS Ltd</a>
</div>
</nav>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
</body>
</html>