-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (146 loc) · 6.21 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="86400">
<title>THUNDERBIRD - Weather Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Joshua Villwock">
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" href="css/main.css">
<link type="text/css" rel="stylesheet" href="css/font-style.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
<script src="js/mqtt-api.js" type="text/javascript"></script>
<script src="js/mqtt.js" type="text/javascript"></script>
<!-- HIGHCHARTS JAVASCRIPT -->
<script type="text/javascript" src="js/highcharts/highcharts.js"></script>
<script type="text/javascript" src="js/highcharts/highcharts-more.js"></script>
<script type="text/javascript" src="js/highcharts/solid-gauge.js"></script>
<!-- Google Fonts call. Font Used Open Sans & Raleway -->
<link href="http://fonts.googleapis.com/css?family=Raleway:400,300" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
</head>
<body id="bodyzone" style="padding-top:8px;">
<div id="container" class="container">
<!-- FIRST ROW OF BLOCKS -->
<div class="row">
<div class="col-sm-3 col-lg-3">
<!-- OUTSIDE TEMPERATURE BLOCK -->
<div class="half-unit">
<dtitle>Outside Temperature</dtitle>
<hr>
<div class="cont">
<p class="measure"><bold><value id="OUT_Temp">--.-</value> °F</bold></p>
<p class="measure measure-secondary"><img src="img/humidity.png" width="13px" height="15px" alt=""> <value id="OUT_Humid">--</value>%</p>
</div>
</div>
<!-- INSIDE TEMPERATURE BLOCK -->
<div class="half-unit">
<dtitle>Inside Temperature</dtitle>
<hr>
<div class="cont">
<p class="measure"><bold><value id="IN_Temp">--.-</value> °F</bold></p>
<p class="measure measure-secondary"><img src="img/humidity.png" width="13px" height="15px" alt=""> <value id="IN_Humid">--</value>%</p>
</div>
</div>
</div>
<!-- RADAR AREA -->
<div class="col-sm-3 col-lg-3" id="radar-area">
<div class="dash-unit">
<div id="Radar_Holder" class="section-image">
<img id="Radar_Img" src="http://api.wunderground.com/api/e8b292334779aa96/animatedradar/image.gif?centerlat=44.9¢erlon=-123.3&radius=40&newmaps=1&timelabel=1&timelabel.y=10&num=15&delay=50&width=481&height=242"/>
</div>
</div>
</div>
<div class="col-sm-3 col-lg-3">
<!-- TIME AND DATE BLOCK -->
<div class="half-unit">
<dtitle>Time And Date</dtitle>
<hr>
<div class="clockcenter">
<date id="date">Jan --</date></br>
<time id="time">--:--</time>
</div>
</div>
<!-- TODAY BLOCK -->
<div class="half-unit">
<dtitle>Today</dtitle>
<hr>
<div class="cont">
<p class="measure-now"><img id="NOW_URL" src="https://icons.wxug.com/i/c/v4/mostlycloudy.svg" height="50" width="50"> <bold><value id="NOW_Feel">--</value> °F</bold></p>
<p class="measure-now-limits"><img src="img/up-small.png" alt=""> <value id="NOW_Feel_High">--</value>° | <img src="img/down-small.png" alt=""> <value id="NOW_Feel_Low">--</value>°</p>
</div>
</div>
</div>
</div><!-- /row -->
<!-- SECOND ROW OF BLOCKS -->
<div class="row">
<div class="col-sm-3 col-lg-3">
<!-- ATTIC TEMPERATURE BLOCK -->
<div class="half-unit">
<dtitle>Attic Temperature</dtitle>
<hr>
<div class="cont">
<p class="measure"><bold><value id="ATTIC_Temp">---.-</value> °F</bold></p>
<p class="measure measure-secondary"><img src="img/humidity.png" width="13px" height="15px" alt=""> <value id="ATTIC_Humid">--</value>%</p>
</div>
</div>
<!-- FUTURE TEMPERATURE BLOCK -->
<div class="half-unit">
<dtitle>Future stuff goes here</dtitle>
<hr>
<div class="cont">
<p class="measure"><bold>--.- °F</bold></p>
<p class="measure measure-secondary"><img src="img/humidity.png" width="13px" height="15px" alt=""> --%</p>
</div>
</div>
</div>
<!-- WIND SPEED BLOCK -->
<div class="col-sm-3 col-lg-3">
<div class="dash-unit">
<dtitle>Wind Speed</dtitle>
<hr>
</br></br>
<div class="cont">
<p class="measure"><bold><value id="OUT_Wind">--.-</value></bold></p>mph
</br></br></br>
<p class="measure measure-secondary measure-wind-more">1m Avg: <value id="OUT_Wind_Avg">--</value></p>
<p class="measure measure-secondary measure-wind-more">1m Gust: <value id="OUT_Wind_Gust">--</value></p>
<p class="measure measure-secondary measure-wind-more">24h Max: <value id="OUT_Wind_Max">--</value></p>
</div>
</div>
</div>
<!-- RAINFALL BLOCK -->
<div class="col-sm-3 col-lg-3">
<div class="dash-unit">
<dtitle>Rainfall</dtitle>
<hr>
<div id="raingroup" class="cont">
<p class="measure-rain">24 hours | <bold><value id="OUT_Rain_Last_24h">-.--</value></bold></p>
</br>
<p class="measure-rain"><bad>midnight</bad> | <bold><value id="OUT_Rain_Today">-.--</value></bold></p>
</br>
<p class="measure-rain"><button onclick="reset_rain()" id="btn-reset" type="button" class="btn btn-lg btn-success-outline">Reset</button> | <measure><value id="OUT_Rain_Since_Reset">--.--</value></bold></p>
</div>
</div>
</div>
<!-- SWITCHES & BUTTONS BLOCK -->
<div class="col-sm-3 col-lg-3">
<div class="dash-unit">
<dtitle>Buttons</dtitle>
<hr></br>
<div class="text-center">
<button id="btn-hourly" type="button" class="btn btn-lg btn-success" onMouseDown="return attemptFullscreen()">Fullscreen</button>
</div>
</br>
<div class="text-center">
<button id="btn-10day" type="button" class="btn btn-lg btn-info">Forecast</button>
</div>
</div>
</div>
</div><!-- /row -->
</div> <!-- /container -->
</body>
</html>