Skip to content

Running version 0.13? Its documentation is on the 0.13 site. Go to the 0.13 documentation

Time servers

The station needs the right time. Logs, reservations, certificates and the license checks all depend on it. The station sets its clock from time servers on the network (NTP servers) by itself, so most stations need nothing here. Add your own time servers when the usual ones can’t be reached, such as at a station without the internet, or are far away. Settings › Station › Time servers, under Network & security, holds them, for the administrator alone.

Where the time comes from

The station uses every time source it has at once, and picks the best:

  • the public NTP pool on the internet;
  • your router, where it serves the time. Many home routers don’t, and show as not reached, which is harmless;
  • the time servers your DHCP server announces, on a network that announces them;
  • the time servers you add yourself.

The last three keep the station on time on a network without the internet, from a time server on its own network.

A Raspberry Pi has no clock that runs while it is switched off, unless a clock battery is fitted. A Raspberry Pi 5 has a connector for one. It starts with the time it had when it was shut down, and the station sets the clock as soon as it reaches a time source. At startup, the station waits up to ten seconds for the clock, then starts anyway, so a station without any time source still starts.

Add your own time servers

Open Time servers

Open Settings › Station › Time servers.

Add the servers

Under Your time servers (NTP), type a server in Host, address or pool ‹name›, and choose Add, or press Enter. Each can be:

  • a host name or an address, IPv4 or IPv6, such as 192.168.1.10 or ntp.example.lan;
  • pool and the name of a DNS pool that stands for several servers, such as pool europe.pool.ntp.org.

Add up to eight. The bin beside a server removes it. Ports and other options are not accepted.

Save

Choose Save in the bar at the bottom of the page.

The band at the top of the page says Waiting for the clock to synchronize with the new time servers. The station keeps the new list once it can use one of its servers: the server answers, and its time agrees with the other sources. If it can use none of them within five minutes, the previous time servers are put back, even if Web Radio Control has stopped meanwhile.

The list is kept with the settings of the station, and applied again at every start. An empty list removes your servers. The station then uses the other sources alone.

Check: under Synchronization, Clock says Synchronized, and your server is in the list of Time sources as In use or Also used.

Check the clock

Synchronization shows how the station clock keeps time, as the WRC host service on the station control computer last reported it:

  • Clock: Synchronized or Not synchronized.
  • Reference: the source the clock follows now, and its stratum, how many steps the source is from a reference clock.
  • Offset: how far the clock is from that source.
  • Last reported: when the station control computer last reported it. Refresh shows the latest report.

Time sources lists every source with its State, its Stratum, how many of its Last 8 samples arrived, its Last sample and its Offset:

StateWhat it means
In useThe clock follows this source.
Also usedThe clock takes this source into account too.
Not usedThe source answers, but the clock doesn’t use it.
Not reachedThe source doesn’t answer, such as a router that serves no time.
Too unsteadyThe time of the source varies too much to be used.
Wrong timeThe time of the source disagrees with the others, and is ignored.

The station control computer reports every minute, and whenever the synchronization changes.

When the station clock is wrong

The WRC Cloud Service refuses a request whose time is more than five minutes from its own clock. When it refuses one from the station for that reason, the station uses the time of the service for its requests from then on, so its license checks and updates go on. The notifications (the bell) and Problems on the Overview then say The station clock is wrong, such as The station clock is 2 h 5 min behind the WRC Cloud Service clock. The station still reaches the service, but reservations and the other times the station keeps may be wrong. For an administrator, it ends with Check the station clock in Time servers., a link to this page. Other users are asked to tell an administrator.

Check the clock as above. The warning goes away by itself once the station clock is within a minute of the clock of the service.

When your browser and the station disagree

Every few seconds, your browser measures how far its clock is from the station clock. While the two are more than two minutes apart, the notifications (the bell) say The clock of this browser is ‹time› behind the station clock., or ahead of it. Times shown in Web Radio Control, such as reservations and the gray line on the map, may then be off. Correct the clock of your desktop, tablet or phone, or the station clock as above. The warning goes away by itself once the clocks agree.

The time zone of the station is set in Settings › Station › Location & time (see Location and time).

On the station control computer

For those who log in with SSH (see Log in with SSH):

timedatectl          # "System clock synchronized: yes" once a source is in use
chronyc -n sources   # every source, the one in use marked with *
chronyc tracking     # how far off the clock is

^? in front of a source means it hasn’t answered, as for a router that serves no time.

If something went wrong
  • Clock says Not synchronized. The station reaches no time source. Check its internet connection, or add a time server on its own network, such as your router if it serves the time.
  • Your servers were put back to the previous ones. The station couldn’t use any of the new servers within five minutes. Check that each server answers on your network, and that its time is right.
  • A server is refused as you type it. The field says Type a host name, an address or pool ‹name›. Up to eight servers. Type the name or address alone, without a port or options.
  • Synchronization says the station control computer has not reported how its clock is synchronized. Web Radio Control is not connected to the WRC host service, or the service can’t read the time service. Restart Web Radio Control from Settings › Station › Restart & shutdown, or reboot the station.
  • The certificate is not valid yet, or the license check fails with the clock. The station clock is behind. Check it here first (see Certificates).
Last updated on