Weird Little Server · project plate 15 · displays

CFL Radar

A NOAA weather radar that fits on a shelf and renders the weather on a microcontroller.

STATUS: verified 2026-10 · BOARD: ESP32 + 320x240 TFT

Blueprint plate of the radar display: an ESP32 with a TFT showing a Central Florida radar map with echo blobs and lightning bolts.
Plate 15 — the TFT, the coastline, and the weather the government already drew for you. Tap for the full-size plate.
Beelzebubba the Third, engraved ink devil in a striped vaudeville suit and feathered top hat, holding an unfurled blank scroll and giving a thumbs up

Beelzebubba the Third · the brief

# cfl-radar — a weather radar that fits on a shelf

*A field brief by Beezlebubba the Third · Weird Little Server · November 2026*

> Every weather app is a funnel with a forecast attached. This one is a small
> screen that fetches the actual government radar product, unpacks it on the
> microcontroller, and draws the weather over Central Florida. If the internet
> is down, it sulks quietly. If the weather is interesting, I take full credit.

## What it is

A standalone NOAA weather radar + lightning display for an ESP32 with a 320x240
color TFT: it fetches the national reflectivity mosaic and a lightning-density
product over Wi-Fi, decodes them **on the microcontroller**, and renders a map
of Central Florida with radar echoes and lightning density. No phone, no PC, no
relay box.

## Hardware

| Part | Notes |
|---|---|
| Board | ESP32 dev board (ex-NerdMiner CH340 unit, ESP32-WROOM, no PSRAM) |
| Display | ILI9341 320x240 SPI, rotation 1 (landscape) |
| Network | 2.4 GHz Wi-Fi |
| Data | NOAA/NWS public radar + lightning products |

## How it works

- **Reflectivity**: fetch the operational composite (GEMPAK grid), decode it,
  and paint cells above a dBZ floor with a classic radar palette.
- **Lightning**: fetch the 30-minute accumulated lightning-density product,
  unpack the compressed grid (uzlib/gzip path) and draw density blocks.
- Rendering: the map is drawn from a built-in coastline/polygon underlay with a
  grid, legend, and attribution. Cells are clipped to the map rect so the
  legend stays clean.
- The two fetches are decoupled: a lightning failure can never delay the radar
  refresh.
- Verified on hardware 2026-10-04 with a clean cycle (radar OK, 5637 cells;
  lightning OK, ~92 KB heap peak).

## Build it yourself

1. Arduino core 3.x + LovyanGFX (ILI9341, rotation 1).
2. Fill a secrets header: Wi-Fi SSID/password.
3. Flash; the first boot fetches, decodes and draws — it takes a few seconds
   and the screen stays blank until the first product is ready.
4. Tune the dBZ floor and palette to taste.

## Verification

- Serial: per-cycle lines for radar and lightning with cell counts and heap
  watermarks.
- Screen: echoes move when storms move; the legend matches the dBZ colors.

## Traps and field notes

- The 15-minute lightning product is a GRIB2 with a **JPEG-2000** data section —
  infeasible in ~190 KB of heap. Use the 30-minute accumulated product instead;
  it is the one that decodes.
- TLS on this board needs careful heap management: one big allocation error
  near the end of a fetch is almost always the mbedTLS buffers, not the network.
- The map extent is slightly wider than the lightning window, so edge cells are
  clipped rather than smeared into the margin.
- **Awareness display only — not for safety use.** Real warnings come from the
  NWS, not from a $6 display in my workshop.

## Safety

- Public data, receive-only, no radio. Do not navigate, fly, or shelter by this
  screen alone.

## Use this brief with an LLM

Feed this file to your assistant and ask it to change regions, swap the map
underlay, or add a second product. The GEMPAK decode and the heap budget notes
are the valuable part.
⤓ Download the brief .md · 3 KB

The short of it

Ink margin figure: a smug cumulus cloud with teeth, a lanyard and a badge
The weather, smug and self-satisfied.

Every weather app is a funnel with a forecast attached. This one is a small screen that fetches the actual government radar product, unpacks it on the microcontroller, and draws the weather over Central Florida. If the internet is down, it sulks quietly. If the weather is interesting, I take full credit.

Reflectivity comes from the operational GEMPAK mosaic; lightning from the 30-minute accumulated density product. The firmware decodes both on-chip and paints a map with echoes and density blocks, then repeats. It is an awareness display, not a safety device — the NWS holds that title.

On the board

BoardESP32 dev board (ex-NerdMiner CH340 unit, no PSRAM)
DisplayILI9341 320×240 SPI, rotation 1
RadarNOAA/NWS composite reflectivity (GEMPAK grid), decoded on-chip
Lightning30-minute accumulated density grid, gzip + uzlib
Verified2026-10-04: clean cycle, radar OK, lightning OK, ~93 KB heap peak

How it works

Field notes

Ink margin figure: the devil covering his face with one hand
Fifteen minutes of lightning, and it is JPEG-2000. Of course.

Make your own

Ink margin figure: the bland corporate demon holding out a clipboard
The coasts are drawn; fetch your own storms.

Wire an ILI9341, give it Wi-Fi, and let it fetch. The brief documents the GEMPAK decode, the heap budget, and why the 15-minute product is a trap.

Frieze: a garden for the radar: toothy clouds raining dots, dish-creatures, and umbrella-bearing devils
Frieze — a garden for the radar: toothy clouds raining dots, dish-creatures, and umbrella-bearing devils.