Every grower who has put a board in a shed knows the moment. The router is in the house, the shed is forty meters away, and on a damp evening the signal just gives up. Until this month, so did Rillwork.
Offline first changes where the patch lives. The editor still runs in your browser, but the board now keeps its own copy of the patch and runs it with no help from us.
The patch is the program
A patch is just a list of operator boxes and the cables between them. That list is small, usually under two kilobytes, so the board can hold it, check it and run it in a loop every few seconds.
What stays on the board
- The patch itself, signed so a half sent update can't run.
- The last 48 hours of readings, so charts fill in when you reconnect.
- A copy of tomorrow's rain forecast, fetched every evening while the signal is good.
If the board can't reach us, it should behave like a good neighbor: water what's dry, then tell you about it later.
Turning it on
Offline mode is on by default for Allotment and Commons plans. On an older board, update the firmware from the editor and it starts on the next restart:
$ rill board update --channel stable board shed-01 fw 2.3.0 -> 2.4.0 patch cached 1.7 kB signed ok offline mode enabled
We tested it through a full week of Porto drizzle with the router unplugged. Every bed got its water, and the charts caught up in under a minute when we plugged it back in.