How often does a board update, and can it be faster?
A board reads its file again every 15 seconds. Add &every=5 to the address to read every 5 seconds, which is as fast as it goes. Changes appear on the next read, without the page reloading.
Changing the interval
| Address | Reads the file |
|---|---|
/board?src=ADDRESS | Every 15 seconds |
/board?src=ADDRESS&every=5 | Every 5 seconds, the fastest |
/board?src=ADDRESS&every=60 | Once a minute |
/board?src=ADDRESS&every=3600 | Once an hour, the slowest |
Faster is not always better. Each read is a request to your host: at the default, one screen makes 5,760 of them a day. For a board fed by a nightly job, every=300 asks 288 times a day and loses nothing.
Where the rest of the delay comes from
The board's interval is only the last link. How old the picture on the wall can be is the sum of three things:
- How often the file is written. A script on a one-minute timer can be a minute behind the truth.
- How long the host caches it. A bucket set to
no-cacheadds nothing. A file read from a GitHub repository can be five minutes old. See where to host a board file. - The board's interval. Up to 15 seconds, or whatever
everysays.
If a board feels slow, the first two are usually where the time goes.
What happens between reads
- Times keep counting. A node with
sinceshows "12 mins ago", then "13 mins ago", without waiting for a new file. - The board checks whether the file has gone stale, if the file has
stale_afterset. See why a board goes grey. - The animation carries on: green breathes, red pulses, blue turns.
What changes look like
When a node's state changes, its orb changes colour where it stands. When nodes are added, removed or rewired, the board lays itself out again to fit.
Is it real time?
No. The board asks for the file on a timer; nothing is pushed to it. For a wall display that is the right trade: it works with any host that can serve a file, and a few seconds make no difference to someone glancing up from a desk.
A board carried inside a link, made with the editor's Copy link button, does not update at all. It shows what was in the link.
Related questions
-
Why has my board gone grey?
A grey board has stopped trusting what it is showing. Either the file says it should have been rewritten by now and was not, or the last attempts to read it failed. A line at the bottom of the board says which.
-
Where can I host a board file?
Anywhere that serves the file over https, lets other websites read it, and does not cache it for long. A storage bucket, a public GitHub repository or a web server you already run will all do.
-
How do I write a board file from Python, JavaScript, Go, Ruby, PHP or a shell script?
Build the board as an ordinary dictionary, object or struct, turn it into JSON with the language's own JSON library, and write it to a file. There is no SDK to install, because there is nothing to call.