A Widget Context Protocol (WCP) internet radio player with four components: a full radio player, a masthead play/stop control, a playing LED indicator, and a now-playing ticker. Powered by Radio Browser API — free, no API key required.
Specification: widgetcontextprotocol.com | Part of the Penrith Beacon WCP widget suite.
WCP 2.1.0 certified. Full theme reception, orchestration-aware state, Publish to Web, WCP export.
| Component | Default size | Description |
|---|---|---|
| Radio Player | 4x4 | Full station search + playback |
| Radio Control | 160-240px | Masthead play/stop with station name |
| Playing LED | 40-60px | Masthead LED indicator — green when playing |
| Radio Ticker | Ticker | Masthead scrolling now-playing strip |
docker run -d \
--name wcp-widget-radio \
-p 3741:3741 \
-v radio_published:/app/published \
-e CONTAINER_NAME=wcp-widget-radio \
--restart unless-stopped \
docker.io/penrithbeacon/wcp-widget-radio:latest
services:
radio:
image: docker.io/penrithbeacon/wcp-widget-radio:latest
container_name: wcp-widget-radio
ports:
- "3741:3741"
volumes:
- ./published:/app/published
environment:
- CONTAINER_NAME=wcp-widget-radio
restart: unless-stopped
| Header | Required | Description |
|---|---|---|
Wcp-Instance-Id | Yes | Unique card instance identifier |
Wcp-Dashboard-Id | Yes | Dashboard installation identifier |
Wcp-Version | Yes | WCP protocol version of the requesting dashboard |
Wcp-Widget-Id | Yes | Widget identifier within the dashboard |
Wcp-Orchestration-Id | No | Active orchestration identifier (for state scoping) |
Wcp-Application-Id | No | Active application identifier (for state scoping) |
| Endpoint | Description |
|---|---|
GET /wcp | Container Directory — WCP two-tier discovery |
GET /widget/wcp | Widget Manifest with runtime publish status |
OPTIONS /wcp | CORS preflight (all widget routes) |
GET /widget/ | Compact radio player (iframe) |
GET /widget/index | Widget Index — lists all controls |
GET /widget/health | Health check with container name |
GET /widget/icon.svg | Widget icon (SVG) |
GET /widget/api/guids | Component UUIDs for orchestration binding |
GET /widget/full | Full radio player page |
GET /widget/control/radio | Masthead control: play/stop + station |
GET /widget/control/volume | Volume control component |
GET /widget/led | Masthead LED: playing indicator |
GET /widget/ticker | Masthead ticker: scrolling now-playing |
GET /widget/api/search | Station search (query param: q) |
GET /widget/api/top | Top 12 stations by click count |
GET /widget/api/state | Current playback state |
POST /widget/api/state | Update playback state |
GET /widget/export.wcp | Self-export as .wcp package |
POST /widget/publish | Accept SPA HTML for Publish to Web |
DELETE /widget/publish | Remove published SPA |
GET / | Serve published SPA (if present) |
| Property | Value |
|---|---|
| WCP Version | 2.1.0 |
| Widget Version | 1.6.0 |
| Render mode | iframe |
| Auth | None |
| Default card size | 4x4 |
| Multi-instance | Yes |
| Property | Value |
|---|---|
| Base image | python:3.12-slim |
| Platforms | linux/amd64, linux/arm64 |
| Port | 3741 |
| Framework | Flask |
| Dependencies | Flask, requests |
| Persistent storage | Published SPA only (playback state is in-memory) |
| Tag | Description |
|---|---|
latest | Most recent stable release |
1.6.1 | WCP 2.2.0 Bonjour registration; default waveform favicon; theme fragment fix |
1.6.0-wcp2.1.0 | /widget/index directory page, audit compliance |
1.5.0-wcp2.1.0 | /widget/health returns container name |
1.4.0-wcp2.1.0 | WCP 2.1.0 upgrade, orchestration ID context |
1.3.0-wcp2.0.0 | Container block, manifest image source |
1.2.1-wcp1.4.0 | Server UUID, Container Directory, Wcp-Widget-Id |
1.2.0-wcp1.3.1 | CORS headers, multi-instance support |
Content type
Image
Digest
sha256:dd38629bc…
Size
46.9 MB
Last updated
5 months ago
docker pull penrithbeacon/wcp-widget-radio