Daylight card

Sunrise, sunset, day length, the sun’s path and moon phase — computed on the Player, with no feed.

Computed sunrise, sunset and day length appear alongside the sun’s position and moon phase. Primetime adds a gentle sun entrance, quiet approaching-event reminders and cues synchronized to sunrise and sunset. Fixed-date and polar-day/night displays retain their existing behavior.

Live card

This card is drawn in your browser by the same code the Players run, with sample data.

Category: Weather. Tags: Weather and environment, Clocks and calendars.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
locationobjectadditionalProperties: false; Required
location.namestringmaxLength: 40; Required
location.latitudenumberminimum: -90; maximum: 90; Required
location.longitudenumberminimum: -180; maximum: 180; Required
datestring, nullnullpattern: "^\\d{4}-\\d{2}-\\d{2}$"YYYY-MM-DD; null is today in the zone.
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

This card has no dynamic properties.

Example params

{
  "theme": "neomustard",
  "location": {
    "name": "Vancouver",
    "latitude": 49.25,
    "longitude": -123.0
  }
}
screenrig card create --type daylight --major 1 --file params.json --context-file context.md

Layouts

This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.

Layouts: full. Forms: landscape, portrait.

Use this card

Add this card to a playlist as in Publish a card canvas and place it with the layouts and anchors.