Skip to content

Image Widget

Displays a background image from one of several sources: a custom URL, Bing Image of the Day, NASA Astronomy Picture of the Day, or Unsplash.

Configuration

KeyTypeDefaultDescription
sourcestring"bing"Image source: "custom", "bing", "nasa", "unsplash"
customUrlstringURL to use when source is "custom"
nasaApiKeystring"DEMO_KEY"NASA API key (optional, demo key has rate limits)
unsplashAccessKeystringUnsplash access key (required for Unsplash source)
countnumber1Number of images to fetch (max 8); cycles through them
intervalnumber0Seconds between image changes (0 = no auto-cycle)
fitstring"cover"CSS object-fit: "cover", "contain", "fill"

Getting API keys

NASA (optional): Register at api.nasa.gov for a free key. The DEMO_KEY works but has lower rate limits (30 requests/hour).

Unsplash: Create an app at unsplash.com/developers and copy the Access Key.

Bing: No key required.

Notes

  • Images are fetched server-side to avoid CORS issues
  • NASA APOD only returns images on days when the featured media is a photo (not a video); the widget skips video days automatically

Personal Homepage Dashboard