Live data: text that changes by itself
Show prices, specials, wait times or numbers from a spreadsheet or another system, and change them from a phone.
A data source is a named list of values. Put a value’s tag in any text, and every screen shows the current value and follows it when it changes, usually within a second or two.
Values you type
- Open Data and press “New source”.
- Choose “Values you type”, give it a short name such as Shop, and press “Add source”.
- Type a name and a value on each row, for example “special” and “Tomato soup”. Press “Add a value” for more.
- Copy the tag shown beside a value, such as {{Shop.special}}, and paste it into any text in a design. In the designer, “Insert a live value…” under the text box does this for you.
Change values from a phone
- On the source, press “Phone page and push address”.
- Copy the staff page link and send it to whoever should be able to change the values.
- They open it on a phone, change a value and leave the box. Screens follow at once.
- The link needs no sign-in and can only change that one source’s values.
- “Replace these links” makes new ones and stops the old ones working.
From a spreadsheet
- Choose “Google Sheet or CSV” and paste the link. Share a Google Sheet as “Anyone with the link”.
- Use any cell by its address, such as {{Prices.B2}}.
- Or put labels in column A and values in column B, and use the label: {{Prices.Latte}}.
From another system
- Choose “JSON address” for a web address that answers with JSON and needs no sign-in. Nested fields are joined with dots, such as {{Status.queue.waiting}}.
- Or let the other system send values to you: on a “Values you type” source, copy the push address and have a till, booking system or script post new values to it.
Show or hide things by a value
A live value can also decide what appears. A “Sold out” layer can show only while stock is below 1, and a happy-hour slide can join a playlist only while a value is “on”.
- For a layer: select it in the designer and open its rules (“Always” in the panel on the right). For a playlist item: press its calendar chip.
- Switch on “Only while a live value says so”.
- Choose the source and the value, then a test: is, is not, is above, is below, has a value, or is empty.
- Press Done and save.
- The window shows the value as it is now, so you can check the test.
- Layers switch within about a second of the value changing; a playlist item joins or leaves at its next turn.
- Add a fallback after a bar for when there is no value yet: {{Shop.wait|ask us}}.
- Capitals do not matter in tags.
- Spreadsheets and JSON addresses are read about once a minute.
- Screens keep showing the last values they had if they lose their connection or a source cannot be reached.