-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
275 lines (269 loc) · 15.8 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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE html>
<html>
<head>
<!-- Meta tags for document information -->
<meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.6.0">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ParaguideWS</title>
<!-- Meta tags for SEO -->
<meta name="description" content="ParaguideWS - Your source for paragliding weather information around Bir.">
<meta name="keywords" content="paragliding, weather, India, Bir, paragliding weather, outdoor activities, Himachal Pradesh, India, Himalayas">
<meta name="author" content="Jigish Gohil - https://ws.paraguide.in">
<meta name="robots" content="index, follow"><!-- Direct search engines to index and follow the page -->
<meta name="revisit-after" content="7 days"><!-- Suggest how often search engines should revisit the page -->
<meta name="language" content="English"><!-- Specify the language of the content -->
<meta name="distribution" content="global"><!-- Indicate the distribution of the content -->
<meta name="referrer" content="origin-when-cross-origin"><!-- Define the referrer policy -->
<meta name="copyright" content="2024 Jigish Gohil"><!-- Provide copyright information -->
<meta name="geo.placename" content="Bir, Himachal Pradesh, India"><!-- Specify geographical location -->
<meta name="geo.region" content="IN-HP"><!-- Specify the geographical region -->
<meta name="geo.position" content="32.037° N; 76.708° E"><!-- Specify latitude and longitude -->
<meta name="ICBM" content="32.037, 76.708"><!-- Specify latitude and longitude in decimal degrees -->
<meta name="rating" content="general"><!-- Specify content rating -->
<!-- Meta tags for web app capabilities -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="ParaguideWS">
<meta name="application-name" content="ParaguideWS">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="apple-touch-icon.png">
<meta name="msapplication-tooltip" content="ParaguideWS">
<meta name="msapplication-starturl" content="https://ws.paraguide.in/">
<meta name="theme-color" content="#ffffff">
<!-- Open Graph meta tags for social sharing -->
<meta property="og:title" content="ParaguideWS">
<meta property="og:description" content="ParaguideWS - Your source for paragliding weather information around Bir.">
<meta property="og:url" content="https://ws.paraguide.in/">
<meta property="og:image" content="https://ws.paraguide.in/preview.jpg">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="ParaguideWS">
<!-- Twitter meta tags for social sharing -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@cyberorg">
<meta name="twitter:title" content="ParaguideWS">
<meta name="twitter:description" content="ParaguideWS - Your source for paragliding weather information around Bir.">
<meta name="twitter:image" content="https://ws.paraguide.in/preview.jpg">
<!-- Favicon links -->
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" type="image/png" href="/favicon.png">
<!-- External CSS stylesheets -->
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/philfung/add-to-homescreen@1.8/dist/add-to-homescreen.min.css">
<link rel="stylesheet" type="text/css" href="skewt.css">
<!-- External JavaScript libraries -->
<script src="https://cdn.jsdelivr.net/gh/philfung/add-to-homescreen@1.8/dist/add-to-homescreen.min.js"></script>
<script src="skewt.js" charset="UTF-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<script>
function setTheme(theme) {
document.documentElement.setAttribute('data-theme', theme);
localStorage.setItem('theme', theme);
}
// Function to toggle theme
function toggleTheme() {
const currentTheme = document.documentElement.getAttribute('data-theme');
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
setTheme(newTheme);
}
// Function to detect system theme and set theme
function detectSystemTheme() {
const prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)');
const userPreference = localStorage.getItem('theme');
if (userPreference) {
setTheme(userPreference);
} else if (prefersDarkScheme.matches) {
setTheme('dark');
} else {
setTheme('light');
}
}
const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: light)");
detectSystemTheme();
function refreshPage() {
// Clearing cache
window.location.reload(true);
}
</script>
<!-- Link to the web app manifest file -->
<link rel="manifest" href="manifest.json">
</head>
<body>
<!-- Container for latest brief -->
<div id="tbrief" class="container" style="margin-bottom: 5px; padding-bottom: 10px; display: block;">
<h1 style="text-align: center;">Latest brief:</h1>
<!-- Placeholder for long MET information -->
<div style="text-align: left;" id="longMET"></div>
<!-- Section for displaying weather alerts -->
<h1 id="todaySection" style="display: none;">Color of the day</h1>
<div id="todayAlerts"></div>
<h1 id="tomorrowSection" style="display: none;">Color for tomorrow</h1>
<div id="tomorrowAlerts"></div>
<!-- Legend for warning levels -->
<div class="warning-legend" style="display: none;">
<div>
<div class="square" style="background-color: red;"></div>
<span>Warning</span>
</div>
<div>
<div class="square" style="background-color: orange;"></div>
<span>Alert</span>
</div>
<div>
<div class="square" style="background-color: yellow;"></div>
<span>Watch</span>
</div>
<div style="margin-left:10px"><a href="https://mausam.imd.gov.in/responsive/subDivisionWiseWarning.php" target="_blank">IMD</a></div>
</div>
</div>
<!-- Container for Android app test -->
<div class="container" style="margin-bottom: 5px; padding: 10px;">Join the Android app beta test. <a href="https://wa.me/+919898092956">Share your play store ID.</a> </div>
<!-- Container for latest snapshot -->
<div class="container" style="margin-bottom: 5px;">
<h1 style="text-align: center;">Latest snapshot (every 5 minutes till sunset):</h1>
<img style="margin-bottom:10px" class="NO-CACHE" src="https://paraguide.in/webcams/view.jpg" alt="Latest in Bir">
<p><a href="webcams.html">Show Webcams near my Current Location.</a></p><br>
</div>
<!-- Container for book information -->
<div class="bookcontainer" style="margin-bottom: 5px;">
<div class="image-column"><img src="cover-w.svg" width="100%" height="100%" alt="cover"></div>
<div class="description-column">
<p><b>ALOFT AND UNBOUND</b></p>
<p>A book about paragliding life</p>
<p><a href="https://aloftandunbound.paraguide.in">https://aloftandunbound.paraguide.in</a></p>
</div>
</div>
<!-- Container for timelapse video -->
<div class="container">
<h1 style="text-align: center;">Timelapse of last 24h (updated hourly):</h1>
<video controls="" class="video">
<source src="https://paraguide.in/webcams/timelapse.mp4" type="video/mp4"> Your browser does not support the video tag.
</video>
</div>
<!-- Weather Widget container -->
<div class="weather-widget">
<h1 style="text-align: center;">Current Weather</h1><!-- Toggle for Celsius and Fahrenheit -->
<button id="toggleUnit" onclick="toggleTemperatureUnit()" style="float: right;">C|F</button>
<div class="weather-info">
<div class="weather-data">
<img src="warning_images/temperature_icon.png" alt="Temperature icon"> Temperature: <span id="temperature">Loading...</span>
</div>
<div class="weather-data">
<img style="max-width:20px;" src="warning_images/11.png" alt="Min Temperature icon"> 24h Min: <span id="mint">Loading...</span>
</div>
<div class="weather-data">
<img style="max-width:20px;" src="warning_images/08.png" alt="Max Temperature icon"> 24h Max: <span id="maxt">Loading...</span>
</div>
<div class="weather-data">
<img src="warning_images/humidity_icon.png" alt="Humidity icon"> Humidity: <span id="humidity">Loading...</span>
</div>
<div class="weather-data">
<img src="warning_images/pressure_icon.png" alt="Pressure icon"> Pressure: <span id="pressure">Loading...</span>
</div>
<div class="weather-data">
<img src="warning_images/dewpoint_icon.png" alt="Dew Point icon"> Dew Point: <span id="dewpt">Loading...</span>
</div>
<div class="weather-data">
<img src="warning_images/cb_icon.png" alt="Cloud base icon"> Approx. cloud base at: <span id="cloudBaseHeight">Calculating...</span>
</div>
<div class="weather-data">
<img src="warning_images/observation_icon.png" alt="Observation icon"> Observation at: <span id="otime">Loading...</span>
</div>
<div class="weather-data">
<img src="warning_images/aqi_icon.png" alt="AQI icon"> AQI: <span id="aqi">Loading...</span> Category: <span id="aqic">Loading...</span>
</div>This weather station's dashboards:<br>
<a href="https://www.pwsweather.com/station/pws/PARAGUIDEIN" target="_blank">PWSweather</a><br>
<a href="https://www.windy.com/station/pws-f0d0c46a?31.012,76.708,8" target="_blank">Windy</a><br>
<a href="https://www.wunderground.com/dashboard/pws/IBAIJN1" target="_blank">Wunderground</a><br>
<a href="https://www.wunderground.com/wundermap" target="_blank">Show Weather Stations around my Current Location</a><br>
</div>
</div>
<!-- Container for next 8 hours forecast -->
<div id="8hours" class="container" style="padding-bottom: 10px; display: block; margin-top:5px">
<h1 style="text-align: center;">Next 8 hours:</h1>
<table id="weatherForecast">
<tr>
<th>Time</th>
<th>Cloud %</th>
<th>Vis. km</th>
<th>
UVI <a href="https://archive.is/rNBWm">(?)</a>
</th>
<th>Solar Rad W/m² <a href="https://en.wikipedia.org/wiki/Solar_irradiance">(?)</th>
<th>Cape J/kg <a href="https://en.wikipedia.org/wiki/Convective_available_potential_energy">(?)</th>
</tr>
</table>
<h1 style="text-align: left;">Today:</h1>
<div style="text-align: left;" id="dailyForecast"></div>
</div>
<div id="metar" class="container" style="padding:5px; max-width: 500px; display: block; text-align: left; margin-left: auto; margin-right: auto;">
<h1 style="text-align: center;">METAR Information</h1>
<div id="metarData"></div>
</div>
<!-- Container for Windy iframe -->
<div id="windy" class="container" style="padding:5px; display: block; text-align: center;">
<iframe id="windyiframe" width="650" height="450" src="https://embed.windy.com/embed2.html?lat=32.037&lon=76.708&detailLat=32.037&detailLon=76.708&width=650&height=450&zoom=10&level=surface&overlay=clouds&product=mblue&menu=&message=&marker=true&calendar=now&pressure=true&type=map&location=coordinates&detail=true&metricWind=km%2Fh&metricTemp=%C2%B0C&radarRange=-1" frameborder="0"></iframe>
<a id="windyLink" href="#" target="_blank">Windy.com - Open with my Current Location</a>
</div>
<!-- Container for Skewt diagram -->
<div id="skewtc" class="container" style="text-align: center; max-width: 500px; margin-left: auto; margin-right: auto; padding:5px; display: block;">
<!-- Skewt diagram placeholder -->
<div style="background-color: white;" id="skewt"></div>
<div id="listcontainer"></div>
<a id="rucSoundingsLink" href="#" target="_blank">RUC Soundings - Open with my Current Location</a>
<div>Time in IST</div>
</div>
<!-- Container for Meteogram -->
<div id="meteogram" class="container" style="text-align: center; max-width: 500px; margin-left: auto; margin-right: auto; padding:5px; padding-bottom:0px; display: block;">
<img style="margin-bottom:0px;" src="https://my.meteoblue.com/images/meteogram?temperature_units=C&wind_units=kmh&precipitation_units=mm&winddirection=3char&iso2=in&lat=32.0478&lon=76.7256&asl=1591&tz=Asia%2FKolkata&apikey=jhMJTOUVRNvs25m4&lang=en&location_name=B%C4%ABr+Kh%C4%81s&windspeed_units=kmh&sig=ae2ce17ea31fb5241977e66c0a8f736a" alt="Meteogram - 5 days - Bīr Khās">
<a href="https://www.meteoblue.com/en/weather/week/b%c4%abr-kh%c4%81s_india_1275536" target="_blank" rel="noreferrer" style="display: block;">Weather Bīr Khās - meteoblue</a>
<a id="meteoblueLink" href="#" target="_blank">Meteoblue.com - Open with my Current Location</a>
</div>
<div id="lnews" class="container" style="text-align: left; max-width: 500px; margin-left: auto; margin-right: auto; padding:5px; display: block;">
<h1 style="text-align: center">Today's News</h1>
<div style="padding:5px; padding-bottom:10px; height: 400px;overflow-y: auto;"id="news-container"></div>
</div>
<div id="tobir" class="container" style="text-align: center; max-width: 500px; margin-left: auto; margin-right: auto; padding:5px;padding-top:20px; display: block;">
<div class="compass">
<div class="arrow"></div>
<div class="compass-circle"></div>
<div class="my-point"></div>
</div>
<div class="distance-display"><span id="distance"></span></div>
<button class="start-btn">Where's Bir LZ?</button>
</div>
<!-- Links and information container -->
<div class="container" style="text-align: center; margin-top: 5px; padding: 10px;">
<button id="addToHomeScreen" style="display: none;">Install as PWA</button><br>
<div id="iinfo" style="display: none;">
Install for many more features. For Andorid app, see at the top of this page.
</div>
<!-- Back to homepage and paragliding links -->
<button onclick="toggleTheme()">Toggle Theme</button><br>
<button onclick="refreshPage()">Refresh</button><br>
<button href="https://paraguide.in">Back to homepage</button><br>
<a href="https://j.mp/paraglidingindia">All about paragliding in India</a>
<a href="https://github.com/cyberorg/paraguidews">Paraguide Weather Station code, buy me beer...</a>
<a href="https://github.com/cyberorg/webcam-ftp-upload">Webcam code</a>
<a href="https://github.com/cyberorg/ParaguideWS-web">This web app's code, bugs, suggestions, PRs...</a>
<p style="margin-top: 10px;">Data sourced from:<br> <a href="https://api.aerisapi.com" target="_blank">api.aerisapi.com</a>, <a href="https://meteoblue.com/" target="_blank">meteoblue.com</a>, <a href="https://rucsoundings.noaa.gov/" target="_blank">noaa.gov</a>, <a href="https://api.open-meteo.com" target="_blank">open-meteo.com</a>, <a href="https://wunderground.com" target="_blank">wunderground.com</a>, <a href="https://windy.com" target="_blank">windy.com</a></p>
</div>
<!-- Container for random links -->
<div id="randomlink" class="container" style="padding-bottom:75px;display: block;height: 200px;overflow-y: auto;">
<h1 style="text-align: center;">Random links from j.mp/paraglidingindia</a> </h1>
<button id="randomness" style="float: right;">🔀</button><br>
<div id="randomContentContainer"></div>
</div>
<!-- External JavaScript for functionality -->
<script src="paraguidews.min.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KZ8E643JK3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-KZ8E643JK3');
</script>
</body>
</html>