History

History

A page keeps rows from a service's answers on this Mac, and other pages read them back by period.

Most services report what's true now and forget the rest. Parcel lists the deliveries on the way and a short list of recent ones, so a page that reads it can't say how long deliveries took last quarter. Other services report a reading only as it is now.

History keeps what you choose from those answers, on this Mac. The source that fetches from the service gets a collect, which says which items to keep, which of their fields, under what key and for how long. Any page it names as a reader can then add a dataset source, which answers with the kept rows for the period showing.

  1. In two page files

    packages.json

    "parcel": {
      "url": "https://api.parcel.app", …
      "collect": {
        "dataset": "parcel-deliveries",
        "readers": ["delivery-times"], …
      }
    }

    delivery-times.json

    "kept": {
      "dataset": "parcel-deliveries"
    }
  2. In Legato

    Delivery times
    Delivered
    18
    Average
    3.2 days
    Since
    Aug 14
collect names the history and the page that may read it. That page’s own source names the same history, and its cards read the rows for the period showing.

sample keeps a reading of every item at a set interval, such as each monitor's state every 5 minutes, and a page for one item reads its own. An agent or a script can add rows too, for data that reaches the Mac some other way.

The rows stay on this Mac and don't sync. Settings → History shows each history, exports it and deletes it.

Start here

What a history holds