# CC1101WeatherTV — the weather console with a picture tube

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

> The house weather station speaks on 915 MHz, and until now only the web page
> could hear it. Now a small green television in the corner of the garage does
> the hearing — no Wi-Fi, no browser, just a phosphor tube and a devil who
> refuses to let composite video die. If you own a double-DIN car stereo with an
> RCA input, this project is for you.

## What it is

The WS-2902 915 MHz decoder from `cc1101-weather`, re-rendered as a **retro
green-phosphor weather console on NTSC composite video** using LovyanGFX's
`Panel_CVBS` driver. Build 2.1.0 (240x160 RGB332) also runs a Wi-Fi web server;
an archived 3.0 "scifi HUD" build (480x320, no Wi-Fi) exists for the display
purists.

## Hardware

| Part | Notes |
|---|---|
| MCU | ESP32-D0WD-V3 |
| Radio | CC1101 915 MHz FSK receiver (see the CC1101Weather brief for the protocol) |
| Video | Composite NTSC: DAC GPIO25 → RCA center, GND → RCA shell |
| Display | Any NTSC composite monitor — tested on a double-DIN car stereo |
| Power | USB 5 V |

## Screen layout (2.1.0)

- Double-line retro frame with a hero temperature (Font 6), humidity, wind,
  gust and a compass column; rain / UV / light stats; packet/RSSI/battery
  footer.
- Full redraw once per packet (~16 s); 1 Hz small-region updates for the clock
  and age so the screen does not visibly tear.
- Boot: an 8-bar color test pattern splash for ~7 s.
- A permanent footer line shows the device's local web address when Wi-Fi is up.

## How it works

- The `Panel_CVBS` driver generates NTSC from an RGB332 framebuffer; chroma is
  enabled (the green needs color), so `output_level` is the knob for signal
  cleanliness.
- Single framebuffer, no vsync: partial updates are the only way to keep
  tearing tolerable. Redraw small regions, never the whole frame, between
  packets.
- Text centering uses `textWidth()`; guessed positions produced stray glyphs
  on earlier builds (a "5" clipped at the edge) — measure, then draw.

## Build it yourself

1. Arduino core 3.3.x + LovyanGFX 1.2.33.
2. CC1101 wiring as in the decoder brief; add the video DAC wire.
3. Set your Wi-Fi in a secrets header (optional; the 2.1.0 build serves a page).
4. Flash `CC1101WeatherTV.ino` + `lgfx_tv.h`.

## Verification

- Serial: `[TV] init OK`, `[PKT] OK` every ~16 s.
- Picture: green console with a live temperature; the 1 Hz clock ticks.

## Traps and field notes

- The `senes`-era scifi build (3.0) lost its WiFi server because it had no
  `server.handleClient()` in the loop. If your page is dead but Wi-Fi is up,
  check the loop.
- Composite output quality depends on the RCA cable and the `output_level`
  value; tune it before blaming the driver.
- Display text in this driver is a bitmap font — no antialiasing, no mercy.

## Safety

- The CC1101 path is **receive-only**.
- Composite video: do not feed this into anything expecting a valid broadcast
  signal; it is a low-level NTSC baseband, which is what the car stereo wants.

## Use this brief with an LLM

Feed this file to your assistant and ask it to redesign the layout, add new
pages (wireless/aircraft/whatever), or port it to another composite library.
The panel timings and the packet decoder are the only two moving parts.
