Commit Graph
19 Commits
Author SHA1 Message Date
erikbrockoandClaude Opus 5.5 65ccd1a025 add Arch Linux packaging
- Bundle the server into dist/rotrouter.cjs with esbuild (npm run build),
  so the package needs only nodejs at runtime and is arch=any.
- Read the config and static file paths from ROTROUTER_CONFIG and
  ROTROUTER_PUBLIC (defaults unchanged for npm start).
- PKGBUILD for rotrouter-git and a hardened systemd unit running as a
  DynamicUser without capabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:17:27 +00:00
erikbrockoandClaude Opus 5.5 fb1c733699 show the world map behind each rotator scale
Fall back to the IP-rotator firmware's default xplanet grayline map
(remoteqth.com/xplanet/OK.png) when the rotator has no map URL, draw it
beneath the scale instead of over the spokes, refresh it every 30 min
with a cache-buster, and skip it for elevation rotators.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:46:56 +00:00
erikbrockoandClaude Opus 5.5 404cc5fb6c front-end: remember the selected station, reconnect after server restart
- Persist a manually picked station in localStorage (falls back to the
  station detected from the client IP).
- When the WebSocket closes, wait for the server to accept connections
  again and reload; only send pings while the socket is open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:00:37 +00:00
erikbrockoandClaude Opus 5.5 1fa6f2251c send full rotator state to new clients over a typed WebSocket protocol
- Build the init message per connection from live state. Dynamic data is
  only broadcast on change, so new browsers showed rotators as OFFLINE
  until something moved.
- Load init data once a rotator is reachable and push it to clients;
  rotators offline at startup used to stay without name/map/offsets.
- Replace label-keyed messages (which could collide with 'radioInfo') with
  typed ServerMessage variants: init, initData, dynamic, setpoint, radioInfo.
- Keep setpoints in RotClient and station radio state in RotRouter instead
  of mutating a snapshot in index.ts.
- Include the resolved station in setpoints; the UI shows the station name
  in its colour instead of the source IP.
- Close stale WebSocket clients; drop the empty handleMessage stub.
- Replace TurnMessageHandler with plain callbacks; rename config types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:00:34 +00:00
erikbrockoandClaude Opus 5.5 db328336f1 harden rotator polling
- Time out requests after 2 s and never start a poll before the previous
  one finished; an offline rotator used to pile up hanging requests.
- Fetch endpoints in parallel.
- Treat non-200 responses and unparseable numbers as null instead of NaN.
- Log online/offline transitions instead of every reading each second.
- Log failed turn commands instead of swallowing them.
- Drop unused getters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:00:15 +00:00
erikbrockoandClaude Opus 5.5 455a4794e3 fix N1MM parsing: real band numbers, accept 0°, start the listener
- Map RadioInfo frequencies and rotor <freqband> to standard band numbers
  (1.8, 3.5, 5, 7 … 10000) instead of truncating to integers, so 160 m and
  80 m no longer become bands 1 and 3.
- A turn to azimuth 0 (north) was dropped by a falsy check.
- Log malformed rotor packets instead of dropping them silently.
- The UDP listener was left commented out; start it after the HTTP server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 02:59:40 +00:00
erikbrockoandClaude Opus 5.5 33a020f15c reject empty or non-integer azimuths, use first X-Forwarded-For hop
An empty ROT field became Number('') === 0 and turned the rotator north.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 02:59:27 +00:00
erikbrockoandClaude Opus 5.5 907d439c7d ignore .idea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 02:59:20 +00:00
erikbrockoandClaude Opus 5.5 debc6650d4 add stations and an Auto tab following each station's band
Parse N1MM RadioInfo packets, map sender IPs to configured stations,
and let the front-end auto-select the rotator for the selected
station's current band.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 02:34:20 +00:00
ericek111 969098c491 add tabs for rotators 2026-04-04 12:05:26 +02:00
ericek111 0643ae5ed8 add an online flag 2026-04-02 19:58:33 +02:00
ericek111 596a810681 drop IPv6 prefix for IPv4 addrs 2026-04-02 19:20:13 +02:00
ericek111 22d750e3ab add a setpoint indicator 2026-04-02 19:13:35 +02:00
ericek111 80b66be4fc claude: use tsx instead of experimental-strip-types 2026-03-20 13:18:02 +01:00
ericek111 d88322fe46 claude: move to typescript 2026-03-20 13:17:47 +01:00
ericek111 009b6f1b08 minor: comments 2026-03-20 10:26:22 +01:00
ericek111 47286248ef fetching + broadcasting dynamic data from RotClient-s 2026-03-19 22:35:29 +01:00
ericek111 b545d89a97 front-end 2026-03-19 18:55:00 +01:00
DELL4 a4c27387db initial commit 2026-02-12 20:19:46 +01:00