What your server records
After this page you know what your recording server records, when, how much of it it keeps, and what its stations' states mean.
What is recorded
Your server records the time-shifted favourites the devices share: every device paired with it adds favourites to one shared list and removes them from it, and the list holds each favourite's time shift switch (Use wavelane on several devices). The server records the favourites with time shift on, and changes what it records at once when a favourite is added, removed, or has its switch turned on or off. It keeps the shared lists in its data directory, in library.json, so they survive a restart. A station that leaves the recorded set, because it was removed or its time shift was turned off, stops being recorded, and its recordings are deleted once it has been off for as many hours as the server keeps, counted from when it left the set; a restart does not start the count again.
A server that finds no library.json when it starts, as on its first start after an update that added the shared lists, makes the favourites from the stations it was already recording, all with time shift on, so recording carries on without a gap; it writes the file at once, so a later start never makes them again. It does the same with a library.json it cannot read, which it keeps as library.json.bad; the devices paired with it then add their own lists to the new ones (Troubleshoot your server). An older wavelane on a device still sends the whole list of its favourites: the server adds each station on it to the shared favourites with time shift on, switches off the time shift of any time-shifted favourite the list leaves out, and removes none.
For each station the server runs one recorder that copies the station's audio as it is broadcast, without re-encoding it, into pieces of WAVELANE_SEGMENT_SECONDS seconds (10 unless you change it), each named by the time it starts, in UTC, such as 20261010T071530Z.aac. It records stations that broadcast AAC or MP3. A station in any other format is shown as "unsupported" and not recorded; the phone plays it live.
When it records
The server records every day inside its window, WAVELANE_RECORD_WINDOW, read in the zone WAVELANE_TIMEZONE: by default 07:00 to 22:00 in Europe/Zurich. Configure your server sets both. The start is included and the end is not. A window whose end is earlier than its start, such as 22:00-06:00, crosses midnight. The window is read on the zone's clock, so on a day the clocks change it still opens and closes at the same local times. Outside the window the recorders stop and the stations read "idle"; the phone plays what it holds, then the station's own stream.
How much it keeps
For each station the server keeps the newest WAVELANE_RETENTION_HOURS hours of recorded audio (8 unless you change it), and deletes the oldest pieces as new ones arrive. It counts audio, not clock time: the hours outside the window, when nothing is recorded, do not count, so what was recorded before the window closed is still held when it opens again, until newer audio pushes it out.
A guard watches the disk: when the disk holding WAVELANE_DATA_DIR reaches WAVELANE_DISK_HIGH_WATER_PERCENT full (90 % unless you change it), the server deletes its oldest recordings, whichever station they belong to, until the disk is five points below that, and logs each deletion. The guard measures the whole disk but deletes only recordings.
Plan for about 58 MB per station and hour at 128 kb/s, and about 144 MB at 320 kb/s: the audio is copied as the station sends it, so a piece is as large as the station's own bit rate makes it. Multiply by the hours you keep and the stations you record.
The stations' states
Your server reports each station in one of five states, in its status, /v1/status (see Troubleshoot your server):
| State | What it means |
|---|---|
| "idle" | Outside the window, or not started yet. |
| "probing" | The server is finding out the stream's format, for up to 20 seconds. If the stream gives no answer in that time, the station is failing. |
| "recording" | The server is recording the station. |
| "failing" | The stream or its recorder failed: the recorder stopped, no new piece came in for three times the piece length (30 seconds by default), or the format probe got no answer. The server tries again after 1, 2, 4 … seconds, never more than a minute apart, and the status says why in lastError. The station reads "recording" again when a new piece has been recorded. |
| "unsupported" | The stream is in a format other than AAC or MP3, or in more than one, and is not recorded. The status names the format it found, and the server looks again when the window next opens. |