Skip to main content

Widgets

Widgets are the building blocks of playlists. Every playlist item is a widget with its own options: an image, a video, a web page, a weather forecast, a news feed and so on. This page explains how to work with the widgets available to your organization. To build your own widgets, see Building widgets.

The widgets list​

Open Content → Widgets. The list shows each widget's Name, its type, its Availability and its Update Interval (how often the widget fetches new data, for widgets that do).

Availability tells you where the widget comes from:

AvailabilityMeaning
SystemIncluded with Castmill and offered on every network
NetworkAdded by your network administrator for organizations in the network
This organizationUploaded by your organization; only your organization can use it
The widgets list with the system widgets, their type, availability and update intervalThe widgets list with the system widgets, their type, availability and update interval

Use View Details to inspect a widget. The details show the Template, Options Schema, Data Schema, Translations, bundled Assets and, for widgets that connect to external services, Integrations.

The details of the QR Code widget with its templateThe details of the QR Code widget with its template

Built-in widgets​

Castmill includes these system widgets:

WidgetWhat it shows
ImageAn image from your media library
VideoA video from your media library
WebA web page
WeatherCurrent weather and forecast from Open-Meteo
QR CodeA QR code for a URL or text
Stock TickerStock quotes from Finnhub; needs a Finnhub API key
RSS NewsHeadlines from an RSS feed
Spotify Now PlayingThe track currently playing on a Spotify account; needs a Spotify connection
Layout WidgetA layout, with a playlist in each zone
Location DisplayA demonstration widget that shows the location you choose
IntroThe welcome content placed on newly registered devices

Your network administrator decides which widgets your organization can use, so your list can differ. Image, Video and Layout Widget are core widgets and are always available, because media and layouts depend on them.

Using widgets in playlists​

You add widgets to playlists in the playlist editor: drag a widget into the playlist and fill in its options. See Playlists.

Some widgets show editable texts. In the widget settings, Edit texts lets you click a highlighted text in the preview to change or hide it, without changing the widget itself.

Integration credentials​

Some widgets fetch data from external services that need credentials, such as an API key or an OAuth connection. You configure them in the widget's Integrations tab: open Content → Widgets, click View Details on the widget and select Integrations.

Credentials have a scope:

ScopeApplies to
Organization-wideEvery use of the integration in your organization
Widget-specificThis widget only

Depending on the service, you enter an API Key and click Save Credentials, or you connect an account with OAuth 2.0, for example Connect to Spotify. Test Connection checks that the credentials work. Connection Status shows Valid, Invalid or Pending Setup.

The Integrations tab of the Stock Ticker widget asking for a Finnhub API keyThe Integrations tab of the Stock Ticker widget asking for a Finnhub API key

A network administrator can also configure credentials for the whole network. In that case the Integrations tab tells you that the credentials already exist, and for OAuth services you only connect your account.

When you add a widget whose credentials are missing to a playlist, the dashboard shows Credentials Required with a Go to Integrations button.

note

Credentials are stored encrypted on the server.

Uploading a widget​

Organizations can add their own widgets.

  1. Open Content → Widgets.
  2. Click Upload Widget.
  3. Select or drop a widget file. A JSON definition must contain at least the name and template fields. A ZIP file can bundle the definition with assets such as icons, images and fonts.
  4. Click Upload Widget in the dialog.
The Upload Widget dialog with the required fields, an example definition and the file drop areaThe Upload Widget dialog with the required fields, an example definition and the file drop area

The widget is added with the availability This organization. Uploading and deleting widgets needs the Administrator, Manager, Editor or Publisher role.

Deleting a widget​

You can delete widgets that your organization uploaded. If the widget is used in playlists, the confirmation lists them: deleting the widget also removes its items from those playlists. This cannot be undone.

You cannot delete system or network widgets. To stop offering them, ask your network administrator.

Widget access for network administrators​

Network administrators control which organizations can use each system and network widget in Widget Access, with these options:

OptionWho can use the widget
All organizationsEvery organization, including ones created later
All except…Every organization except those you exclude
Only selected…Only the organizations you add
HiddenNo organization in the network

You cannot remove access from an organization that still uses the widget in its playlists. See Network administration.