--- /dev/null
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Space Weather</title>
+ <link rel="icon" type="image/ico" href="/favicon.ico">
+
+ <style>
+
+ body {
+ color: white;
+ padding: 20px;
+ background-image: url(stars.jpg);
+ }
+
+ p {
+ background-color: black;
+ padding: 10px;
+ }
+
+ </style>
+
+ <script>
+ async function puttext () {
+ fetch("https://services.swpc.noaa.gov/text/discussion.txt")
+ .then(response => response.text())
+ .then(result => result.replaceAll(/ NE /g, " north east "))
+ .then(result => result.replaceAll(/ SE /g, " south east "))
+ .then(result => result.replaceAll(/ SW /g, " south west "))
+ .then(result => result.replaceAll(/ NW /g, " north west "))
+ .then(result => result.replaceAll(/nT/g, "nano tesla"))
+ .then(result => result.replaceAll(/UTC/g, "utc"))
+ .then(result => result.replaceAll(/\/Sf/g, " solar flux"))
+ .then(result => result.replaceAll(/MeV/g, "mega electron volt"))
+ .then(result => result.replaceAll(/CME/g, "coronal mass ejection"))
+ .then(result => result.replaceAll(/km\/s/g, "kilometers per second"))
+ .then(result => result.replaceAll(/.24 hr Summary...\n/g, "In the last 24 hours "))
+ .then(result => result.replaceAll(/CH HSS/g, "coronal hole high speed stream"))
+ .then(result => result.replaceAll(/(\s*\(.*?\)\s*)|(\n\.Forecast\.\.\.\n)/g, " "))
+ .then(result => result.replaceAll(/(?![ 0-9])\-(?=[ 0-9])/g, " to "))
+ .then(result => result.replaceAll(/\n[A-z]+( [A-z]+)?\n/g, "\n"))
+ .then(result => result.replaceAll(/(.|\n)+#/g, ""))
+ .then(result => result.replaceAll(/\.(?=\S)/g, ". "))
+ .then(result => result.replaceAll(/,(?=\S)/g, ", "))
+ .then(result => result.replaceAll(/(\n)+/g, ""))
+ .then(result => "Welcome to Space weather. Issued by XMDV Radio on behalf of Utter. " + result + " This has been Space weather. Created by William Greenwood and supported by the NOAA.")
+ .then(result => document.getElementById("body").innerHTML = result);
+ }
+
+ puttext()
+ </script>
+ </head>
+
+ <body>
+
+ <p><a href="./index.html"><-- XMDV Radio homepage</a></p>
+
+ <h1>Space Weather</h1>
+
+ <p><a href="http://xmdvradio.duckdns.org:8080/spaceweather.mp3">Listen - automatically generated everyday</a></p>
+
+ <p id=body><em>Generating... Requires javascript</em></p>
+
+ <p><a href="https://services.swpc.noaa.gov/text/discussion.txt">Data source: NOAA</a></p>
+ </body>
+</html>