CONNECTING...
r/50.0/15.0/3000 = radius 200kmb/SA7SVR/SM5ABC = track callsignsr/57.7/12.0/300 t/lora = LoRa only
npm install ws
node aprs-ws-proxy.js
aprs-ws-proxy.js:
const { WebSocketServer } = require('ws');
const net = require('net');
const wss = new WebSocketServer({ port: 8765 });
wss.on('connection', ws => {
const tcp = net.connect(14580, 'rotate.aprs2.net', () => {
console.log('Connected to APRS-IS');
});
tcp.on('data', d => {
if (ws.readyState === 1) ws.send(d.toString());
});
ws.on('message', m => tcp.write(m + '\r\n'));
ws.on('close', () => tcp.destroy());
tcp.on('close', () => ws.close());
tcp.on('error', e => { console.error(e); ws.close(); });
});
console.log('WS Proxy running on ws://localhost:8765');
Then set WS Server field to:
ws://localhost:8765
Option 2 — Python
pip install websockets
# See: github.com/hessu/aprsc for full server