
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.
The short of it

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
| Board | ESP32 dev board (ex-NerdMiner CH340 unit, no PSRAM) |
|---|---|
| Display | ILI9341 320×240 SPI, rotation 1 |
| Radar | NOAA/NWS composite reflectivity (GEMPAK grid), decoded on-chip |
| Lightning | 30-minute accumulated density grid, gzip + uzlib |
| Verified | 2026-10-04: clean cycle, radar OK, lightning OK, ~93 KB heap peak |
How it works
- Fetch the operational reflectivity mosaic; decode and paint cells above a dBZ floor.
- Fetch the 30-minute lightning density product; unpack and draw density blocks.
- Render over a built-in coastline underlay with grid, legend and attribution.
- The two fetches are decoupled: a lightning problem cannot delay the radar.
Field notes

- The 15-minute lightning product is GRIB2 with JPEG-2000 data — infeasible in ~190 KB heap. Use the 30-minute product.
- TLS on this board is heap-sensitive: finish fetches before allocating large buffers.
- Awareness only — do not shelter, navigate or fly by this screen.
Make your own

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.
