From f058e83da43b0b661b45a7bd4c82b49c57e61d93 Mon Sep 17 00:00:00 2001 From: St33v Date: Tue, 9 Jun 2026 13:04:04 +1000 Subject: Add IDR713 radar fetch and APNG loop radarFetch.sh fetches BOM IDR713 transparencies (24h cache) and the last six 6-minute echo frames, composites them via cached lower/upper plates, and publishes an APNG loop to /srv/www/radar/. systemd: radar.{service,timer} on a 6-min cadence, with retry units mirroring the synoptic pattern. nginx: new radar.pestrel.com vhost (still commented in setup.sh until DNS propagation is confirmed). setup.sh provisions radar dirs, installs radar units, enables timer. deploy.sh accepts synoptic|radar arg. Parameterised on product code; adding another radar is a one-line config change. Spec: doc/bom-radar-spec.md. Co-Authored-By: Claude Opus 4.7 --- nginx/radar.pestrel.com.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nginx/radar.pestrel.com.conf (limited to 'nginx') diff --git a/nginx/radar.pestrel.com.conf b/nginx/radar.pestrel.com.conf new file mode 100644 index 0000000..b7d9c08 --- /dev/null +++ b/nginx/radar.pestrel.com.conf @@ -0,0 +1,23 @@ +# BOM radar loop — radar.pestrel.com +# Installed to /etc/nginx/conf.d/radar.conf by setup.sh +# +# Requires /etc/nginx/nginx.conf to include: +# include /etc/nginx/conf.d/*.conf; + +server { + listen 80; + listen [::]:80; + server_name radar.pestrel.com; + + root /srv/www/radar; + index index.html; + + # APNG refreshes every ~6 minutes; let clients revalidate often. + location ~ \.apng$ { + add_header Cache-Control "no-cache"; + } + + location / { + try_files $uri $uri/ =404; + } +} -- cgit v1.3