Operating-system breakdown shows which systems have free workstations. Fullness, closing time, and printer working status stay attached to the individual lab.
Live card
Category: Schools. Tags: Schools and campuses, Numbers and metrics.
Data and privacy
Feed: screenrig.labs/v1.
Feed documents carry source attribution. The Player supplies the feed to the card.
Counts only, never who is at a workstation.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Computer labs" | maxLength: 40 | |
sort | string | "feed" | "feed", "free" | feed keeps the order given; free puts the lab with the most free workstations first. |
lowPercent | integer | 20 | minimum: 1; maximum: 50 | A lab with this percent or fewer of its workstations free reads Filling up. |
showPlatforms | boolean | true | ||
showPrinters | boolean | true | ||
staleMinutes | integer | 10 | minimum: 1; maximum: 1440 | |
hour12 | boolean | false | ||
timeZone | string, null | null |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
labs | array | [] | minItems: 0; maxItems: 8 | The labs. A feed (screenrig.labs/v1) wins when present; the data store supplies the same rows otherwise. |
labs[].name | string | minLength: 1; maxLength: 40; Required | ||
labs[].location | string | maxLength: 40 | Building and room: Irving K. Barber, level 2. | |
labs[].total | integer | minimum: 0; maximum: 2000; Required | Workstations in the lab. | |
labs[].free | integer | minimum: 0; maximum: 2000 | Workstations free now. Without it the card uses total minus inUse. | |
labs[].inUse | integer | minimum: 0; maximum: 2000 | ||
labs[].open | boolean | true | ||
labs[].closesAt | string | maxLength: 32 | ISO 8601; with an offset or wall time in the screen's zone. | |
labs[].opensAt | string | maxLength: 32 | When a closed lab opens next, ISO 8601. | |
labs[].platforms | array | maxItems: 4 | Free workstations by operating system. | |
labs[].platforms[].os | string | maxLength: 20; Required | ||
labs[].platforms[].free | integer | minimum: 0; maximum: 2000; Required | ||
labs[].printers | array | maxItems: 12 | ||
labs[].printers[].name | string | maxLength: 30 | ||
labs[].printers[].status | string | "ready", "low-paper", "out-of-paper", "low-toner", "out-of-toner", "jam", "offline", "error"; Required | ||
updated | string | "" | maxLength: 32 | When the counts were taken, ISO 8601 (data store only; a feed carries fetchedAt). |
Example params
{
"theme": "neomustard"
}
screenrig card create --type computer-labs --major 1 --file params.json --context-file context.md
Example data
{
"labs": [],
"updated": ""
}
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, place it with the layouts and anchors and update its data as in Write live values.