-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
220 lines (199 loc) · 7.82 KB
/
index.html
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!--
\|/ MQTTerra
* @ Authors: Andre Schlichting & Kaue Cano
* @ Create Time: 2019-06-25 21:01:19
* @ Modified by: canokaue
* @ Modified time: 2019-06-29 23:00:18
Template used:
Phantom by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<!DOCTYPE HTML>
<!-- Icons -->
<link rel="apple-touch-icon" sizes="57x57" href="icons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="icons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="icons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="icons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="icons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="icons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="icons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="icons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="icons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="icons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<html>
<head>
<title id = "page_title">MQTTerra Dashboard</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.2/mqttws31.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="assets/js/mqtt.js" type="text/javascript"></script>
<script src="assets/js/plot.js" type="text/javascript"></script>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="inner">
<!-- Logo -->
<a href="index.html" class="logo">
<span class="symbol"><img src="images/logo.svg" alt="" /></span><span class="title">MQTTerra</span>
</a>
<!-- Nav -->
<nav>
<ul>
<li><a href="#menu">Menu</a></li>
</ul>
</nav>
</div>
</header>
<!-- Menu -->
<nav id="menu">
<h2>Menu</h2>
<ul>
<li><a href="index.html">Dashboard</a></li>
<li><a href="about.html">About the project</a></li>
<li><a href="photos.html">Photos</a></li>
</ul>
</nav>
<!-- Main -->
<div id="main">
<div class="inner">
<header>
<!-- Title -->
<h1>Dashboard <a href="index.html">MQTTerra</a></h1>
<!-- Subtitle -->
<p>Here you can monitor the temperature and humidity of your MQTTerra apparatus in real time, as well as write to the subscribed irrigation topic to fill the water tank.</p>
</header>
<section class="tiles">
<article class="style1" id="irrigate">
<span class="image">
<img src="images/pic01.jpg" alt="" />
</span>
<a href="javascript:relay();">
<h2 style="font-size: 170%" id = "io">Interact<br>\!/</h2>
<div class="content">
<p>Toggle the solenoid opening. <br>
Press once to release fresh water, repeat to close the valve.</p>
</div>
</a>
</article>
<article class="style8" id = "relay_color">
<span class="image">
<img src="images/pic06.jpg" alt="" />
</span>
<a>
<h2 style="font-size: 100%" id="relaystatus">Awaiting input...</h2>
<div class="content">
<p>Relay status.</p>
</div>
</a>
</article>
<article class="style3">
<span class="image">
<img src="images/pic03.jpg" alt="" />
</span>
<a>
<h2 style="font-size:100%;" id="humidity">Connecting...</h2>
<div class="content">
<p>Air humidity.</p>
</div>
</a>
</article>
<article class="style2">
<span class="image">
<img src="images/pic02.jpg" alt="" />
</span>
<a>
<h2 style="font-size:100%;" id = "temperature">Connecting...</h2>
<div class="content">
<p>Temperature.</p>
</div>
</a>
</article>
<article class="style5">
<span class="image">
<img src="images/pic05.jpg" alt="" />
</span>
<a>
<h2 style="font-size: 100%" id="distance">Connecting...</h2>
<div class="content">
<p>Distance from sensor to water level.</p>
</div>
</a>
</article>
<article class="style4">
<span class="image">
<img src="images/pic04.jpg" alt="" />
</span>
<a>
<h2 style="font-size: 100%" id="plant1">Connecting...</h2>
<div class="content">
<p>Soil moisture.</p>
</div>
</a>
</article>
</section>
</div>
</div>
<p align = center><div id="plotdiv"></div>
<form align = center action="">
<input align ="center" type="button" id="updateplot" value="Update Plot" onclick="toggle(this);">
</form></p>
<!-- Footer -->
<footer id="footer">
<div class="inner">
<section>
<h2>Get in touch</h2>
<form method="post" action="mailto:kaue@engineer.com">
<div class="fields">
<div class="field half">
<input type="text" name="name" id="name" placeholder="Name" />
</div>
<div class="field half">
<input type="email" name="email" id="email" placeholder="Email" />
</div>
<div class="field">
<textarea name="message" id="message" placeholder="Message"></textarea>
</div>
</div>
<ul class="actions">
<li><input type="submit" value="Send" class="primary" /></li>
</ul>
</form>
</section>
<section>
<h2>Follow</h2>
<ul class="icons">
<li><a href="https://twitter.com/canokaue" class="icon brands style2 fa-twitter" target="_blank" ><span class="label">Twitter</span></a></li>
<li><a href="https://www.instagram.com/cano_.k/" class="icon brands style2 fa-instagram" target="_blank" ><span class="label">Instagram</span></a></li>
<li><a href="http://github.com/canokaue/MQTTerra" class="icon brands style2 fa-github" target="_blank" ><span class="label">GitHub</span></a></li>
<li><a href="mailto:kaue@engineer.com" class="icon solid style2 fa-envelope" target="_blank" ><span class="label">Email</span></a></li>
</ul>
</section>
<ul class="copyright">
<li>© MQTTerra. All rights reserved</li><li>Desinged by: <a href="http://github.com/alucassch">alucassch </a> and <a href="http://github.com/canokaue">canokaue</a></li>
</ul>
</div>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>