A Widget Context Protocol (WCP) widget that displays live weather, date, and time for any location worldwide. Powered by Open-Meteo — 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 |
|---|---|---|
| Weather Ticker | 6x2 | Scrolling ticker with location, date, time, weather conditions |
| Weather Full | Full page | Detailed weather display with forecast |
docker run -d \
--name wcp-widget-weather-ticker \
-p 3739:3739 \
-v weather_config:/app/data \
-v weather_published:/app/published \
-e CONTAINER_NAME=wcp-widget-weather-ticker \
--restart unless-stopped \
docker.io/penrithbeacon/wcp-widget-weather-ticker:latest
services:
weather-ticker:
image: docker.io/penrithbeacon/wcp-widget-weather-ticker:latest
container_name: wcp-widget-weather-ticker
ports:
- "3739:3739"
volumes:
- weather_config:/app/data
- ./published:/app/published
environment:
- CONTAINER_NAME=wcp-widget-weather-ticker
restart: unless-stopped
volumes:
weather_config:
Configure through your WCP dashboard's settings panel. The dashboard reads the config array
from the manifest and POSTs values to /widget/configure.
| Field | Type | Description |
|---|---|---|
location | autocomplete | Live search — returns matching cities from Open-Meteo geocoding |
units | select | celsius or fahrenheit |
refresh_interval | number | Refresh interval in seconds (300-7200, default 900) |
| 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 scrolling ticker (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-page weather detail |
GET /widget/manifest | Lightweight manifest subset |
POST /widget/configure | Save widget configuration (per instance) |
GET /widget/api/search | Location autocomplete (query param: q) |
GET /widget/api/weather | Current weather data (params: lat, lon, units) |
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 | 6x2 |
| Multi-instance | Yes (config keyed by Instance-Id) |
| Property | Value |
|---|---|
| Base image | python:3.12-slim |
| Platforms | linux/amd64, linux/arm64 |
| Port | 3739 |
| Framework | Flask |
| Dependencies | Flask, requests |
| Persistent storage | Named volume for per-instance config |
| Tag | Description |
|---|---|
latest | Most recent stable release |
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 | Multi-instance headers, autocomplete config type |
1.1.0-wcp1.3.0 | Components array, ticker role |
Content type
Image
Digest
sha256:e0c0e3f94…
Size
47.1 MB
Last updated
5 months ago
docker pull penrithbeacon/wcp-widget-weather-ticker