home readme diff tree note docs

0commit b9692d634b4db8514175703124fb4abe6f0cfc1d
1Author: lakefox <mason@lakefox.net>
2Date:   Sat May 23 13:59:19 2026 -0600
3
4    Cors for METAR
5
6diff --git a/.index.html.swp b/.index.html.swp
7new file mode 100644
8index 0000000..ae411ad
9Binary files /dev/null and b/.index.html.swp differ
10diff --git a/index.html b/index.html
11index 998472f..0a5559b 100644
12--- a/index.html
13+++ b/index.html
14@@ -967,7 +967,7 @@
15 
16             try {
17                 // Fetch live observations inside current map viewport using official AviationWeather GeoJSON endpoints
18-                const res = await fetch(`https://aviationweather.gov/api/data/metar?bbox=${bbox}&format=geojson`);
19+                const res = await fetch(`http://git.ws/cgi-bin/cgi.awk?name=nexstorm&hash=9ce8c52118ef6975a127abd9d137283f50de6caf&action=tree&path=metar.sh&bbox=${bbox}`);
20                 if (!res.ok) throw new Error("AWC observations down");
21                 
22                 const data = await res.json();
23diff --git a/metar.sh b/metar.sh
24index 848aa44..6de6fe2 100644
25--- a/metar.sh
26+++ b/metar.sh
27@@ -1,6 +1,7 @@
28 #!/bin/sh
29 
30 echo "Content-Type: text/json\r\n"
31+echo "Access-Control-Allow-Origin: *"
32 echo ""
33 
34 curl -s -f -S --cacert /etc/certs/ca-certificates.crt "https://aviationweather.gov/api/data/metar?bbox=$bbox&format=geojson"