Register an antenna
Run one command on the station's host, after installing the agent, and the antenna joins your network config with the RF a pass is priced from.
The agent's own key only sends telemetry, so registering takes a key that can edit your fleet. Create one with Read and edit your fleet (config:write) under Integrations > Fleet agent > Create a register key, export it as CONSTELLATION_API_TOKEN, and keep it through sudo:
sudo --preserve-env=CONSTELLATION_API_TOKEN constellation-agent register --antenna sval-1-x --band X \
--diameter 3.7 --min-elevation 5 --station svalbard-1 --name "Svalbard 1" --lat 78.23 --lon 15.39
Revoke the key once the antenna is registered, unless you will run register or unregister again.
register needs agent 0.1.2 or later. Its general form:
sudo --preserve-env=CONSTELLATION_API_TOKEN constellation-agent register --antenna <antenna-id> --band <S|X|Ka> \
--diameter <metres> --min-elevation <degrees> --station <station-id> --name "<station name>" --lat <latitude> --lon <longitude>
The agent reads your network config with that key, then sends one PATCH /topology/config with only the fields that differ. It never deletes anything and never touches satellites, other stations or other antennas. Nothing registers on install or restart: running the command is the approval.
The antenna is marked with the agent that registered it: its install id from /etc/constellation/install_id, its host name and its version. On Fleet the antenna wears an Agent chip, and its detail names the host, the agent version and its last telemetry. The chip reads that mark, never the telemetry, so an antenna whose records arrive over the API without a registration has no chip.
The antenna id
Use the antenna id the agent reports as ground_antenna_id in its telemetry. A record whose antenna id matches no antenna in the config does not resolve, so the antenna stays quiet on Fleet.
The station
--station names the ground station the antenna belongs to.
- It exists: the antenna is added to it. The station is never moved or renamed: a
--name,--lat,--lonor--altthat differs from it is not applied, and the output says which. - It does not exist: the station is created first, which needs
--name,--latand--lon.
Where the station is already in your config, leave out its name and position:
sudo --preserve-env=CONSTELLATION_API_TOKEN constellation-agent register --antenna sval-1-x --band X --gt 31.5 \
--min-elevation 5 --station svalbard-1
Flags
| Flag | Required | Meaning |
|---|---|---|
--antenna | yes | Antenna id: 1 to 64 ASCII letters, digits, ., _ or - |
--band | yes | S, X or Ka |
--min-elevation | yes | Elevation mask in degrees: no pass is priced below it |
--gt | one of these two | Receive G/T in dB/K, from the antenna's data sheet |
--diameter | one of these two | Dish diameter in metres; the G/T is derived from it when --gt is not given |
--efficiency | no | Aperture efficiency, 0 to 1, default 0.55. Scales a derived G/T |
--freq | no | Receive range in GHz, such as 8.025-8.4. Defaults to the band's typical range |
--station | yes | Station id: 1 to 64 ASCII letters, digits, ., _ or - |
--name | to create the station | Station display name |
--lat, --lon | to create the station | WGS84 degrees: latitude -90 to 90, longitude -180 to 180 |
--alt | no | Station altitude above mean sea level in metres, -500 to 9000, when creating it |
--force | no | Update an antenna this install did not register, and mark it as this install's |
It runs with sudo because it reads the API address from /etc/constellation/agent.env and keeps the install id in /etc/constellation/install_id. Without an exported key it uses the agent's own, and the API answers 403.
A derived G/T
Without --gt, the G/T starts from the band's typical antenna, a 7.3 m dish at 55% efficiency, and scales with the dish: it changes by 20 × log10(diameter / 7.3) dB, and with --efficiency by 10 × log10(efficiency / 0.55) dB more, rounded to 0.1 dB. A 3.7 m X band dish comes to 25.1 dB/K. A measured G/T from the data sheet is better: pass --gt when you have one. --diameter and --efficiency are stored on the antenna either way.
What it writes
The antenna, under its station, as the network config names it:
{
"band": "X",
"min_elevation_deg": 5,
"antenna_diameter_m": 3.7,
"frequency_ranges": {
"x-rx": { "direction": "downlink", "min_ghz": 8.025, "max_ghz": 8.4, "g_t_db_k": 25.1 }
},
"agent": { "install_id": "6f1c2b9e-7d4a-4c1e-9a55-2f0d3b8e1c42", "hostname": "gs-svalbard-01", "version": "0.1.2" }
}
A station it creates gets name, latitude_deg, longitude_deg and, with --alt, altitude_m.
Ownership
Each antenna belongs to the install that registered it.
- A second agent at the same site registers its own antenna on the same station and leaves the others as they are.
- An antenna another install registered, or one with no agent marker (added by hand or through the API), is refused. Pass
--forceto take it over: its fields are updated and it is marked as this install's. - Demo stations and the demo fleet's antenna ids are always refused,
--forceor not: editing them would make them billed.
Output
What happened, the ids its telemetry must carry, then the link to Fleet:
created antenna sval-1-x at svalbard-1 (X band, G/T 25.1 dB/K from a 3.7 m dish)
Telemetry from this host names ground_station_id=svalbard-1 ground_antenna_id=sval-1-x
Fleet: https://platform.constellation.space/fleet
With --gt, the line gives the G/T as passed:
created antenna sval-1-x at svalbard-1 (X band, G/T 31.5 dB/K)
When the station is new, its line comes first:
created station svalbard-1 (78.23, 15.39)
created antenna sval-1-x at svalbard-1 (X band, G/T 25.1 dB/K from a 3.7 m dish)
When the station exists and a station flag differs from it, the station stays as it is and the line names what was not applied:
station svalbard-1 exists and is kept as it is: not applied name, latitude_deg
Run again with a changed flag and only those fields change, named as the config names them:
updated antenna sval-1-x: frequency_ranges, min_elevation_deg
Run again with the same values and nothing is sent, so no new config version is stored:
unchanged antenna sval-1-x
A line starting issue: is a warning the API stored the station or antenna with, as issue: <path> <code>: <message>, such as no_altitude for a station created without --alt.
Errors
Every refusal below leaves the config as it was.
| Output | Fix |
|---|---|
| A missing or invalid flag | Fix the flag. Nothing was sent. |
register needs --gt, or --diameter to derive G/T: a forecast needs the antenna's G/T | Pass --gt from the data sheet, or --diameter. |
station svalbard-1 does not exist; give --name, --lat and --lon to create it | Pass them to create it, or check --station names the station you mean. |
antenna sval-1-x at svalbard-1 was not registered from this host; pass another --antenna, or --force to update it | Check the id is the antenna you mean, then run again with --force, or pick another --antenna. |
antenna sval-1-x is at station sval-2; antenna ids are unique, so pass another --antenna | Antenna ids are unique across stations. Pick another --antenna. |
<id> is a demo station; pass another --station or <id> is a demo antenna; pass another --antenna | Pick another id. --force does not override this. |
403 insufficient_scope | The key lacks config:write. Export a register key as CONSTELLATION_API_TOKEN and run with sudo --preserve-env=CONSTELLATION_API_TOKEN. |
422 invalid_network_config with a field path | The API refused that field's value. Fix the flag it names. |
A connection error, then nothing was changed | Check the host's outbound HTTPS access, then run again. |
A 5xx answer without nothing was changed | The write may have been stored. Run again: it changes only what still differs. |
Unregister
sudo --preserve-env=CONSTELLATION_API_TOKEN constellation-agent unregister
unregistered antenna sval-1-x at svalbard-1; the antenna stays
With a register key exported, it clears the mark on every antenna this host registered, so Fleet drops their Agent chip. The antennas and their RF stay in your config. Uninstalling runs it first. Without the key, or offline, uninstall warns and goes on. Removing the antenna on Fleet clears its chip too. To register the same antenna again afterwards, add --force: it is no longer marked as this host's.
Next: Publish telemetry.