Expand description
Pi-Star JSON host file fetcher.
Fetches the canonical D-STAR reflector host list from
http://www.pistar.uk/downloads/DStar_Hosts.json and upserts each
reflector into the reflectors Postgres table.
The Pi-Star host file is the most comprehensive public registry of D-STAR reflectors, maintained by the Pi-Star project. It maps reflector callsigns to IP addresses and categorises them by protocol type (REF/XRF/DCS).
Poll interval: daily (default 86 400 s). The host file changes rarely β new reflectors appear at most a few times per month.
StructsΒ§
- PiStar
Reflector π - A single reflector entry from the Pi-Star host file.
- PiStar
Response π - Top-level JSON envelope returned by the Pi-Star host endpoint.
ConstantsΒ§
- PISTAR_
URL π - Pi-Star host file download URL.
FunctionsΒ§
- fetch_
and_ πstore - Fetches the Pi-Star host file and upserts all reflectors into Postgres.
- map_
protocol π - Maps Pi-Starβs protocol type labels to the internal protocol identifiers
used in the
reflectorstable.