Sign inSign up

penrithbeacon/wcp-widget-radio

By penrithbeacon

•Updated 5 months ago

Image
0

1.7K

penrithbeacon/wcp-widget-radio repository overview

⁠WCP Widget: Radio

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.


⁠Components

ComponentDefault sizeDescription
Radio Player4x4Full station search + playback
Radio Control160-240pxMasthead play/stop with station name
Playing LED40-60pxMasthead LED indicator — green when playing
Radio TickerTickerMasthead scrolling now-playing strip

⁠Quick Start

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

⁠Docker Compose

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

⁠WCP Request Headers

HeaderRequiredDescription
Wcp-Instance-IdYesUnique card instance identifier
Wcp-Dashboard-IdYesDashboard installation identifier
Wcp-VersionYesWCP protocol version of the requesting dashboard
Wcp-Widget-IdYesWidget identifier within the dashboard
Wcp-Orchestration-IdNoActive orchestration identifier (for state scoping)
Wcp-Application-IdNoActive application identifier (for state scoping)

⁠Endpoints

EndpointDescription
GET /wcpContainer Directory — WCP two-tier discovery
GET /widget/wcpWidget Manifest with runtime publish status
OPTIONS /wcpCORS preflight (all widget routes)
GET /widget/Compact radio player (iframe)
GET /widget/indexWidget Index — lists all controls
GET /widget/healthHealth check with container name
GET /widget/icon.svgWidget icon (SVG)
GET /widget/api/guidsComponent UUIDs for orchestration binding
GET /widget/fullFull radio player page
GET /widget/control/radioMasthead control: play/stop + station
GET /widget/control/volumeVolume control component
GET /widget/ledMasthead LED: playing indicator
GET /widget/tickerMasthead ticker: scrolling now-playing
GET /widget/api/searchStation search (query param: q)
GET /widget/api/topTop 12 stations by click count
GET /widget/api/stateCurrent playback state
POST /widget/api/stateUpdate playback state
GET /widget/export.wcpSelf-export as .wcp package
POST /widget/publishAccept SPA HTML for Publish to Web
DELETE /widget/publishRemove published SPA
GET /Serve published SPA (if present)

⁠WCP Compatibility

PropertyValue
WCP Version2.1.0
Widget Version1.6.0
Render modeiframe
AuthNone
Default card size4x4
Multi-instanceYes

⁠Technical Details

PropertyValue
Base imagepython:3.12-slim
Platformslinux/amd64, linux/arm64
Port3741
FrameworkFlask
DependenciesFlask, requests
Persistent storagePublished SPA only (playback state is in-memory)

⁠Tags

TagDescription
latestMost recent stable release
1.6.1WCP 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.0WCP 2.1.0 upgrade, orchestration ID context
1.3.0-wcp2.0.0Container block, manifest image source
1.2.1-wcp1.4.0Server UUID, Container Directory, Wcp-Widget-Id
1.2.0-wcp1.3.1CORS headers, multi-instance support

⁠Source

Tag summary

Content type

Image

Digest

sha256:dd38629bc…

Size

46.9 MB

Last updated

5 months ago

docker pull penrithbeacon/wcp-widget-radio