Browse documentation

Widgets

Create your first Widget

Create, preview, build, and install a glanceable widget with refresh behavior.

On this page

This guide creates a weather-style Widget. You can design and preview in a browser. Building requires the desktop app and a one-time setup.

1. Start the project

  1. Open Editor and choose Widget.
  2. Select a watch that supports widget glances.
  3. Start from the default widget or a template.

Make one change to save the project and give it a permanent URL.

2. Review the surfaces

The default widget includes a compact Glance and a full base page. Use the surface control to switch between them, and choose Add page when the content needs another view.

The initial temperature and weather text are preview samples. Bound layers use neutral unavailable text if no watch value has been saved; the sample temperature is not embedded as a fallback in the generated widget.

Keep the Glance focused on one question, such as the current status or latest value. Use pages for supporting information and actions.

The base page is required. Add more pages or menus only when they make navigation clearer. Place refresh, account, page, menu, and web-link actions on pages; actions are not available on the Glance.

3. Choose a data source

Select the background, open Data & values, and choose a source:

  • Manual content for values you type into elements.
  • Garmin watch data for steps, heart rate, battery, or weather.
  • Web service for JSON from your own HTTPS endpoint.

To show a shared value, select a text, metric, row, or chart and set its Content source. Choose Manage data source to return to the data settings.

For a web service, follow the Configure, Map response, and Review & save steps. Enter the HTTPS address, choose GET or POST, and test the request when possible. Then choose which response fields supply the Widget's values.

Give each mapping a fallback for a missing response field. A chart fallback needs 2–32 comma-separated numbers.

If the service requires sign-in, use a public endpoint you control or wait for account connection support. OAuth settings in older projects currently block builds. Replace all example addresses before building. The editor guide explains the advanced request fields.

4. Set refresh behavior

Use Updates to decide how data stays current:

  • Update when detail opens refreshes when the wearer opens the full widget from the glance. The glance shows saved data.
  • Refresh on Select without actions requests data from a detail page that has no action elements.
  • Scheduled refresh refreshes a web-service widget in the background, from 5 to 1440 minutes.
  • Keep last values offline shows the last successful result when an update fails.

Do not leave a connected widget without a refresh path. Studio reports that as a blocking design issue.

5. Preview real states

Use the footer scenarios while editing, then choose Preview for a clear view. Check loading, fresh, stale, offline, sign-in, empty, and error states on both surfaces.

Select the background and open Preview & state content to edit each state's sample text and values.

Make sure the Glance still makes sense in every state. On the base page, add a clear message or sign-in action when an account is required.

6. Save and build

After the project reports Saved, choose Build. Confirm the target watch and start the build. Studio points out unsupported features first.

When the build completes, continue to the installation guide. Transfer the .prg file to the watch, then open it from the watch's widget loop or glance list.

Up nextWidget editor