Webhook Widget
Menu Family rota

Example

Family rota

Whose turn it is this week, shared with the household.

gridsharelight & dark
Family rota
json
{
  "v": 1,
  "preferredFamily": "systemSmall",
  "refresh": 21600,
  "accessibility": "Family rota this week: Bins out, Sam; School run, Alex; Dishes, Jo; Hoover, Mia; Dog walk, Sam",
  "view": {
    "type": "vstack",
    "align": "leading",
    "spacing": 8,
    "padding": 14,
    "children": [
      {
        "type": "hstack",
        "spacing": 5,
        "children": [
          {
            "type": "symbol",
            "name": "person.3.fill",
            "style": "caption2",
            "color": "orange",
            "accentable": true
          },
          {
            "type": "text",
            "text": "FAMILY ROTA",
            "style": "caption2",
            "weight": "bold",
            "color": "secondary",
            "lines": 1
          }
        ]
      },
      {
        "type": "grid",
        "spacing": 5,
        "rowSpacing": 6,
        "columns": [{"align": "center"}, {"w": "fill"}, {"align": "trailing"}],
        "text": {"style": "subheadline", "color": "primary", "lines": 1},
        "overflow": "drop",
        "more": {
          "type": "text",
          "text": "+{count} more",
          "style": "caption",
          "color": "secondary"
        },
        "rows": [
          [
            {
              "type": "symbol",
              "name": "trash.fill",
              "style": "caption",
              "color": "green",
              "accentable": true
            },
            "Bins out",
            {"type": "text", "text": "Sam", "weight": "semibold"}
          ],
          [
            {
              "type": "symbol",
              "name": "car.fill",
              "style": "caption",
              "color": "blue",
              "accentable": true
            },
            "School run",
            {"type": "text", "text": "Alex", "weight": "semibold"}
          ],
          [
            {
              "type": "symbol",
              "name": "fork.knife",
              "style": "caption",
              "color": "orange",
              "accentable": true
            },
            "Dishes",
            {"type": "text", "text": "Jo", "weight": "semibold"}
          ],
          [
            {
              "type": "symbol",
              "name": "house.fill",
              "style": "caption",
              "color": "purple",
              "accentable": true
            },
            "Hoover",
            {"type": "text", "text": "Mia", "weight": "semibold"}
          ],
          [
            {
              "type": "symbol",
              "name": "pawprint.fill",
              "style": "caption",
              "color": "brown",
              "accentable": true
            },
            "Dog walk",
            {"type": "text", "text": "Sam", "weight": "semibold"}
          ]
        ]
      },
      {"type": "spacer"}
    ]
  }
}
This payload is for the small size. The larger sizes show the same payload with empty space around it. For a smaller size, the server sends a different payload.

How it works

This example shows a shared hook. One person writes the endpoint and shares the hook from the app. Each person in the household adds it to their Home Screen. A shared hook is free on the other person's phone. All the phones fetch the same endpoint: change two names on the server and each phone shows the change on its next refresh.

The jobs are a grid with three columns: an icon, the job, and the person whose turn it is. The job column has "w": "fill", so it takes the remaining width and is truncated first. The name column is semibold and trailing-aligned, so the names align at the right edge.

The grid has "overflow": "drop" and a more row. Send every job. A small widget shows as many as fit at the person's text size, and the more row shows how many it left out.

This payload has no bg and no hex colour. The widget uses the system background, and its colours change with light and dark mode. The server calculates the rota from the date. The rota changes each Monday.

Put it on your Home Screen

We serve this example at the URL below. The server generates the timestamps at the time of each request. Add the URL as a hook in the app, and the widget works on your phone.

URL
https://webhookwidget.com/demo/chores

Open the payload →

Next

Deploy status: The latest build result and when it finished.
All examples