ham-cluster
v1.0.7
Published
An event-based TypeScript module for accessing ham radio spot clusters.
Downloads
1
Readme
HamCluster
An event-based TypeScript module for accessing ham radio spot clusters.
Installation
npm install ham-cluster --save
Usage
const HamCluster = require('ham-cluster');
const rbnCluster = new HamCluster(callsign, {
hostname: "telnet.reversebeacon.net",
port: 7000,
type: "rbn"
});
// const plainCluster = new HamCluster(callsign, {
// hostname: "w3lpl.net",
// port: 7373
// });
rbnCluster.on('connected', ()=> {
console.log("Connected!");
});
rbnCluster.on('spot', spot => {
console.log(spot);
});
rbnCluster.on('error', error => {
console.error(error);
});
TODO
- Add automatic detection for comment fields from RBN, FT8, N1MM, etc.
- Use inheritance for easy implementation ([RBNSpot, FT8Spot, N1MMSpot] extends Spot).
- Improve edge cases and error handling.
- Use "signed-in" event for timeout/retry.