mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-04-30 02:35:57 +00:00
Add fetching of NOAA 3-day forecast
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
<p>This software is dedicated to the memory of Tom G1PJB, SK, a friend and colleague who sadly passed away around the time I started writing it in Autumn 2025. I was looking forward to showing it to you when it was done.</p>
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775233379"></script>
|
||||
<script src="/js/common.js?v=1775234400"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-about").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -69,8 +69,8 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775233379"></script>
|
||||
<script src="/js/add-spot.js?v=1775233379"></script>
|
||||
<script src="/js/common.js?v=1775234400"></script>
|
||||
<script src="/js/add-spot.js?v=1775234400"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-add-spot").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -56,8 +56,8 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775233379"></script>
|
||||
<script src="/js/alerts.js?v=1775233379"></script>
|
||||
<script src="/js/common.js?v=1775234400"></script>
|
||||
<script src="/js/alerts.js?v=1775234400"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-alerts").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -62,9 +62,9 @@
|
||||
<script>
|
||||
let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %};
|
||||
</script>
|
||||
<script src="/js/common.js?v=1775233379"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775233379"></script>
|
||||
<script src="/js/bands.js?v=1775233379"></script>
|
||||
<script src="/js/common.js?v=1775234400"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775234400"></script>
|
||||
<script src="/js/bands.js?v=1775234400"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-bands").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -46,10 +46,10 @@
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/tinycolor2@1.6.0/cjs/tinycolor.min.js"></script>
|
||||
|
||||
<script src="https://misc.ianrenton.com/jsutils/utils.js?v=1775233379"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/storage.js?v=1775233379"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/ui-ham.js?v=1775233379"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/geo.js?v=1775233379"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/utils.js?v=1775234400"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/storage.js?v=1775234400"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/ui-ham.js?v=1775234400"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/geo.js?v=1775234400"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -7,84 +7,76 @@
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row row-cols-1 row-cols-md-2 g-3">
|
||||
<div class="col">
|
||||
<div class="card h-100">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">HF</h5>
|
||||
<table class="table table-sm mt-2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Band</th>
|
||||
<th>Day</th>
|
||||
<th>Night</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>80-40m</td>
|
||||
<td id="hf-conditions-80m-40m-day"></td>
|
||||
<td id="hf-conditions-80m-40m-night"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>30-20m</td>
|
||||
<td id="hf-conditions-30m-20m-day"></td>
|
||||
<td id="hf-conditions-30m-20m-night"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>17-15m</td>
|
||||
<td id="hf-conditions-17m-15m-day"></td>
|
||||
<td id="hf-conditions-17m-15m-night"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12-10m</td>
|
||||
<td id="hf-conditions-12m-10m-day"></td>
|
||||
<td id="hf-conditions-12m-10m-night"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col mt-3 px-3">
|
||||
<h5>HF</h5>
|
||||
<table class="table table-sm mt-2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Band</th>
|
||||
<th>Day</th>
|
||||
<th>Night</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>80-40m</td>
|
||||
<td id="hf-conditions-80m-40m-day"></td>
|
||||
<td id="hf-conditions-80m-40m-night"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>30-20m</td>
|
||||
<td id="hf-conditions-30m-20m-day"></td>
|
||||
<td id="hf-conditions-30m-20m-night"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>17-15m</td>
|
||||
<td id="hf-conditions-17m-15m-day"></td>
|
||||
<td id="hf-conditions-17m-15m-night"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12-10m</td>
|
||||
<td id="hf-conditions-12m-10m-day"></td>
|
||||
<td id="hf-conditions-12m-10m-night"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card h-100">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">VHF</h5>
|
||||
<table class="table table-sm mt-2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Propagation Mode</th>
|
||||
<th>Condition</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Sporadic-E 6m (Europe)</td>
|
||||
<td id="vhf-conditions-es_6m_europe"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sporadic-E 4m (Europe)</td>
|
||||
<td id="vhf-conditions-es_4m_europe"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sporadic-E 2m (Europe)</td>
|
||||
<td id="vhf-conditions-es_2m_europe"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sporadic-E 2m (North America)</td>
|
||||
<td id="vhf-conditions-es_2m_na"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Aurora (Northern Hemisphere)</td>
|
||||
<td id="vhf-conditions-vhf_aurora_northern_hemi"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Aurora Minimum Latitude</td>
|
||||
<td id="vhf-conditions-aurora-lat"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col mt-3 px-3">
|
||||
<h5>VHF</h5>
|
||||
<table class="table table-sm mt-2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Propagation Mode</th>
|
||||
<th>Condition</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Sporadic-E 6m (Europe)</td>
|
||||
<td id="vhf-conditions-es_6m_europe"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sporadic-E 4m (Europe)</td>
|
||||
<td id="vhf-conditions-es_4m_europe"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sporadic-E 2m (Europe)</td>
|
||||
<td id="vhf-conditions-es_2m_europe"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sporadic-E 2m (North America)</td>
|
||||
<td id="vhf-conditions-es_2m_na"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Aurora (Northern Hemisphere)</td>
|
||||
<td id="vhf-conditions-vhf_aurora_northern_hemi"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Aurora Minimum Latitude</td>
|
||||
<td id="vhf-conditions-aurora-lat"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-text mt-3">Data from <a href="https://hamqsl.com">HamQSL.com</a>.</div>
|
||||
@@ -95,7 +87,7 @@
|
||||
<div class="card-header">
|
||||
Solar Weather
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="card-body px-3">
|
||||
<div class="row border-bottom align-items-start me-0">
|
||||
<div class="col-12 col-md-2 py-2 fw-bold">Solar Flux</div>
|
||||
<div id="sw-solar-flux-vals" class="col-12 col-md-3 py-2">
|
||||
@@ -138,6 +130,50 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mt-5">
|
||||
<div class="card-header">
|
||||
Forecast
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row mb-4">
|
||||
<div class="col mt-3 px-3">
|
||||
<h5>K-index Forecast</h5>
|
||||
<div class="table-responsive">
|
||||
<table id="forecast-kp-table" class="table table-sm mt-2">
|
||||
<thead>
|
||||
<tr></tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-cols-1 row-cols-md-2 g-3">
|
||||
<div class="col mt-3 px-3">
|
||||
<h5>Solar Storm Forecast</h5>
|
||||
<table id="forecast-solar-storm-table" class="table table-sm mt-2">
|
||||
<thead>
|
||||
<tr id="forecast-solar-storm-head"></tr>
|
||||
</thead>
|
||||
<tbody id="forecast-solar-storm-tbody"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col mt-3 px-3">
|
||||
<h5>Blackout Forecast</h5>
|
||||
<table id="forecast-blackout-table" class="table table-sm mt-2">
|
||||
<thead>
|
||||
<tr id="forecast-blackout-head"></tr>
|
||||
</thead>
|
||||
<tbody id="forecast-blackout-tbody"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-text mt-3">Data from <a href="https://www.swpc.noaa.gov/">NOAA Space Weather Prediction
|
||||
Center</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mt-5">
|
||||
<div class="card-header">
|
||||
DX Opportunities
|
||||
@@ -145,7 +181,8 @@
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<label for="dxstats-de-continent" class="form-label">Your continent:</label>
|
||||
<select id="dxstats-de-continent" class="form-select storeable-select d-inline-block ms-2" style="width: auto;" oninput="dxStatsContientChanged();">
|
||||
<select id="dxstats-de-continent" class="form-select storeable-select d-inline-block ms-2"
|
||||
style="width: auto;" oninput="dxStatsContientChanged();">
|
||||
<option value="EU">Europe</option>
|
||||
<option value="NA">North America</option>
|
||||
<option value="SA">South America</option>
|
||||
@@ -158,39 +195,45 @@
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm table-bordered mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>160m</th>
|
||||
<th>80m</th>
|
||||
<th>60m</th>
|
||||
<th>40m</th>
|
||||
<th>30m</th>
|
||||
<th>20m</th>
|
||||
<th>17m</th>
|
||||
<th>15m</th>
|
||||
<th>12m</th>
|
||||
<th>10m</th>
|
||||
<th>6m</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>160m</th>
|
||||
<th>80m</th>
|
||||
<th>60m</th>
|
||||
<th>40m</th>
|
||||
<th>30m</th>
|
||||
<th>20m</th>
|
||||
<th>17m</th>
|
||||
<th>15m</th>
|
||||
<th>12m</th>
|
||||
<th>10m</th>
|
||||
<th>6m</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for continent in ["EU", "NA", "SA", "AS", "AF", "OC", "AN"] %}
|
||||
<tr>
|
||||
<td class="fw-bold">{{ continent }}</td>
|
||||
{% for band in ["160m", "80m", "60m", "40m", "30m", "20m", "17m", "15m", "12m", "10m", "6m"] %}
|
||||
<td id="dxstats-{{ continent }}-{{ band }}"></td>
|
||||
{% end %}
|
||||
</tr>
|
||||
{% for continent in ["EU", "NA", "SA", "AS", "AF", "OC", "AN"] %}
|
||||
<tr>
|
||||
<td class="fw-bold">{{ continent }}</td>
|
||||
{% for band in ["160m", "80m", "60m", "40m", "30m", "20m", "17m", "15m", "12m", "10m", "6m"] %}
|
||||
<td id="dxstats-{{ continent }}-{{ band }}"></td>
|
||||
{% end %}
|
||||
</tr>
|
||||
{% end %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="form-text mt-2">This table shows the number of spots in the past hour received in your continent, where the DX continent and band are as shown in the table. Bands with high numbers of spots are likely to be the best ones for making contact with the continent you want right now. Bear in mind that some bands and some continents are inherently much rarer than others.</div>
|
||||
<div class="form-text mt-2">This table shows the number of spots in the past hour received in your continent,
|
||||
where the DX continent and band are as shown in the table. Bands with high numbers of spots are likely to be
|
||||
the best ones for making contact with the continent you want right now. Bear in mind that some bands and
|
||||
some continents are inherently much rarer than others.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775233379"></script>
|
||||
<script src="/js/conditions.js?v=1775233379"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-conditions").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
<script src="/js/common.js?v=1775234400"></script>
|
||||
<script src="/js/conditions.js?v=1775234400"></script>
|
||||
<script>$(document).ready(function () {
|
||||
$("#nav-link-conditions").addClass("active");
|
||||
}); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -70,9 +70,9 @@
|
||||
<script>
|
||||
let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %};
|
||||
</script>
|
||||
<script src="/js/common.js?v=1775233379"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775233379"></script>
|
||||
<script src="/js/map.js?v=1775233379"></script>
|
||||
<script src="/js/common.js?v=1775234400"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775234400"></script>
|
||||
<script src="/js/map.js?v=1775234400"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-map").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -87,9 +87,9 @@
|
||||
<script>
|
||||
let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %};
|
||||
</script>
|
||||
<script src="/js/common.js?v=1775233379"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775233379"></script>
|
||||
<script src="/js/spots.js?v=1775233379"></script>
|
||||
<script src="/js/common.js?v=1775234400"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775234400"></script>
|
||||
<script src="/js/spots.js?v=1775234400"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-spots").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -59,8 +59,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775233379"></script>
|
||||
<script src="/js/status.js?v=1775233379"></script>
|
||||
<script src="/js/common.js?v=1775234400"></script>
|
||||
<script src="/js/status.js?v=1775234400"></script>
|
||||
<script>
|
||||
$(document).ready(function() { $("#nav-link-status").addClass("active"); }); <!-- highlight active page in nav -->
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user