Spanish Total.js
English
Documentation For AI agents
Contents

Panels

Create small live web pages, for example for a display, and send them new content.

.md Website
On this page

A panel is a small web page with a fixed size, made for a display at an entrance, in a hall or on a wall. Its content is HTML that another program sends to the panel, for example a Flow that formats the latest value of a sensor. Every open panel page updates at once when new content arrives.

The Panels screen with a panel for a park entrance

Create a panel

  1. Open Panels and select Create.
  2. Fill in the Name and the Width and Height in pixels. Design the content for this size.
  3. Optionally choose a Category, write the Location, a Note, an Icon, a Color and the position.
  4. Select SUBMIT.

The panel form with name, size and location

Panel is inactive stops the panel from accepting new content.

The panel menu

Select ... on a panel:

The panel menu with the two addresses

  • Copy panel URL address copies the address of the page to open on the display.
  • Copy Flow URL address copies the address that accepts new content. It contains the access token of the panel, so keep it private.
  • Update and Remove change or delete the panel.

Send content to a panel

Send a POST request with a JSON body that has an html field to the Flow URL address of the panel. From a terminal:

curl -X POST 'https://iot.example.com/panels/<panel id>/?token=<token>' \
  -H 'Content-Type: application/json' \
  -d '{"html":"<div style=\"font-size:72px\">20.4 °C</div>"}'

The answer is {"success":true}, and every open page of the panel shows the new content:

A panel showing the temperature of the City park

The platform keeps the last content, so a display that opens the panel later shows it too. See Show a live value on a panel for a complete example.

Made in Europe