Use

Widgets

On this page

This page is a reference for every widget that ships with the system, and a guide to setting each one up. When you finish, you know what each widget shows, what it needs, and how to turn it on for a frame.

A widget is one thing a frame can show: the clock, the weather, your calendar, photos, a Home Assistant dashboard, greeting cards, or the holiday of the day. You choose widgets per frame in the admin.

Widget Shows Needs On when a frame is claimed
Clock The time and date. Nothing. Yes
Weather Current conditions and a forecast. US locations only. A location in Library. The fetcher. Yes, if a location exists
Calendar Today's events, a week view, and a live map of any flight on the calendar. A calendar in Library. The fetcher. Yes, with no calendars ticked
Photos A daily set of photos, also the screensaver. A Nextcloud album or a library album. No
Home Assistant Your Home Assistant dashboard. The address of Home Assistant. No
Cards Greeting cards from family, as stamps over the photos. Covers and stamps, and a link per person. No
Holidays The silly holiday of the day and countdowns to the big ones. Nothing. No

Turn widgets on and off

  1. Select Frames, then the frame.
  2. Open Widgets in the rail on the left.
  3. Switch each widget On or Off.
  4. Select Save.

Once a widget is on and has settings, it gets its own section in the rail, named after the widget. Settings save from that section, with its own Save button. If a widget is off, its section says "Weather is off" (or the widget's name) and links back to Widgets.

The widgets list shows the enabled widgets first, in the order you switched them on, then the rest.

Where widgets appear on the frame

There is no drag-to-reorder. The home screen has fixed cells, and each widget has its own:

  • Clock and Weather sit in the top row.
  • Calendar fills the lower row.
  • Holidays, Photos and Cards sit beside the calendar, in that order. Each one the frame shows takes a column from the calendar.

Most widgets also add a page to the frame's navigation rail. A touch on the screen while the photos show slides the rail in from the left. It has a button for each page and a Dim button:

Widget Page on the frame
Weather Weather
Calendar Week, shown once a ticked calendar has been fetched
Photos Pictures, shown only when there are photos
Home Assistant Home Assistant, shown only when an address is saved
Cards Mailbox, shown when there are cards

Changes you save reach the frame within a minute or two. The frame polls the server about every 20 seconds.

Clock

Shows the time and date in the frame's time zone. It has no settings and is on by default.

The time zone is a property of the frame, not of the widget. New frames use America/New_York. Change it in the frame's Schedule section. See Use the admin: Schedule and bedtime.

Weather

Shows current conditions, the next 24 hours, and the next 7 days from the US National Weather Service (api.weather.gov).

Warning

Weather works for US locations only. The National Weather Service has no data elsewhere.

Set it up

  1. In the admin, select Library, then Add location under Locations.
  2. Enter a Name, a Latitude and a Longitude. Leave Stations empty at first.
  3. Select Add location.
  4. Open the frame, then Widgets, switch Weather on, and select Save.
  5. Open the Weather section and pick the Location. If you have no location yet, select New location there.
  6. Select Save.

By default the server picks the nearest three observation stations. Fill Stations with up to five comma-separated four-character station IDs (for example KJFK) only if you want specific ones.

When you claim a frame, Weather turns itself on and uses your first location (the one with ID 1), if that location exists. Otherwise Weather stays off until you set it up.

How it refreshes

The fetcher downloads from the National Weather Service. It needs the cron job from Install the frame server.

Data Refreshed about every
Current conditions 10 minutes
Hourly and daily forecasts 30 minutes
The grid point for a location 24 hours, or sooner if you move the location

The admin refuses to delete a location that a frame's Weather widget uses.

Calendar

Shows today's events on the home screen, and a week view on its Week page. It reads calendars shared as public iCal links, such as Nextcloud.

Set it up

  1. Add the calendar's host to calendar_hosts in config.php. The server downloads only from listed hosts, over HTTPS, with no port and no user name in the address.
  2. In the admin, select Library, then Add calendar under Calendars.
  3. Enter a Name and the calendar's Share URL. Add a Color like #6cb6ff if you want a colored dot.
  4. Select Add calendar.
  5. Open the frame, then Widgets, switch Calendar on, and select Save.
  6. Open the Calendar section, tick the calendars to show, and select Save.

A Nextcloud share link in either form works:

  • https://cloud.example.org/apps/calendar/p/<token>
  • https://cloud.example.org/remote.php/dav/public-calendars/<token>

The server turns either form into Nextcloud's export address. Any other address is fetched as given, so it must return an iCal file.

A calendar with nothing ticked shows no events, and the Week page does not appear. There is no "show all" shortcut.

The Library table shows each calendar's status: OK, Error with the message from the last attempt, or Not fetched if the fetcher has not run yet. A calendar's pencil button renames it and sets its color. Calendars refresh about every 15 minutes.

Flight tracking

When an event on any ticked calendar describes a flight, the frame shows a full-screen map of it while it is in the air: the route, the plane, its altitude and speed, and the arrival time. A touch shrinks the map to a small tile in the top-right corner; touching the tile brings it back. Each new flight starts full screen. There is no switch: it comes with the Calendar widget.

An event counts as a flight when it names an airline and flight number, and either names its airports or contains the word "flight". For example:

Field Text
Title Flight to Salt Lake City: Delta DL 1376 / DL 0387 via ATL
Location DJT (Palm Beach) to SLC

That event is two legs, DL 1376 from DJT to ATL and DL 387 from ATL to SLC. The airports are read in order from the location, and a via ATL in the title (or layover … in ATL in the description) adds the connection. Airports must be three-letter codes in capitals.

Flight numbers come from the title. To put them anywhere else, or to choose exactly which numbers count, tag them:

FLIGHT: DL 1376, DL 0387

A tag can sit in the title, location or description. When an event has a tag, only the tagged numbers count. Untagged numbers in the description are always ignored, so booking codes such as UA1234 are never mistaken for flights.

What the frame shows:

Situation Screen
A leg is in the air The map, with the plane at its live position.
Between legs (a layover) Nothing: the normal screen. The map returns when the next leg takes off.
One-leg flight, no live position The map, with a gray plane where the schedule says it should be.
Several legs, no live position The map with the route and Tracking unavailable.
Landed Nothing.

The map can show from the event's start time until two hours after its end, while a leg is still in the air. The arrival time is the event's end time, in the frame's time zone.

Live positions come from adsb.lol, a free, community-run network of aircraft receivers, under the ODbL licence; the map credits it. The server asks for each leg by its radio call sign (Delta's DL 1376 is DAL1376), about once a minute, only while a flight is under way, and for at most two flights per calendar. Frames never contact adsb.lol themselves.

Some flights cannot be tracked:

  • A leg flown by a regional partner, such as SkyWest flying as Delta Connection, uses the partner's call sign, so the lookup by the Delta number finds nothing. If you know the operating flight number, tag it instead: FLIGHT: OO 4567.
  • 32 airlines are known: the main North American ones and their regional partners (SkyWest OO, Endeavor 9E, Republic YX), plus large European, Middle Eastern, Latin American and Australian ones. An unknown airline code is not treated as a flight.
  • Over oceans the receivers may lose the plane; the map then falls back as in the table above.

Photos

Shows a daily set of photos on the screensaver and on the Pictures page. It has two sources, a Nextcloud public album and a photo library on your own server, and the library adds family links.

Settings, in the frame's Photos section:

Setting What it does
Photos come from Nextcloud link or Photo library.
Album link For Nextcloud: the public album link.
Album For the library: the album to show.
Show each photo for 5 to 3600 seconds. Default 30.
New photos daily at The time of day the frame picks its next set.

All of it is explained in Photos.

Home Assistant

Opens a Home Assistant dashboard on the frame. You set it per frame, and the address and token are stored on your server, not on the page you see.

What you need

  • A running Home Assistant that the frame can reach on your network, or over HTTPS.
  • Optional: the Kiosk Mode add-on from HACS. The URL the frame opens ends in ?kiosk, which hides the Home Assistant header and sidebar when Kiosk Mode is installed.
  • A long-lived access token, or Home Assistant's trusted networks. See Sign-in options.

Set it up

  1. In Home Assistant, create a dedicated user for the frame that is not an administrator.
  2. Sign in as that user. Open the profile (bottom of the sidebar), then Security, and under Long-lived access tokens create a token. Copy it. Home Assistant shows it once.
  3. In the admin, open the frame, then Widgets, switch Home Assistant on, and select Save.
  4. Open the Home Assistant section.
  5. Enter the Home Assistant address: the address only, no path, for example http://homeassistant.local:8123.
  6. Paste the token into Access token. The admin never shows it again. It shows Token set, and you can replace or remove it.
  7. Select Save.
  8. Choose the Dashboard once the frame has reported its dashboards. Until then the admin says "Waiting for the frame to report its dashboards." The default is Default (lovelace).

Changing the address removes the saved token, so enter the token again. A token never follows a new host.

Refresh the dashboard list

The frame, not the server, lists your Home Assistant dashboards, because the server usually cannot reach Home Assistant on your network. The frame reads the list when it starts and every 6 hours, and reports it to the server. The Dashboard menu shows that list.

If you add a dashboard in Home Assistant, you can wait up to 6 hours or ask the frame to look again now:

  1. Open the frame, then the Home Assistant section.
  2. Next to Dashboard, select Rescan dashboards. Enter your password if the admin asks.
  3. Wait for the note beside the button. The frame picks up the request on its next check-in, usually within a minute or two.
  4. When the note says "Rescanned just now", open the Dashboard menu and choose your dashboard.
  5. Select Save.

The note beside the button tells you what is happening:

Note Meaning
Rescan requested ..., waiting for the frame... The request is waiting for the frame's next check-in.
Rescanned just now The frame reread the list and reported it. The note clears when you open the Dashboard menu.
The frame couldn't reach Home Assistant. The frame asked Home Assistant and got no answer. Check the address and that Home Assistant is running.
The frame didn't pick up the request. The frame did not check in within 10 minutes. Check that the frame is Online, then try again.

Rescan dashboards is off, with the reason beside it, when:

Why What to do
The kiosk is older than version 22. The reason says "Needs kiosk 22". Update the frame's kiosk. See Update the kiosk.
The frame is offline. Wait for the frame to come back online.
No Home Assistant address is saved. The reason says "Save the Home Assistant address first". Enter the address in Home Assistant address and select Save.
You sent a request less than 30 seconds ago. Wait 30 seconds.

Asking again while a request is waiting does no harm. It does not send a second request.

Address rules

Rule Detail
Form scheme://host or scheme://host:port. No path, no query, no user name or password. At most 300 characters.
https Allowed for any host.
http Allowed only for private network addresses (10.x.x.x, 172.16.x.x to 172.31.x.x, 192.168.x.x) and names ending in .local. The admin shows a warning that an http address sends the token and everything else unencrypted on your network.
Not allowed localhost, loopback and link-local addresses, IPv6 literals.

Sign-in options

A long-lived access token is the default. The token is sent only to the frame's own app code, through the frame's authenticated connection. It is never part of the dashboard page and never shown again in the admin. It is stored in the server's database.

Use a dedicated non-admin Home Assistant user, so a stolen frame can do no more than that user can.

Trusted networks are the alternative. Leave Access token empty, and let Home Assistant trust the frame's address. Without a token, the frame relies on Home Assistant's trusted networks.

Not verified

The trusted-networks setup was not tested for this page. It lives in Home Assistant's configuration.yaml under homeassistant: and auth_providers:. Follow Home Assistant's own documentation for the trusted_networks provider, give the frame a fixed address with a DHCP reservation, and choose a non-admin user for it.

Both options keep the frame limited to one place: the kiosk allows navigation only to the Home Assistant address you saved.

Cards

Cards are greeting cards that people send to a frame from their phones. A relative opens a private link, picks a cover, writes a message, and signs it with a finger or by typing a name. The card arrives on the frame as a postage stamp over the photos. Nobody needs an account.

Set it up

  1. Open Card designs and upload covers and stamps. See Card designs.
  2. Open the frame, then Widgets, switch Cards on, and select Save.
  3. Open the frame's Cards section to check the settings.
  4. Open the frame's People section and select New person.
  5. Enter their Name, which is printed on every card they send, then select Create link.
  6. Select Copy link and send it to that person. It looks like https://frames.example.com/frames/send/<43 characters>. The page it opens has a Send a card button.

Warning

The link is shown once. The server keeps only a hash of it. If you lose it, make a new one with New link.

What the relative sees

Opening the link shows a page for sending a card to the frame's recipient ("Cards for Grandma"). They:

  1. Pick a cover. The covers are grouped by category.
  2. Write a message of up to 400 characters and 8 lines.
  3. Sign it, by drawing with a finger or by typing a name of up to 40 characters.
  4. Select Send card.

There is no approval step. A card goes straight to the frame, and the person's link is your control over who can send. This is different from family photos, which wait for your approval.

What shows on the frame

  • A new card appears as a stamp on the photo screensaver. Up to five stamps show, plus a "+N more" stamp. Tap a stamp to open the card.
  • Without the Photos widget there is no screensaver for the stamps. Cards then appear only in the Mailbox.
  • Opened cards move to the Mailbox, where they stay for the number of days you set. Cards nobody has opened never expire.
  • The home screen has a Mailbox cell that shows how many new cards there are.

Settings per frame

In the frame's Cards section, under Settings:

Setting What it does
Name on the card page Senders see "Cards for Grandma". Up to 24 characters. Leave empty to use the frame's name.
Keep opened cards for 1 to 30 days. Default 30.
Categories offered The cover categories senders can choose from: Thinking of you, Birthday, Thank you, Funny, Sweet, Get well, Thanksgiving, Christmas, New Year, Holidays. Offer at least one.

Each person who sends cards gets their own link, made in the frame's People section, and the same link also sends photos when the frame takes them (see Family links). The People table shows each person's name, whether the link is active or revoked, what it offers, when it was created and when it was last used.

Action What it does
Rename Changes the name everywhere, including on cards already sent.
New link Replaces the link. The old link stops working at once. Asks for your password.
Revoke Stops the link, for cards and photos. Cards already sent stay on the frame. Asks for your password.
Restore Un-revokes the link and makes a new link. The old one stays dead. Asks for your password.
Delete unopened cards Deletes every card from that person that has not been opened yet. Opened cards stay. Asks for your password.
Delete Removes the person. Refused if they have sent cards: revoke the link instead. Asks for your password.

Cards sent

Cards sent lists the cards for this frame. Filter by status (All, Not opened, Opened) or by person. You can delete a card that has not been opened. Show older loads more.

Privacy

  • Messages are private from the admin. You see who sent a card, when, and whether it was opened. You do not see the message, and nobody does in the admin. The message is readable on the frame and by the sender through their own link.
  • The database holds the message in plain text. Anyone who can read var/frames.db can read the cards. Protect the file and its backups.
  • Links are secrets. A person's link is 43 random characters. The server stores only its hash, and shows the link once.
  • Revoking works at once. The old link stops working the moment you revoke or replace it.

Limits

Limit Value
Cards one link can send 6 per hour and 20 per day
Cards from one phone's address 30 per day
Unopened cards from one person 10
Unopened cards on one frame 30. After that, senders see that the mailbox is full.
Message 400 characters, 8 lines
Signature text 40 characters

Card designs

Card designs in the top bar holds the art for every frame's cards.

Covers are the card fronts.

  1. Select Upload covers.
  2. Choose images. JPEG, PNG or WebP, up to 4 MB, 400 to 4096 pixels on each side.
  3. Choose a Category for each cover.
  4. Select the add button. It shows the count, for example Add 3 covers.

The server crops each cover to 16:10 (from the center) and shrinks it to 1280x800. Upload it as it is. A cover already in the library is not added again.

Making covers

AI image tools such as Midjourney draw text badly, and they tend to add a fake card, a paper edge or a border around the picture. The frame adds its own stamp and layout, so a cover needs only the art.

  1. Generate art with no text, filling the whole picture, at 16:10. In Midjourney, add --ar 16:10 and --no text, letters, words, typography, border, frame, card, paper edge, mockup, table, margin, drop shadow.

  2. Ask for empty space where the lettering will go, such as sky or a plain wall.

  3. Add the lettering yourself with ImageMagick and a Google font, for example:

    convert art.png -font ./YourFont-Regular.ttf -pointsize 140 -fill white \
      -gravity north -annotate +0+120 "Happy Birthday" cover.jpg
    
  4. Upload cover.jpg. Keep it under 4 MiB. The font file name in the example is a placeholder: use the path to a font you downloaded.

Not verified

The convert command shows the shape of the step. Its font size and offsets were not tested on a real cover. Adjust them to your art.

In the covers grid you can filter by category and by On and Off. Select covers to turn them On or Off, to Set category, or to Delete. Open one for a larger view and its details.

Stamps are the small pictures on each card. Each card gets a random stamp from those that are on.

  1. Select Upload stamps.
  2. Choose images. JPEG, PNG or WebP, up to 4 MB, 100 to 4096 pixels on each side.
  3. Select the add button. It shows the count, for example Add 5 stamps.

The server crops stamps and shrinks them to 288x366. If no stamp is on, new cards get a plain stamp.

A cover or stamp that a sent card uses cannot be deleted. The admin offers to turn it off instead.

Back up var/notes/ together with var/frames.db. See Back up the server.

Holidays

Shows the day's silly holiday, such as Pizza Day or Talk Like a Pirate Day, and counts down to the big holidays. It has no settings and uses the frame's time zone. Turn it on per frame.

The silly holidays are a fixed list in web/app/widgets/holidays/days.php, one per date. Edit that file to change them. Some dates have none.

Countdowns cover New Year's Day, Valentine's Day, St. Patrick's Day, Easter, Mother's Day, Father's Day, Independence Day, Halloween, Thanksgiving and Christmas. Each one appears 30 days before the holiday, except Christmas, which starts on October 1. The card shows the two nearest. On the holiday itself, its name replaces the silly holiday.

The card disappears on a day with no silly holiday and no countdown in range.

How widgets are built

Each widget is a folder under web/app/widgets/ with its own settings, data, fetch code, frame code and admin code. Add or remove a folder and the rest of the system does not change. If you remove a widget's folder, frames that had it on stop showing it.

To write your own, see Developer documentation: widgets.

Next: Photos.