Skip to content

Overview

Widgets ​

Widgets are live readouts on Home: a figure, a list, a countdown, a state or a chart, each one read-only tool call on a schedule, refreshed without a model.

Home's front panel: Cheapest fuel with a fuel glyph, Temperature now with a rain glyph, and Departures.Home's front panel: Cheapest fuel with a fuel glyph, Temperature now with a rain glyph, and Departures.
The front panel in demo mode.

AskPut the temperature at home on my front panel.

The assistant makes a widget with widget_create; it asks first, and then you accept what the widget will call.

AskShow the departures from the main station as a widget.

With a plugin that has a departures template, the widget refreshes every two minutes, with a train glyph on the next one.

AskMake the fuel widget show diesel.

widget_update changes it; a changed widget waits for you to accept its calls again.

What it gives you ​

  • No model in the loop. A widget is a call and a way to draw the answer; it refreshes on its own schedule and costs no tokens.
  • Only what you accepted. A widget runs as its own holder and may call exactly what you accepted when it was made.
  • Drawn as the app is drawn. Five views (stat, list, countdown, status, chart), controls such as a fuel picker or a place, a drill-in sheet, glyphs and a moving ambience behind a figure.
  • Arranged once, everywhere. Order and sizes are kept on the daemon for every device.
  • Quiet when unseen. Widgets stop refreshing 30 minutes after a device last looked (widgetIdle).

How it works ​

Add a widget ​

  1. On Home, under Front panel, tap New widget. It lists the templates of your installed plugins.
  2. Pick one, give it a Title and its parameters, and tap Add and review.
  3. The sheet lists every call it would make. Hold Hold to accept.
The sheet New widget: the templates of the installed plugins, each with its view kind and plugin.The sheet New widget: the templates of the installed plugins, each with its view kind and plugin.

Templates come with plugins (Widget templates); a template whose requests you accepted at install runs at once. You can also ask for a widget in a chat.

Arrange the front panel ​

Tap Arrange. Drag a widget by its handle (or use the arrow keys there), choose its size (Small, Wide or Tall), or Remove it. Done keeps the arrangement on the daemon.

The front panel while arranging: each widget with a handle, a size and Remove, and Done.The front panel while arranging: each widget with a handle, a size and Remove, and Done.
Arrange mode: the same front panel with a handle, a size and Remove on every widget.

A widget's … menu (or a long press) also has Refresh now, Review what it calls, Edit and Remove. Removing it drops what it was allowed to call.

Look closer ​

Some widgets open a sheet: a fuel widget's All stations, a departures widget's next train.

The sheet All stations of the Cheapest fuel widget: stations with their distance and price.The sheet All stations of the Cheapest fuel widget: stations with their distance and price.

Glyphs and ambience ​

A glyph is the small drawing beside a figure: any Lucide icon, named by the template, fixed or chosen from the answer by a lookup. Open-Meteo's template chooses the sky's icon:

json
"map": {
  "sky": {
    "lookup": ["$.now.code", "$.now.day"],
    "table": {
      "0/0, 1/0": "moon", "0, 1": "sun", "2/0": "cloud-moon", "2": "cloud-sun", "3": "cloud",
      "45, 48": "cloud-fog", "51, 53, 55, 56, 57": "cloud-drizzle",
      "61, 63, 65, 66, 67, 80, 81, 82": "cloud-rain", "71, 73, 75, 77, 85, 86": "snowflake",
      "95, 96, 99": "cloud-lightning"
    }
  }
},
"view": { "stat": { "value": "temp", "caption": "text", "glyph": { "from": "sky" } } }

Behind the figure an ambience can move for a few seconds when the value arrives, then rest. It stays still when the phone asks for reduced motion.

AmbientWhat it draws
rainSlanted rain falling
drizzleFine, sparse rain
snowSquare flakes drifting down
stormHeavy rain and two faint flashes of light
sunRays round the cell's top corner
fogBands of mist drifting sideways

Limits ​

WhatLimit
Widgets per workspace24
Refreshat least every minute
Keeps refreshing after a device last looked30 minutes; widgetIdle in workspace.json, or never

nocturn is open source. Example hosts and people on these pages are made up.