Files
website/scripts/radio-2026-10-27-opa.sql
T
stan c175c25615
Deploy production / deploy (push) Successful in 1m24s
radio: Opa's update - Haagse ronde on scanner 1-3, QO-100 net (weekend reminder), antenna tip
- data (scripts/radio-2026-10-27-opa.sql): 145.450 in bank 1 ch 3 (ISS APRS UHF moved to ch 7),
  NL/EN notes for the Haagse ronde (scanner, not the WebSDR: trolls), new QO-100 satellietronde
  (daily 09:30, 10489.700 USB) with its reminder on Sat/Sun only
- migration: radio.nets.remind_days (null = every day of the net); scripts/radio.ts honours it,
  and `upcoming [hours]` prints the day too
- links: BATC/Goonhilly QO-100 WebSDR (via Opa, 27 Oct 2026); PI1DFT note about trolls
- Radioweetjes: Haagse ronde on the scanner, QO-100 net, magnetic antenna on a radiator
2026-10-27 10:34:13 +00:00

50 lines
3.2 KiB
PL/PgSQL

-- One-off data update from Opa (27 Oct 2026). Idempotent; run with psql -v ON_ERROR_STOP=1.
BEGIN;
-- 1) Haagse ronde in scanner bank 1, channel 3 (Opa's own layout). The ISS APRS UHF memory that
-- sat there moves to the first free bank-1 channel (7).
UPDATE radio.channels SET channel = 7, updated_at = now()
WHERE channel = 3
AND frequency_id <> (SELECT id FROM radio.frequencies WHERE freq_hz = 145450000 AND name = 'Haagse ronde')
AND NOT EXISTS (SELECT 1 FROM radio.channels WHERE channel = 7);
INSERT INTO radio.channels (channel, frequency_id, alpha_tag)
SELECT 3, id, 'HAAGSE RONDE' FROM radio.frequencies WHERE freq_hz = 145450000 AND name = 'Haagse ronde'
ON CONFLICT (channel) DO UPDATE SET frequency_id = excluded.frequency_id, alpha_tag = excluded.alpha_tag, updated_at = now();
UPDATE radio.frequencies SET notes =
'Haagse 2m-ronde, werkdagen 11:00. Luister op de scanner, bank 1 kanaal 3. Opa raadt de WebSDR voor deze ronde niet meer aan: trollen verstoren hem daar. / '
|| 'The Hague 2 m net, weekdays 11:00. Listen on the scanner, bank 1 channel 3. Opa no longer recommends the WebSDR for this net: trolls disrupt it there.',
updated_at = now()
WHERE freq_hz = 145450000 AND name = 'Haagse ronde';
UPDATE radio.nets SET notes =
'Luister op de scanner, bank 1 kanaal 3. Opa raadt de WebSDR voor deze ronde niet meer aan: trollen verstoren hem daar. Opa corrigeerde 145.350 naar 145.450. / '
|| 'Listen on the scanner, bank 1 channel 3. Opa no longer recommends the WebSDR for this net: trolls disrupt it there. Opa corrected 145.350 to 145.450.',
updated_at = now()
WHERE name = 'Haagse ronde';
-- 2) QO-100 satellite net (Dutch hams), daily 09:30 Europe/Amsterdam. Inserted with the reminder
-- off; section 3 turns it on for weekends only once the remind_days migration is in.
INSERT INTO radio.frequencies (freq_hz, mode, band, name, location, notes, tags, source)
VALUES (10489700000, 'USB', 'ham', 'QO-100 satellietronde', 'Satelliet QO-100 (Es''hail-2), smalband-transponder',
'Nederlandse zendamateurs, dagelijks 09:30. Niet met de handscanner: luister via de BATC/Goonhilly QO-100 WebSDR https://eshail.batc.org.uk/nb/ / '
|| 'Dutch hams, daily 09:30. Not on the handheld scanner: listen on the BATC/Goonhilly QO-100 WebSDR.',
'{satellite,qo-100,websdr}', 'Opa, 27 Oct 2026')
ON CONFLICT (freq_hz, name) DO NOTHING;
INSERT INTO radio.nets (name, frequency_id, days, times, kind, notes, remind, active, sort_order)
SELECT 'QO-100 satellietronde', f.id, '{1,2,3,4,5,6,7}', '{09:30}', 'net',
'Nederlandse zendamateurs via satelliet QO-100. Luister via de QO-100 WebSDR van BATC/Goonhilly: https://eshail.batc.org.uk/nb/ / '
|| 'Dutch hams via the QO-100 satellite. Listen on the BATC/Goonhilly QO-100 WebSDR.',
false, true, 15
FROM radio.frequencies f
WHERE f.freq_hz = 10489700000 AND f.name = 'QO-100 satellietronde'
AND NOT EXISTS (SELECT 1 FROM radio.nets WHERE name = 'QO-100 satellietronde');
-- 3) Stan approved the QO-100 reminder for Saturday and Sunday only (ping 09:20). Needs the
-- 20261027103329_radio_net_remind_days migration.
UPDATE radio.nets SET remind = true, remind_days = '{6,7}', updated_at = now()
WHERE name = 'QO-100 satellietronde';
COMMIT;