Simple NodeJS class to switch antennas with a EA4TX's RemoteBox.
Sample basic web interface is provided.
Reading antenna names, writing configuration and other functions are not supported.
git clone https://github.com/ea1nk/RemoteBox.git
npm install
node server.js
Import class into your NodeJS app:
const RemoteBox = require('./RemoteBox')
Create a RemoteBox instace:
const RB = new RemoteBox('/dev/ttyACM0', 38400); // Change to match your /dev/ttyX serial port
Commands available:
getAntennaStatus : Returns an array with the status of the antennas (1=ON, 0=OFF)
setAntenna(TRX,ANTENNA) : Turns antenna ON for provided TRX