Other devices and control lines
A control line is one on/off line that Web Radio Control switches or reads: a pin of the Raspberry Pi, the DTR or RTS line of a serial port, a pin of a USB sound card, or a relay on your network. Antenna switches, the relays of other devices, the keying of a radio without CAT and the remote use lamp all use control lines by their names. Here you find the lines of the station, add your own, and set up a network relay. It is all in Settings › Station › Other devices & control lines, as the administrator.
The page lists the other devices first, such as a set of power relays, each with its status (see Relays). Under them are the control lines.
The lines of the station
Found by the station lists the lines the station finds by itself: every GPIO pin of the station control computer, and the pins of the USB sound cards with a CM108 or CM119 chip. A GPIO pin is named by its pin on the 40-pin header, such as header pin 11. For each line, the table shows its Name, its Direction, Input, Output or Input and output, and the device it is Used by, or Free. Search them, choose a Kind, or tick Free only.
Your own control lines lists the lines you add. A line a device uses can’t be chosen for another device, and can’t be deleted.
Add a control line
Open the form
Choose Add a control line, at the right of Your own control lines.
Choose its kind
Under Kind of control line, choose:
- Serial port pin: the DTR or RTS line of a serial port, as many keying interfaces use. Choose the port among those plugged in, and its line.
- Sound card pin: a GPIO pin of a USB sound card with a CM108 or CM119 chip. Choose the card and the pin.
- Network relay: a relay switched over the network, by HTTP or HTTPS (see Set up a network relay).
- Inverted line: another control line the other way round. This line is on when the other line is off, for a relay wired the other way round.
GPIO pins and the pins of sound cards are found by the station. They need nothing added.
Name it
Give the line a Name, which devices use to refer to it. It can’t be changed later. Optional: a Description, and Aliases, other names the line is found by, separated by commas.
Save it
Choose Save.
A line can also be added on its own steps, with its test, as Control line under Add a device (see A control line), and wherever a device chooses a line, with New control line….
The pencil of a line changes it, and the bin deletes it after asking: Delete ‹name›? A control line that a device uses is not deleted.
Set up a network relay
A network relay is a relay board, a smart plug or a switch module on your local network that answers HTTP requests, such as a Shelly, a board running Tasmota or ESPEasy, or a board of your own. The station switches it with one request and reads it with another.
Find its requests
Find in the documentation of the relay how to switch it on and off and how to read it over HTTP, and what its answer says when it is on or off. Try the addresses in a browser on the network of the station first.
Give its address
Under The relay, type Its address, such as 192.168.1.50 or relay-board.local, and the Port only if it
is not the standard HTTP or HTTPS port. Choose HTTP or HTTPS under Requests over. Give the relay a fixed
address on your router, so that it stays where the station looks for it.
Give the paths
Under Switched on and Switched off, type the Path of each request, starting with /, and what is Sent
with it, if anything. Under Read, type the Path that reads the relay, and what the answer contains when it is
on and off: On when the answer contains and Off when the answer contains.
For a relay that is only switched, leave Read empty. For one that is only read, such as a door contact, leave Switched on and Switched off empty. A relay that both switches and reads shows its real state, even after a power cut or a change by hand.
Choose the method
Switching sends POST and reading sends GET, unless a method is given. Many relays take GET for both: set Method to
GET under Methods and headers.
Save it
Choose Save. To read the relay before a device uses it, add it with Add a device and Control line instead: its Test the line has Read it, which reads the relay from the station, switching nothing.

The other fields are rarely needed:
- What answer means success: the HTTP statuses that mean a request succeeded, any below 300 unless listed, and Switched when the answer contains.
- User name and Password, for a relay that asks for them. The password is kept apart, encrypted. A saved one shows Set. Leave empty to keep it.
- Timeout: how long this relay may take to answer. 0 uses the shared timeout below.
- Relay board and Kind of line: how the line is grouped and shown.
Examples
In each, set Method to GET, and replace the address with the address of your device. For a second relay of the
same device, change the number: id=1, relay/1, Power2.
For the Shelly devices of the second generation and later, which have the RPC interface:
| Field | Value |
|---|---|
| Switched on › Path | /rpc/Switch.Set?id=0&on=true |
| Switched off › Path | /rpc/Switch.Set?id=0&on=false |
| Read › Path | /rpc/Switch.GetStatus?id=0 |
| On when the answer contains | "output":true |
| Off when the answer contains | "output":false |
An answer that contains both the on and the off text, or neither, is read as an error, so make the texts tell the two apart.
Network relay connections
Network relay connections, under the control lines, holds the settings every network relay shares. A change applies at once, from the next request of each relay.
| Setting | What it does | Unless you change it |
|---|---|---|
| Accept a switch’s own certificate | Accepts the certificates that relay boards make themselves over HTTPS, which no browser or station trusts. | On |
| Request timeout | How long a relay may take to answer a request. | 3000 ms |
| TLS handshake timeout | How long setting up an HTTPS connection may take. | 3000 ms |
| Response header timeout | How long a relay may take to start its answer. | 3000 ms |
Idle connections kept, Connections to one switch and Idle connection closed after are among the advanced settings. Keep them as they are.
The remote use lamp
The Remote use lamp switches a control line on while someone is connected to the station from afar, such as an LED at the operating position or a sign by the door. It needs a line that can be switched: an output, or an input and output. Choose it in Settings › Station › Station & call signs, under Indicators (see Indicators). A line you add is offered there at once.
If something went wrong
- A line can’t be saved. The form says why, such as The station has a control line named … already. Give this one another name.
- A network relay doesn’t switch. Open its paths in a browser on the network of the station. Check the method, and that the relay has the same address. The address of every network relay a device uses is listed under Parts, as found now on the Connection tab of the device.
- A device started without a line. Its page says Started without: …. A relay set as an output on a line that can only be read is left out. Choose a line that can be switched.
- A line shows as used, but not by the device you expected. A line serves one device. Choose another line, or free it from the other device first.