How a cabin works
A cabin runs itself: from the floor weight it knows a person is inside and switches the light, ventilation and sign. The server link is needed for the interface, bookings and statistics, but the cabin's basic operation does not depend on it.
Modes
| Mode | When | Light | Ventilation | Sign | Wall controls |
|---|---|---|---|---|---|
| Sleep | empty, outside working hours | top lamp, Sleep mode level | Sleep airing schedule | off | inactive |
| Wait | empty, working hours | Standby mode level | Standby airing schedule | "free" | inactive |
| Work | someone inside | Operational level | Operational level | "busy" | active |
| Work Api | a booking is running | Operational level | Operational level | "busy" | active |
Levels and schedule are set on the cabin page.
Detecting a person
Under the cabin floor there are one or two load cells, each seeing the whole platform. The cabin takes the highest of their readings and decides whether someone is inside. The thresholds below are defaults; the provider can adjust them for a cabin.
- Entered. Weight above 20 kg — the cabin switches to Work at once: light, ventilation, "busy" sign.
- Left. The weight dropped below the threshold — the fan slows down, and 10 seconds later the cabin goes to Wait or Sleep. If the person comes back within those seconds, the cabin stays in Work.
- If a load cell fails, the cabin keeps working on the other one. If both fail, it keeps the last known state — so it does not "free itself" while a person may be inside.
Visits
A visit is an "entered — left" interval. Statistics is built from visits.
- An entry is recorded when the weight stays above 20 kg for 2 seconds, an exit when it stays below 18 kg for 2 seconds. The different thresholds keep a visit from "splitting" when a person shifts weight.
- Every visit is first written to the cabin's memory, then sent to the server. The cabin keeps resending until the server confirms receipt.
- Without a link the cabin keeps up to 128 visits and sends them when the link is back.
- A restart in the middle of a visit does not cut it: the cabin remembers the entry time.
Light and buttons
On the cabin wall there are a light knob and button and a fan knob and button. They work when someone is in the cabin.
| Action | What happens |
|---|---|
| turn the light knob | brightness |
| press the light button | switch between the top and front lamp |
| hold the light button for 5–9 seconds | turn on the cabin's service Wi-Fi access point for maintenance |
| hold the light button for 10 seconds or longer | restart the cabin (on release) |
| turn the fan knob | speed |
| press the fan button | back to the Operational speed |
Ventilation
- In an empty cabin the fan runs on a schedule: every Ventilation interval for Duration time, separately for Wait and Sleep.
- 20 minutes before the working day starts, the cabin airs at full power. Not on weekends.
- Fan range sets the motor's working range, Fan slow mode — a smooth ramp-up.
Bookings and the server session
When a booking starts, the server switches the cabin to Work Api: light, ventilation and a "busy" sign — the cabin is ready when the person arrives. Before the booking ends, the light smoothly dims and comes back three times — a signal that time is running out. When the booking is over, the server returns the cabin to its normal mode. Details — Bookings.
If the server link is lost during a booking and the cabin is empty, it returns to its normal mode by itself after 5 minutes.
Schedule and time
- The working day and weekends are counted in the cabin's time zone (Time zone).
- The cabin takes the time from the internet, and without it from the server or its own clock module. The clock keeps running without a link.
- Every night at 05:12 the cabin does a preventive restart — it takes less than a minute.
Safe mode
If the board restarts several times in a row because of a failure, the next start happens in safe mode. That way the cabin stays online and controllable until the cause is fixed.
| In safe mode | |
|---|---|
| running | server link, light, fan, buttons |
| off | scales, automatic modes and visits, journal writing to the SD card |
| lock | open |
The cabin page shows the "аварийный режим прошивки" (firmware safe mode) alert and the list of disabled tasks. Once an hour the cabin tries a normal start by itself. Tell support — the provider will find the cause and return the cabin to normal operation.