Skip to content

Add wikipedia-on-this-day widget#277

Open
mike-rambil wants to merge 1 commit intoglanceapp:mainfrom
mike-rambil:add-wikipedia-on-this-day
Open

Add wikipedia-on-this-day widget#277
mike-rambil wants to merge 1 commit intoglanceapp:mainfrom
mike-rambil:add-wikipedia-on-this-day

Conversation

@mike-rambil
Copy link
Copy Markdown

@mike-rambil mike-rambil commented Apr 11, 2026

Adds a new custom-api widget that displays notable historical events from Wikipedia's "On This Day" REST API, filtered to today's date.

  • Uses Wikipedia's free public REST API (/api/rest_v1/feed/onthisday/events/{MM}/{DD}) — no API key required
  • Computes today's date inside the template using now | formatTime, so the URL stays dynamic without needing any backend
  • Sends a descriptive User-Agent per Wikipedia's User-Agent policy
  • Cache set to 6h (content rolls over once a day)
  • README documents variants for events (default), births, deaths, and all

Preview widgets/wikipedia-on-this-day/preview.png

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant